Creating DB with dbca hangs on 11g

Hi all,
I'm trying to use dbca to create a database on Solaris 10. When I get to step 14 ("Creation Options), after clicking the Finish button, I was presented with a confirmation with an HTML page showing me all the parameters I have set. After clicking OK, that window closes and now I'm back to the step 14 window. It stays there and seemingly not doing anything.
I poke around and found the trace.log for dbca and have the following entries as snippet:
[Thread-10] [14:33:6:296] [StoragePage.objectCreated:543] StoragePage: In objectCreated function
[Thread-10] [14:33:6:297] [StoragePage.objectCreated:550] StoragePage->objectCreated: type = oracle_sysman_tablespace
[AWT-EventQueue-0] [14:33:8:138] [StoragePage.getVtoObject:675] StoragePage->getVtoObject: type = oracle_sysman_tablespaces
[Thread-11] [14:33:24:474] [StoragePage.objectCreated:543] StoragePage: In objectCreated function
[Thread-11] [14:33:24:475] [StoragePage.objectCreated:550] StoragePage->objectCreated: type = oracle_sysman_tablespace
[AWT-EventQueue-0] [14:35:13:220] [StoragePage.getVtoObject:675] StoragePage->getVtoObject: type = oracle_sysman_tablespaces
[Thread-10] [14:35:30:131] [StoragePage.objectCreated:543] StoragePage: In objectCreated function
[Thread-10] [14:35:30:132] [StoragePage.objectCreated:550] StoragePage->objectCreated: type = oracle_sysman_tablespace
[AWT-EventQueue-0] [14:35:31:747] [StoragePage.getVtoObject:675] StoragePage->getVtoObject: type = oracle_sysman_tablespaces
[Thread-11] [14:35:45:443] [StoragePage.objectCreated:543] StoragePage: In objectCreated function
[Thread-11] [14:35:45:445] [StoragePage.objectCreated:550] StoragePage->objectCreated: type = oracle_sysman_tablespace
[AWT-EventQueue-0] [14:36:35:915] [StoragePage.validate:934] StoragePage: In validate function
[AWT-EventQueue-0] [14:36:37:661] [Verifier.validateTemplate:1780] StorageType == 0
[AWT-EventQueue-0] [14:36:37:761] [CreationOptionPage.setSaveTemplateVisible:465] Setting save template visible = true
[AWT-EventQueue-0] [14:36:51:859] [DBCAWizard.onFinish:1203] m_bFinishClicked: false
[TaskScheduler timer] [14:36:51:885] [Verifier.validateTemplate:1780] StorageType == 0
[TaskScheduler timer] [14:36:51:895] [Verifier.calculateDatafilePathsAndSizes:2977] canonicalPath=/opt/oracle/app/oracle/oradata/openview/
[TaskScheduler timer] [14:36:51:897] [Verifier.calculateDatafilePathsAndSizes:2977] canonicalPath=/opt/oracle/app/oracle/oradata/openview/
[TaskScheduler timer] [14:36:51:899] [Verifier.calculateDatafilePathsAndSizes:2977] canonicalPath=/opt/oracle/app/oracle/oradata/openview/
[TaskScheduler timer] [14:36:51:900] [Verifier.calculateDatafilePathsAndSizes:2977] canonicalPath=/opt/oracle/app/oracle/oradata/openview/
[TaskScheduler timer] [14:36:51:902] [Verifier.calculateDatafilePathsAndSizes:2977] canonicalPath=/opt/oracle/app/oracle/oradata/openview/
[TaskScheduler timer] [14:36:51:903] [Verifier.calculateDatafilePathsAndSizes:2977] canonicalPath=/opt/oracle/app/oracle/oradata/openview/
[TaskScheduler timer] [14:36:51:905] [Verifier.calculateDatafilePathsAndSizes:2977] canonicalPath=/opt/oracle/app/oracle/oradata/openview/
[TaskScheduler timer] [14:36:51:907] [Verifier.calculateDatafilePathsAndSizes:2977] canonicalPath=/opt/oracle/app/oracle/oradata/openview/
[TaskScheduler timer] [14:36:51:908] [Verifier.calculateDatafilePathsAndSizes:2977] canonicalPath=/opt/oracle/app/oracle/oradata/openview/
[TaskScheduler timer] [14:36:51:910] [Verifier.calculateDatafilePathsAndSizes:2977] canonicalPath=/opt/oracle/app/oracle/oradata/openview/
[TaskScheduler timer] [14:36:51:912] [Verifier.calculateDatafilePathsAndSizes:2977] canonicalPath=/opt/oracle/app/oracle/oradata/openview/
[TaskScheduler timer] [14:36:51:914] [Verifier.calculateDatafilePathsAndSizes:2977] canonicalPath=/opt/oracle/app/oracle/oradata/openview/
[TaskScheduler timer] [14:36:51:915] [Verifier.calculateDatafilePathsAndSizes:2977] canonicalPath=/opt/oracle/app/oracle/oradata/openview/
[TaskScheduler timer] [14:36:51:917] [Verifier.calculateDatafilePathsAndSizes:2977] canonicalPath=/opt/oracle/app/oracle/oradata/openview/
[TaskScheduler timer] [14:36:51:919] [Verifier.calculateDatafilePathsAndSizes:2977] canonicalPath=/opt/oracle/app/oracle/oradata/openview/
[TaskScheduler timer] [14:36:51:921] [Verifier.calculateDatafilePathsAndSizes:2977] canonicalPath=/opt/oracle/app/oracle/oradata/openview/
[TaskScheduler timer] [14:36:51:923] [Verifier.calculateDatafilePathsAndSizes:2977] canonicalPath=/opt/oracle/app/oracle/oradata/openview/
[TaskScheduler timer] [14:36:51:925] [Verifier.calculateDatafilePathsAndSizes:2977] canonicalPath=/opt/oracle/app/oracle/oradata/openview/
[TaskScheduler timer] [14:36:51:927] [Verifier.calculateDatafilePathsAndSizes:2977] canonicalPath=/opt/oracle/app/oracle/oradata/openview/
[TaskScheduler timer] [14:36:51:965] [Verifier.calculateRedoLogGroupFileSizes:3269] canonicalPath=/opt/oracle/app/oracle/oradata/openview/
[TaskScheduler timer] [14:36:51:967] [Verifier.calculateRedoLogGroupFileSizes:3269] canonicalPath=/opt/oracle/app/oracle/oradata/openview/
[TaskScheduler timer] [14:36:51:970] [Verifier.calculateRedoLogGroupFileSizes:3269] canonicalPath=/opt/oracle/app/oracle/oradata/openview/
[TaskScheduler timer] [14:36:51:971] [Verifier.getControlfFileSizes:3187] No. of Control files:=3
[Thread-13] [14:36:52:840] [UIHost.getHtmlSummary:1055] UIHost:getHtmlSummary: running createTemplateDocument NOT for SHOW_TEMPLATE condition
[Thread-13] [14:36:53:148] [UIHost.getHtmlSummary:1061] UIHost:getHtmlSummary: after running createTemplateDocument NOT for SHOW_TEMPLATE condition
[Thread-13] [14:36:53:223] [XSLConst.generateHeaderXSL:211] NLS:Template Name:= null
[Thread-13] [14:36:53:224] [XSLConst.generateHeaderXSL:216] Template Description:= Use this template to create a customized database.
[Thread-13] [14:36:55:511] [UIHost.getHtmlSummary:1100] UIHost->getHtmlSummary: start printing of transformed document
[TaskScheduler timer] [14:38:16:194] [Host.executeSteps:4426] Executing steps....
[TaskScheduler timer] [14:38:16:195] [Host.setUpForOperation:3198] setUpForOperation: Mode = 3
[TaskScheduler timer] [14:38:16:197] [OsUtilsBase.copyFile:716] OsUtilsBase.copyFile:
[TaskScheduler timer] [14:38:16:393] [Host.executeSteps:4605] setupForOperation returned: true
[TaskScheduler timer] [14:38:16:396] [Host.createStepSQLInterface:6444] sid =openview
[Thread-18] [14:38:16:655] [StepContext$ModeRunner.run:2495] ---- Progress Needed:=true
What are my options now? I have also selected to "Generate Database Creation Scripts" but I'm not sure how to utilize those scripts. Any help would be appreciated! :)

