Come configurare Liferay 6.0 per Oracle

0 views
4,605 views

Published on

Published in: Technology, News & Politics
0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
0
On SlideShare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
71
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide

Come configurare Liferay 6.0 per Oracle

  1. 1. •••
  2. 2. ••• ) )
  3. 3. • •oracle$ tnsping liferay-portal-db-1.localTNS Ping Utility for Linux: Version 11.2.0.2.0 - Beta on 02-AUG-2011 22:28:49Copyright (c) 1997, 2010, Oracle. All rights reserved.Used HOSTNAME adapter to resolve the aliasAttempting to contact(DESCRIPTION=(CONNECT_DATA=(SERVICE_NAME=))(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.56.101)(PORT=1521)))OK (0 msec)oracle$ lsnrctl status
  4. 4. LSNRCTL for Linux: Version 11.2.0.2.0 - Beta on 02-AUG-2011 22:37:45Copyright (c) 1991, 2010, Oracle. All rights reserved.Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC_FOR_XE)))STATUS of the LISTENER------------------------Alias LISTENERVersion TNSLSNR for Linux: Version 11.2.0.2.0 - BetaStart Date 02-AUG-2011 17:13:41Uptime 0 days 5 hr. 24 min. 4 secTrace Level offSecurity ON: Local OS AuthenticationSNMP OFFDefault Service XEListener Parameter File /u01/app/oracle/product/11.2.0/xe/network/admin/listener.oraListener Log File /u01/app/oracle/diag/tnslsnr/liferay-portal-db-1/listener/alert/log.xmlListening Endpoints Summary... (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC_FOR_XE))) (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=liferay-portal-db-1.local)(PORT=1521))) (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=liferay-portal-db-1.local)(PORT=8090))(Presentation=HTTP)(Session=RAW))Services Summary...Service "PLSExtProc" has 1 instance(s). Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...Service "XE" has 1 instance(s). Instance "XE", status READY, has 1 handler(s) for this service...Service "XEXDB" has 1 instance(s). Instance "XE", status READY, has 1 handler(s) for this service...The command completed successfully • • • • •
  5. 5. -- 1. Creazione Tablespace per i dati di Liferay PortalCREATE TABLESPACE LIFERAY_CE LOGGING DATAFILE /u01/app/oracle/oradata/XE/liferayce.dbf SIZE 500M AUTOEXTEND ON NEXT 32M MAXSIZE 2048M EXTENT MANAGEMENT LOCAL;-- 2. Creazione utente LiferayCREATE USER liferayce6 IDENTIFIED BY liferay12345 DEFAULT TABLESPACE LIFERAY_CETEMPORARY TABLESPACE TEMP PROFILE DEFAULT ACCOUNT UNLOCK;-- 3. Grant per lutente liferayGRANT CONNECT TO liferayce6;GRANT RESOURCE TO liferayce6;<Resource name="jdbc/LiferayPool" auth="Container" type="javax.sql.DataSource" maxActive="100" maxIdle="30" maxWait="10000" maxPoolSize="100" minPoolSize="10" acquireIncrement="5" username="liferayce6" password="liferay12345" driverClassName="oracle.jdbc.OracleDriver" url="jdbc:oracle:thin:@liferay-portal-db-1.local:1521:XE"/>
  6. 6. jdbc.default.jndi.name=jdbc/LiferayPoolLoading file:/opt/liferay-portal-6.0.6/tomcat-6.0.29/webapps/ROOT/WEB-INF/classes/portal-ext.properties11:08:32,484 INFO [DialectDetector:69] Determining dialect for Oracle 1111:08:32,582 INFO [DialectDetector:49] Using dialectorg.hibernate.dialect.Oracle10gDialect11:08:36,240 INFO [PortalImpl:278] Global lib directory /opt/liferay-portal-6.0.6/tomcat-6.0.29/lib/ext/11:08:36,242 INFO [PortalImpl:298] Portal lib directory /opt/liferay-portal-6.0.6/tomcat-6.0.29/webapps/ROOT/WEB-INF/lib/Starting Liferay Portal Community Edition 6.0.6 CE (Bunyan / Build 6006 / February 17,2011)11:08:51,461 INFO [ReleaseLocalServiceImpl:84] Create tables and populate withdefault data11:09:01,407 INFO [BaseDB:400] Database supports case sensitive queries
  7. 7. $ netstat -ta | grep ESTABLISHED | grep oracleXEtcp liferay-portal-db-1:1521 liferay-portal-fe-1:51818 ESTABLISHED 16857/oracleXEtcp liferay-portal-db-1:1521 liferay-portal-fe-1:52354 ESTABLISHED 17642/oracleXEtcp liferay-portal-db-1:1521 liferay-portal-fe-1:52357 ESTABLISHED 17653/oracleXEtcp liferay-portal-db-1:1521 liferay-portal-fe-1:52356 ESTABLISHED 17649/oracleXEtcp liferay-portal-db-1:1521 liferay-portal-fe-1:51865 ESTABLISHED 16879/oracleXE

×