Hi, i have the same problème. I tried to resolve it by modifying semaphores ans shared memory parameters in the /etc/system file but it doesn't work.
I want to try résolving the problem by modifying the stty parameter but i don't know how to do it.
bash-3.00# stty -a
speed 38400 baud;
rows = 52; columns = 177; ypixels = 0; xpixels = 0;
csdata ?
eucw 1:0:0:0, scrw 1:0:0:0
intr = ^c; quit = ^\; erase = ^?; kill = ^u;
eof = ^d; eol = <undef>; eol2 = <undef>; swtch = <undef>;
start = ^q; stop = ^s; susp = ^z; dsusp = ^y;
rprnt = ^r; flush = ^o; werase = ^w; lnext = ^v;
-parenb -parodd cs8 -cstopb -hupcl cread -clocal -loblk -crtscts -crtsxoff -parext
-ignbrk brkint -ignpar -parmrk -inpck -istrip -inlcr -igncr icrnl -iuclc
ixon -ixany -ixoff imaxbel
isig icanon -xcase echo echoe echok -echonl -noflsh
-tostop echoctl -echoprt echoke -defecho -flusho -pendin iexten
opost -olcuc onlcr -ocrnl -onocr -onlret -ofill -ofdel tab3
I want to delete the tab3 parameter, because in a other solaris where oracle is installed correctelly the tab3 doesn't appear when i execute the commande stty -a.
if someone has resolved this problem please give me more details to help me.
thanks.

Similar Messages

  • DB, Control, Redolog files location while Creating DB with DBCA

    I am creating DB with DBCA, and want to control locations of these files like
    /u04/oradata/dbname/filename,
    so can i put this in front of all in the section of file direcotry ?
    2nd how i can check redolog file destination of existing DB with query/view?
    Controlfiles
    {ORACLE_BASE}\oradata\{DB_NAME}\
    {ORACLE_BASE}\oradata\{DB_NAME}\
    {ORACLE_BASE}\oradata\{DB_NAME}\
    DB files
    Filename File Directory
    CWMLITE01.DBF {ORACLE_BASE}\oradata\{DB_NAME}\
    SYSTEM01.DBF {ORACLE_BASE}\oradata\{DB_NAME}\
    UNDOTBS01.DBF {ORACLE_BASE}\oradata\{DB_NAME}\
    Redo Log Groups
    REDO01.LOG {ORACLE_BASE}\oradata\{DB_NAME}\
    REDO02.LOG {ORACLE_BASE}\oradata\{DB_NAME}\
    REDO03.LOG {ORACLE_BASE}\oradata\{DB_NAME}\

    to access newly created db through sqlplus , i have
    to update, /etc/oratab?Not necessarily. If you want to use e.g. scripts that reference oratab or if you want dbca to "see" the db, then yes. It depends.
    and then export oraclehome,
    base, path, sid and access it or do have to adjustYes you need to set up your environment based on the instance and its Oracle Home. See the Install Guide (post install) and/or Administrator's Guide.
    my listener will automatically register this new db?No, well, not really. The instance (pmon) will automatically register with the listener.

  • Creating DB with DBCA on Windows

    I want to create DB with dbca on windows, what is the considrations i should do while creating it?
    I created DBs with dbca on linux boxes, how it differs on windows, How i will give the paths ? etc or any any suggestions.......

    suggestions......issue
    ms-dos>dbca
    enjoy the journey
    </suggestion>

  • Creating databases with dbca templates after upgrades and patches

    I have a 10.2.0.1 base release Oracle Home. Over time it has been upgraded to 10.2.0.3 and quarterly security patches have been applied. Now I want to create a new database using a dbca (database configuration assistant) template.
    During the 10.2.0.3 install did the templates also upgraded to include all the 10.2.0.3 stuff? Or are they still back at 10.2.0.1?
    What about the quarterly CPU patches? Do they need to be applied to the new db after it is created?
    Thanks,
    Rob

    I opened a Service Request. Here is the official answer from Oracle support.
    QUESTION
    =========
    After applying the latest CPU(JAN2008CPU) I have created a new database using DBCA's seed template (General). Do I need to run the catcpu
    .sql on the newly created database? Are the seed templates already updated with
    the CPU?
    ANSWER
    =======
    No, as these templates are not containing the Oracle binaries that is updated by the CPU.
    Please let me know if you need further assistance regarding this issue and I will be glad to assist you further.
    Otherwise please close this SR from MetaLink.
    Thanks!
    Greetings from Oracle,
    Oracle Support Services

  • RAC: ocfs-option disabled when trying to create database with dbca.

    Hi everybody,
    I have a really weird problem running dbca in my 2-node RAC installation on Red Hat ES.
    The software version of both oracle clusterware and rdbms is 10.2.0.2.0, meaning the latest patchset has been applied.
    I have installed and configured ocfs, and 4 different ocfs-partition are neatly presented to the operating system. I can save files and browse the ocfs file system, everything seems to be working fine.
    Also, srvctl status nodeapps -n <nodename> shows that oracle clusterware is running nicely, all the components are up including the listener, which I used netca to configure.
    However, when trying to create a cluster database using dbca, the option to use ocfs is not enabled, e.g it is "grayed out" in the Oracle Universal installer. So is raw devices option. The only option left is the ASM, which is selectable in the OUI.
    In addition, I can indeed run scripts manually and create a single-instance database and use the ocfs-partitions for the datafiles, redo logs and archivelogs. No problems at all!
    Do any of you guys have the slightest clue what can be causing this behaviour? Of course I have raised an issue with Oracle Support, but while waiting for an update, it doesn't hurt trying the forum.
    I appreciate all suggestions, thanks for taking the time to read my posting.
    Best Regards,
    Vegard

    You were right.
    http://download-uk.oracle.com/docs/html/B14203_05/intro.htm#sthref44
    under the section
    "1.3 Configuration Tasks for Oracle Clusterware and Oracle Real Application Clusters"
    "... If you use RAC on Oracle Database 10g Standard Edition, then you must use ASM."
    Thanks, problem solved.
    - Vegard

  • Problems when I try create a database with DBCA

    Hello,
    I have created a clonic template with the DBCA of one of my Databases.
    When I try create Database with the template the DBCA does not do anything.
    No error messages.
    My Oracle is 9i 9.2.0.6.
    Somebody can help me?

    Can you check the alert log/ trace file if you can see any error message there ??

  • ORA-27103, can not create a database with dbca 10gR2 in SL3

    Hello,
    I'm just trying to install Oracle Database 10g Release 2 (10.2.0.1.0) , Enterprise/Standard Edition for Linux x86 in Scientific Linux CERN Release 3.0.8 (SL) following the instructions
    http://www.oracle.com/technology/obe/obe10gdb/install/linuxpreinst/linuxpreinst.htm
    The installations goes right, but when I try to create a new database with dbca assistant I got the following errors while copying database files
    ORA-27103: internal error
    using the scripts:
    startup nomount pfile="/u01/app/oracle/admin/samdb/scripts/init.ora";
    ORA-27103: internal error
    Linux Error: 13: Permission denied
    Additional information: 101
    Additional information: 134920812
    I've checked the permissions but they seem ok, so I wonder if anyone could figure out what I'm doing wrong.
    Thanks in advance

    the error is dropped when there is an issue with the (db) block size, needs to be a multiple of the system page size, or when there is an issue with the heap allocation,
    so please check init.ora/spfile parameters
    maybe an strace -frt -s 512 gives a hint
    guido

  • Can not create new DB with DBCA ora-12560

    My OS is Windows XP. Oracle version is 10.2.0.3.
    Try to create an instance with dbca. I got ora-12560 error when coping database files.
    So I try to create DB instance manually.
    When I run
    set ORACLE_SID=tcbom
    D:\oracle\product\10.2.0\db_1\bin\oradim.exe -new -sid TCBOM -startmode manual -spfile
    I got the following error.
    Instance created.
    DIM-00019: create service error
    O/S-Error: (OS 1053) The service did not respond to the start or control request in a timely fashion.
    Could you pls tell how to solve this issue?

    ipconfig -all
    Windows IP Configuration
    Host Name . . . . . . . . . . . . : sha
    Primary Dns Suffix . . . . . . . : net.plm.eds.com
    Node Type . . . . . . . . . . . . : Hybrid
    IP Routing Enabled. . . . . . . . : Yes
    WINS Proxy Enabled. . . . . . . . : No
    DNS Suffix Search List. . . . . . : net.plm.eds.com
    ugs.com
    sdrc.com
    Ethernet adapter VMware Network Adapter VMnet1:
    Connection-specific DNS Suffix . : net.plm.eds.com
    Description . . . . . . . . . . . : VMware Virtual Ethernet Adapter for VMnet1
    Physical Address. . . . . . . . . :
    Dhcp Enabled. . . . . . . . . . . : No
    IP Address. . . . . . . . . . . . : 192.168.222.1
    Subnet Mask . . . . . . . . . . . : 255.255.255.0
    Default Gateway . . . . . . . . . :
    Ethernet adapter Local Area Connection:
    Connection-specific DNS Suffix . : net.plm.eds.com
    Description . . . . . . . . . . . : Broadcom NetXtreme 57xx Gigabit Controller
    Physical Address. . . . . . . . . :
    Dhcp Enabled. . . . . . . . . . . : Yes
    Autoconfiguration Enabled . . . . : Yes
    IP Address. . . . . . . . . . . . : 121.77.119.228
    Subnet Mask . . . . . . . . . . . : 255.255.252.0
    Default Gateway . . . . . . . . . : 121.77.116.1
    DHCP Server . . . . . . . . . . . : 10.100.113.43
    DNS Servers . . . . . . . . . . . : 219.233.241.166
    211.167.97.67
    211.167.97.68
    Lease Obtained. . . . . . . . . . : 2009年4月6日 12:50:03
    Lease Expires . . . . . . . . . . : 2009年4月7日 12:08:14
    Ethernet adapter Wireless Network Connection:
    Media State . . . . . . . . . . . : Media disconnected
    Description . . . . . . . . . . . : Dell 无线 1490 双频段 WLAN Mini-Card
    Physical Address. . . . . . . . . :
    Ethernet adapter {87DAF85D-AF14-4A7D-992B-D6A928CC3565}:
    Connection-specific DNS Suffix . : net.plm.eds.com
    Description . . . . . . . . . . . : Nortel IPSECSHM Adapter - Packet Scheduler Miniport
    Physical Address. . . . . . . . . :
    Dhcp Enabled. . . . . . . . . . . : No
    IP Address. . . . . . . . . . . . : 0.0.0.0
    Subnet Mask . . . . . . . . . . . : 0.0.0.0
    Default Gateway . . . . . . . . . :
    listener.ora
    # listener.ora Network Configuration File: D:\oracle\product\10.2.0\db_1\network\admin\listener.ora
    # Generated by Oracle configuration tools.
    LISTENER10G =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = sha.net.plm.eds.com)(PORT = 1521))
    )

  • Creating a Data Guard Database with RMAN in 10&11g

    I found this notes for 9i, looking for same for 10g & 11g
    183570.1 Creating a Data Guard Database with RMAN (Recovery Manager) using Duplicate Command

    These notes just show duplicating dbs without datagurd, i am looking for Creating a Data Guard DB with RMAN in 10 &11g.

  • Error while creating database using DBCA

    Hi,
    I installed Oracle10gR2 on my windows machine.Now am creating a database with dbca but just after i click the finish button it gives me the error -
    Cannot create directory "F:\oracle\cfgtoollogs\dbca\ora10g" where F:\oracle is the directory where i have installed Oracle 10g and ora10g is the database name.
    I have full permission on the folders.Can anyone please let me know what is the problem here.
    Regards,
    Somd

    Hi OrionNet,
    At last i could create the database successfully.But these are the issues I faced and am listing down the solution so that it can help others too.
    1.I could not find the Administrative Tools-> Local security Policy --> Local Policies --> User Right Assignment in the Windows Vista Home Premium.I went and checked many blogs and forums on where is it located.It seems it is not included in the home premium and people are having a tough time working out the round abouts.
    2.The problem was that my UAC (User Account Control) in the Windows Security Center was turned on which was not allowing me to create the database.I turned it off,and it created the db smoothly.
    Thanks a lot for your help..I really appreciate it :)
    Regards,
    Somd

  • A lot of problems with Oracle BI SEE 11g

    I have a lot of problems with Oracle BI SEE 11g
    1. I upgraded my BI SEE 10 repository and can it openning in offline mode.
    2. I can't deploy my upgraded repository in EM MW Control 11g - when i try to open Farm_bifoundation_domain->Business Intelligence->coreapplication, i get error "Stream closed
    For more information, please see the server's error log for an entry beggining with: Server Exception during PPR, #41".
    Opening Logs by EM control doesn't work too.
    in file middleware\user_projects\domains\bifoundation_domain\servers\AdminServer\logs\AdminServer.log i see this event:
    <Error> <HTTP> <oratest.itera.ru> <AdminServer> <[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <b639ac3e56e9a463:bd6fa7f:12ac7271e09:-8000-00000000000009e8> <1283408423378> <BEA-101019> <[ServletContext@329875093[app:em module:/em path:/em spec-version:2.5]] Servlet failed with IOException
    java.io.IOException: Stream closed
    Have you any ideas?
    3. Ok, i taking sample repository and adding a new datasource in it:
    Database: Oracle 8i
    Connection pool:
    Call interface OCI 8i/9i
    Data source name:
    (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP) (Host = oraapp) (Port = 1521) ) ) (CONNECT_DATA = (SID = MYSID) ) )
    This settings are working fine in BI 10.
    In BI 11g i get this funny error: "The connection has failed". I lost my time in attempts to connect to Oracle DB 8, but have not results. After that i hacked button "Query DBMS" at "Features" tab, pressed it and when get error "ORA-03134: Connections to this server version are no longer supported.".
    Therefore Oracle 8 DB as datasource not supported. Am i right?
    4. In sample repository i added oracle DB 10 as datasource, then added two dual tables and their connection to all layers.
    Now i open BI Answers, and trying to create report with one dummy column, Now i have this error:
    Error
         View Display Error
    Odbc driver returned an error (SQLExecDirectW).
    Error Details
    Error Codes: OPR4ONWY:U9IM8TAC:OI2DL65P
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 43113] Message returned from OBIS. [nQSError: 42016] Check database specific features table. Must be able to push at least a single table reference to a remote database (HY000)
    SQL Issued: SELECT s_0, s_1 FROM ( SELECT 0 s_0, "ORA10G"."dual"."dummy" s_1 FROM "ORA10G" ) djm
    Database features are defaults.
    Does anyone solve this problem?

    Turribeach, Thanks for you time.
    1. It was not a question
    3. Yes, i have read platforms, but not supported datasources. Now i see, that BI 11g support as datasource Oracle DB 9.2.0.7 or higher. I am sorry.
    4. I'm using OCI connection type
    Now i recreate Database in Physical schema and answers is showing report data for me! But only from one table, when i use columns from to tables from one datasource, i geting error:
    Error View Display Error Odbc driver returned an error (SQLExecDirectW). Error Details Error Codes: OPR4ONWY:U9IM8TAC:OI2DL65P State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 43113] Message returned from OBIS. [nQSError: 46008] Internal error: File server/Utility/Server/DataType/SUKeyCompare.cpp, line 875. (HY000) SQL Issued: SELECT s_0, s_1, s_2 FROM ( SELECT 0 s_0, "Ora10g"."hierarchy_obj_cust_v"."sort_order" s_1, "Ora10g"."NSI_SCHEMA"."SCHEMA_NAME" s_2 FROM "Ora10g" ) djm
    Edited by: serzzzh on 03.09.2010 3:44

  • How to create portlet pages in oracle webcenter 11g?

    Hi all,
    currently we are using an application with oracle web portal 10g server. Is it possible to do migration all portlet pages 10g portal to 11g webcenter ?
    and please clarify how to create a portlet page in webcenter 11g?
    Regards
    Nagarajan

    Hi Nagarajan,
    In webcenter there is no concept of portlets.Here you need to have all the portlets as WSRP.
    So in a jist, you need to expose your current portlets as WSRP and the same should be consumed in webcenter portal pages.
    Hope this make things clear.

  • Error creating bean with name 'org.springframework.dao.annotation.Persisten

    Hello
    I am using Hibernate 4, Spring 3 , JSF 2.0 and Weblogic 10.3.6
    When I start weblogic server and server starts successfully, however whenever it starts publishing application, I am getting the following exception.
    Error creating bean with name
    'org.springframework.dao.annotation.PersistenceExceptionTranslationPostProcessor#0'
      defined in ServletContext resource [/WEB-INF/applicationContext.xml]:
      Initialization of bean failed; nested exception is
      org.springframework.beans.factory.BeanCreationException:
        Caused By: org.springframework.beans.factory.BeanCreationException: Error creating
       bean with name 'entityManagerFactory'defined in ServletContext resource
       [/WEB-INF/applicationContext.xml]: Invocation of init method failed;
       nested exception is java.lang.NoSuchMethodError:
       javax.persistence.spi.PersistenceUnitInfo.getSharedCacheMode()Ljavax/persistence/
       SharedCacheMode;
    Caused By: java.lang.NoSuchMethodError:
    javax.persistence.spi.PersistenceUnitInfo.getSharedCacheMode()
    Ljavax/persistence /SharedCacheMode;    at
    org.hibernate.ejb.util.LogHelper.logPersistenceUnitInfo(LogHelper.java:38)  at
    org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:525)
    at org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:72)     at  org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.createNativeEntityManager I have the following in applicationContext.xml
    <beans xmlns="http://www.springframework.org/schema/beans"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:tx="http://www.springframework.org/schema/tx"
        xmlns:context="http://www.springframework.org/schema/context"
        xsi:schemaLocation="http://www.springframework.org/schema/beans
    http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
    http://www.springframework.org/schema/tx
    http://www.springframework.org/schema/tx/spring-tx-3.0.xsd
    http://www.springframework.org/schema/context
    http://www.springframework.org/schema/context/spring-context-3.0.xsd">     
        <context:component-scan base-package="net.test" />
        <!-- Data Source Declaration -->
        <bean id="DataSource" class="com.mchange.v2.c3p0.ComboPooledDataSource"
            destroy-method="close">
            <property name="driverClass" value="oracle.jdbc" />
            <property name="jdbcUrl" value="jdbc:oracle:thin:@server:1521:DB" />
            <property name="user" value="scott" />
            <property name="password" value="tiger" />
            <property name="maxPoolSize" value="10" />
            <property name="maxStatements" value="0" />
            <property name="minPoolSize" value="5" />
        </bean>
        <bean
            class="org.springframework.dao.annotation.PersistenceExceptionTranslationPostProcessor" />
        <!-- JPA Entity Manager Factory -->
        <bean id="entityManagerFactory"
            class="org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean">
            <property name="dataSource" ref="DataSource" />
            <property name="packagesToScan" value="net.test.entity" />
            <property name="jpaVendorAdapter">
                <bean class="org.springframework.orm.jpa.vendor.HibernateJpaVendorAdapter">
                    <property name="showSql" value="true" />
                    <property name="generateDdl" value="false" />
                    <property name="databasePlatform" value="${jdbc.dialectClass}" />
                </bean>
            </property>
        </bean>
        <bean id="defaultLobHandler" class="org.springframework.jdbc.support.lob.DefaultLobHandler" />
        <!-- Session Factory Declaration -->
        <bean id="SessionFactory"
            class="org.springframework.orm.hibernate4.LocalSessionFactoryBean">
            <property name="dataSource" ref="DataSource" />
            <property name="annotatedClasses">
                <list>
                    <value>net.test.entity.Department</value>
                    <value>net.test.entity.Employees</value>
                </list>
            </property>
            <property name="hibernateProperties">
                <props>
                    <prop key="hibernate.dialect">org.hibernate.dialect.Oracle10gDialect</prop>
                    <prop key="hibernate.show_sql">true</prop>
                    <prop key="hibernate.query.factory_class">org.hibernate.hql.internal.classic.ClassicQueryTranslatorFactory
                    </prop>
                </props>
            </property>
        </bean>
        <!-- Enable the configuration of transactional behavior based on annotations -->
        <tx:annotation-driven transaction-manager="txManager" />
        <tx:annotation-driven transaction-manager="transactionManager" />
        <!-- Transaction Config -->
        <bean id="txManager"
            class="org.springframework.orm.hibernate4.HibernateTransactionManager">
            <property name="sessionFactory" ref="SessionFactory" />
        </bean>
        <bean id="transactionManager" class="org.springframework.orm.jpa.JpaTransactionManager">
            <property name="entityManagerFactory" ref="entityManagerFactory" />
        </bean>
        <context:annotation-config />   
        <bean id="hibernateStatisticsMBean" class="org.hibernate.jmx.StatisticsService">
            <property name="statisticsEnabled" value="true" />
            <property name="sessionFactory" value="#{entityManagerFactory.sessionFactory}" />
        </bean>
        <bean name="ehCacheManagerMBean"
            class="org.springframework.cache.ehcache.EhCacheManagerFactoryBean" />
        <bean id="mbeanServer" class="org.springframework.jmx.support.MBeanServerFactoryBean">
            <property name="locateExistingServerIfPossible" value="true" />
        </bean>   
        <bean id="jmxExporter" class="org.springframework.jmx.export.MBeanExporter"
            lazy-init="false">
            <property name="server" ref="mbeanServer" />
            <property name="registrationBehaviorName" value="REGISTRATION_REPLACE_EXISTING" />
            <property name="beans">
                <map>
                    <entry key="SpringBeans:name=hibernateStatisticsMBean"
                        value-ref="hibernateStatisticsMBean" />
                    <entry key="SpringBeans:name=ehCacheManagerMBean" value-ref="ehCacheManagerMBean" />
                </map>
            </property>
        </bean>
    </beans>
    pom.xml
    <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
              http://maven.apache.org/maven-v4_0_0.xsd">
        <modelVersion>4.0.0</modelVersion>
        <groupId>net.test</groupId>
        <artifactId>myappp</artifactId>
        <packaging>war</packaging>
        <version>1.0-SNAPSHOT</version>
        <name>myappp</name>
        <url>http://maven.apache.org</url>
        <repositories>
            <repository>
                <id>prime-repo</id>
                <name>PrimeFaces Maven Repository</name>
                <url>http://repository.primefaces.org</url>
                <layout>default</layout>
            </repository>
        </repositories>
        <properties>
            <spring.version>3.1.1.RELEASE</spring.version>
        </properties>
        <dependencies>
            <!-- Spring 3 dependencies -->
            <dependency>
                <groupId>org.springframework</groupId>
                <artifactId>spring-core</artifactId>
                <version>${spring.version}</version>
            </dependency>
            <dependency>
                <groupId>org.springframework</groupId>
                <artifactId>spring-context</artifactId>
                <version>${spring.version}</version>
            </dependency>
            <dependency>
                <groupId>org.springframework</groupId>
                <artifactId>spring-web</artifactId>
                <version>${spring.version}</version>
            </dependency>
            <dependency>
                <groupId>org.springframework</groupId>
                <artifactId>spring-tx</artifactId>
                <version>${spring.version}</version>
            </dependency>
            <dependency>
                <groupId>org.springframework</groupId>
                <artifactId>spring-orm</artifactId>
                <version>${spring.version}</version>
            </dependency>
            <dependency>
                <groupId>org.springframework</groupId>
                <artifactId>spring-test</artifactId>
                <version>${spring.version}</version>
            </dependency>
            <!-- JSF library -->
            <dependency>
                <groupId>com.sun.faces</groupId>
                <artifactId>jsf-api</artifactId>
                <version>2.1.6</version>
            </dependency>
            <dependency>
                <groupId>com.sun.faces</groupId>
                <artifactId>jsf-impl</artifactId>
                <version>2.1.6</version>
            </dependency>
            <dependency>
                <groupId>javax.servlet</groupId>
                <artifactId>jstl</artifactId>
                <version>1.2</version>
            </dependency>
            <!-- Primefaces library -->
            <dependency>
                <groupId>org.primefaces</groupId>
                <artifactId>primefaces</artifactId>
                <version>3.4.2</version>
            </dependency>
            <dependency>
                <groupId>org.primefaces.themes</groupId>
                <artifactId>afterwork</artifactId>
                <version>1.0.8</version>
            </dependency>
            <!-- Hibernate library -->
            <dependency>
                <groupId>org.hibernate</groupId>
                <artifactId>hibernate-core</artifactId>
                <version>4.1.0.Final</version>
            </dependency>
            <dependency>
                <groupId>javassist</groupId>
                <artifactId>javassist</artifactId>
                <version>3.12.1.GA</version>
            </dependency>
            <dependency>
                <groupId>javax.inject</groupId>
                <artifactId>javax.inject</artifactId>
                <version>1</version>
            </dependency>
            <!-- Oracle Java Connector library -->
            <dependency>
                <groupId>com.oracle</groupId>
                <artifactId>ojdbc6</artifactId>
                <version>11.2.0.3</version>
            </dependency>
            <dependency>
                <groupId>c3p0</groupId>
                <artifactId>c3p0</artifactId>
                <version>0.9.1.2</version>
            </dependency>
            <!-- Log4j library -->
            <dependency>
                <groupId>log4j</groupId>
                <artifactId>log4j</artifactId>
                <version>1.2.16</version>
            </dependency>
            <dependency>
                <groupId>org.testng</groupId>
                <artifactId>testng</artifactId>
                <version>6.4</version>
            </dependency>
            <dependency>
                <groupId>org.hibernate</groupId>
                <artifactId>hibernate-jpamodelgen</artifactId>
                <version>1.2.0.Final</version>
            </dependency>
            <dependency>
                <groupId>org.hibernate</groupId>
                <artifactId>hibernate-entitymanager</artifactId>
                <version>4.1.0.Final</version>
            </dependency>
            <dependency>
                <groupId>org.hibernate.javax.persistence</groupId>
                <artifactId>hibernate-jpa-2.0-api</artifactId>
                <version>1.0.1.Final</version>
            </dependency>
            <dependency>
        <groupId>org.apache.myfaces.extensions.cdi.core</groupId>
        <artifactId>myfaces-extcdi-core-api</artifactId>
        <version>1.0.5</version>
        <scope>compile</scope>
    </dependency>
            <dependency>
                <groupId>org.hibernate</groupId>
                <artifactId>hibernate-ehcache</artifactId>
                <version>4.0.1.Final</version>
            </dependency>      
        </dependencies>
        <build>
            <resources>
                <resource>
                    <directory>src/main/resources</directory>
                </resource>
            </resources>
            <plugins>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-compiler-plugin</artifactId>             
                    <configuration>
                        <source>1.6</source>
                        <target>1.6</target>
                        <compilerArgument>-proc:none</compilerArgument>
                    </configuration>
                </plugin>
                <plugin>
                    <groupId>org.bsc.maven</groupId>
                    <artifactId>maven-processor-plugin</artifactId>
                    <version>2.0.6</version>
                    <executions>
                        <execution>
                            <id>process</id>
                            <goals>
                                <goal>process</goal>
                            </goals>
                            <phase>generate-sources</phase>
                            <configuration>
                                <!-- source output directory -->
                                <outputDirectory>target/metamodel</outputDirectory>
                            </configuration>
                        </execution>
                    </executions>
                </plugin>
            </plugins>
        </build>
    </project>In Weblogic 10.3.6 I have enabled JPA2 support by adding the following in commEnv.cmd
    @rem Enable JPA 2.0 functionality on WebLogic Server
    set PRE_CLASSPATH=%BEA_HOME%\modules\javax.persistence_1.1.0.0_2-0.jar;
    %BEA_HOME%\modules\com.oracle.jpa2support_1.0.0.0_2-1.jarApplication which works on WLS 10.3.6 is http://download.oracle.com/otn/nt/middleware/11g/wls/1036/wls1036_dev.zip and the one which is not working is
    http://download.oracle.com/otn/nt/middleware/11g/wls/1036/wls1036_win32.exe.
    How can I resolve these errors and exceptions? Any help is highly appreciable.
    Thanks

    Looks like you might have a spelling error in your spring config, or are trying to set a read-only property. BdasInterfaceManagerImpl has been configured as having a method called setBdasInterfaceJdbcDao() : does it?
    By the way, we now know that you're writing code for JP Morgan - there's a slight risk that this could bite you in the @ss at some point (there are some malicious people around) you might want to take that into consideration next time!

  • DBCA hanging on 9i Rel 2 / Red Hat 8.0

    O/S: Red Hat 8.0
    DBMS: 9i Release 2
    Processor: AMD Athlon XP 2600
    RAM: 1GB (Swap 2GB)
    Disk partition: 10GB
    As with many other correspondents of this forum, DBCA hangs at 51% progress. I have set all kernel parameters and ulimit sizes as documented, to no avail. I have tried using both BASH and KSH. HOWEVER, the parameters SHMMIN, SHMSEG and SHMVMX don't appear to exist. Maybe that's my problem...?
    Many thanks in advance.

    Try following instructions listed here instead.
    http://www.puschitz.com/InstallingOracle9i.shtml
    P.S. You've a very powerful machine. 1GB... wow.

  • How to create database with ASM

    HI
    How to create database with ASM?
    I install vmware workstation on window XP .On virtual machine install Linux 5 enterprise (Oracle) install.
    I install oracle DB software only. Also make 3 disk for ASM .
    1 -- When I want to install oracle DB with ASM . In this process candidate disks not show . Why?
    How I can see disks ..
    so I simple install oracle DB software only.
    2 -- Now I want to create database with ASM by DBCA .
    What process I will follow ?
    Please guide me
    Thanks

    Hi
    Steps to create database with ASM.
    1.Install oracle binary with active CRS(For single node installation CRS is activated when you run root.sh) .
    2.Create disk without file ssytem.
    3.Assign disk to raw .
    4.Change owner and permission to raw devices.
    5.Configure ASM manually or USing DBCA.
    Manually ASM Configuration.
    a.Create initialization parameter file and password file.
    b.Mandatory parameter is "instance_type=asm" as per your need configure rest of parameter like db_cache_size,large_pool_size,processes,remote_login_passwordfile,shared_pool_size etc..
    c.To discover disk configure "asm_diskstring=/dev/raw/raw*"
    Using DBCA to configure ASM.
    1.In storage type section choose ASM.It will ask for password of sysdba in 10g.
    2.ASM configuration window will open -> here it create disk group -> it shows all available ASM candidate disk automatical -> choose normal redundancy,external redundancy or high redundancy.
    ASM disk also can be conbfigured with ASMLIB .
    If ASM disk is configured you can start asm instance in nomount state and query to v$asm_disk to see all candidate disk.V$asm_disk only shows disk which is configured in asm_diskstrings.
    Hope this will help U,
    Tinku

Maybe you are looking for