Generate database script

Hello,
Question: is there any way in ORACLE to generate script “what is called reverse engineer “ from a database with complete (database structure, size, configuration, control file, tablespace, redo files, tables, views, users, security, roles etc..)
Then you can run this script in another computer, the script creates identical empty database.
Thanks in advance from any help

In the version of DBCA I was looking at, you didn't even have to go that far. You just checked the option for "Generate Database Creation Scripts" that was under the tamplate box, gave it a directory to create the scripts in, and it did all the hard work for you :)
~Jer

Similar Messages

  • Unable to move my database to a new environment using database script

    I have generated a database script from my dev machine by ; right click on DB >> tasks >> generate scripts. Then on my staging environment I open the script file inside sql server management studio , and I execute the script.
    But the script raised the following errors:-
    Msg 5133, Level 16, State 1, Line 2
    Directory lookup for the file "C:\Program Files\Microsoft SQL Server\MSSQL10_50.MSSQLSERVER\MSSQL\DATA\TMS.mdf" failed with the operating system error 2 (failed to retrieve text for this error. Reason: 15105).
    Msg 1802, Level 16, State 1, Line 2
    CREATE DATABASE failed. Some file names listed could not be created. Check related errors.
    Msg 5011, Level 14, State 5, Line 1
    User does not have permission to alter database 'TMS', the database does not exist, or the database is not in a state that allows access checks.
    Msg 5069, Level 16, State 1, Line 1
    ALTER DATABASE statement failed.
    Msg 911, Level 16, State 4, Line 3
    Database 'TMS' does not exist. Make sure that the name is entered correctly
    can anyone adivce what is the problem ?

    refer this article to find default data & log location.
    http://technet.microsoft.com/en-us/library/dd206993.aspx
    Please mark solved if I've answered your question, vote for it as helpful to help other users find a solution quicker
    Praveen Dsa | MCITP - Database Administrator 2008 |
    My Blog | My Page

  • Issue with Generate Create Script in new ODT 11.1.0.5.10 beta

    So I'm trying to determine if there's an issue with the Generate Create Script option in the new ODT 11.1.0.5.10 beta (when you right click on a table in Server Explorer).
    The SQL create script that it generates lacks the slash between lines. For example I generated the create script for my User table and this is what was generated:
    CREATE TABLE "DEV"."SYSTEM_USER_TB" ("RID" NUMBER(10,0),"USER_NAME" VARCHAR2(256 CHAR),"APPLICATION_RID" NUMBER(10,0),"FIRST_NAME" VARCHAR2(256 CHAR),"LAST_NAME" VARCHAR2(256 CHAR),"PW" VARCHAR2(128 CHAR),"PW_FORMAT" NUMBER,"PW_SALT" VARCHAR2(128 CHAR),"LAST_ACTIVITY_DT" DATE,"EXPIRATION_DT" DATE,"EMAIL" VARCHAR2(256 CHAR),"PW_QUESTION" VARCHAR2(256 CHAR),"PW_ANSWER" VARCHAR2(256 CHAR),"APPROVED_FLG" NUMBER(1,0),"LOCKED_OUT_FLG" NUMBER(1,0),"LAST_LOGIN_DT" DATE,"LAST_PW_CHANGED_DT" DATE,"LAST_LOCKOUT_DT" DATE,"FAILED_PW_ATTEMPT_CNT" NUMBER(6,0),"FAILED_PW_ATTEMPT_WINSTART" DATE,"FAILED_PW_ANSW_ATTEMPT_CNT" NUMBER(8,0),"FAILED_PW_ANSW_ATTEMPT_WINSTRT" DATE,"CREATED_BY_RID" NUMBER(10,0),"CREATED_DT" DATE,"MODIFIED_BY_RID" NUMBER(10,0),"MODIFIED_DT" DATE) TABLESPACE "USERS" PCTFREE 10 INITRANS 1 MAXTRANS 255 STORAGE ( INITIAL 131072 MAXEXTENTS 2147483645 MINEXTENTS 1 )
    CREATE UNIQUE INDEX "DEV"."XPKSTAFF" ON "DEV"."SYSTEM_USER_TB" ("RID" ) TABLESPACE "USERS"
    ALTER TABLE "DEV"."SYSTEM_USER_TB" ADD ( CONSTRAINT "SYS_C0033033" PRIMARY KEY ("RID") USING INDEX "DEV"."XPKSTAFF" ENABLE VALIDATE )
    ALTER TABLE "DEV"."SYSTEM_USER_TB" ADD ( CONSTRAINT "SYS_C0033032" CHECK ("RID" IS NOT NULL) ENABLE VALIDATE )
    CREATE TRIGGER "DEV"."SYSTEM_USER_TRG1"
    BEFORE
    INSERT
    ON "DEV"."SYSTEM_USER_TB"
    FOR EACH ROW
    begin
         select SYSTEM_USER_SEQ.nextval into :new.RID from dual;
    end;
    In my new Oracle Database Project, if I right click on the script and select "Run" or "Run On", the script fails saying:
    Connected.
    CREATE UNIQUE INDEX "DEV"."XPKSTAFF" ON "DEV"."SYSTEM_USER_TB" ("RID" ) TABLESPACE "USERS"
    ERROR at line 2:
    ORA-00922: missing or invalid option
    If I then add, a slash between lines, the script runs successfully and creates the table/trigger and whatever else just fine. For example, I changed the above generated code to look as follows:
    CREATE TABLE "DEV"."SYSTEM_USER_TB" ("RID" NUMBER(10,0),"USER_NAME" VARCHAR2(256 CHAR),"APPLICATION_RID" NUMBER(10,0),"FIRST_NAME" VARCHAR2(256 CHAR),"LAST_NAME" VARCHAR2(256 CHAR),"PW" VARCHAR2(128 CHAR),"PW_FORMAT" NUMBER,"PW_SALT" VARCHAR2(128 CHAR),"LAST_ACTIVITY_DT" DATE,"EXPIRATION_DT" DATE,"EMAIL" VARCHAR2(256 CHAR),"PW_QUESTION" VARCHAR2(256 CHAR),"PW_ANSWER" VARCHAR2(256 CHAR),"APPROVED_FLG" NUMBER(1,0),"LOCKED_OUT_FLG" NUMBER(1,0),"LAST_LOGIN_DT" DATE,"LAST_PW_CHANGED_DT" DATE,"LAST_LOCKOUT_DT" DATE,"FAILED_PW_ATTEMPT_CNT" NUMBER(6,0),"FAILED_PW_ATTEMPT_WINSTART" DATE,"FAILED_PW_ANSW_ATTEMPT_CNT" NUMBER(8,0),"FAILED_PW_ANSW_ATTEMPT_WINSTRT" DATE,"CREATED_BY_RID" NUMBER(10,0),"CREATED_DT" DATE,"MODIFIED_BY_RID" NUMBER(10,0),"MODIFIED_DT" DATE) TABLESPACE "USERS" PCTFREE 10 INITRANS 1 MAXTRANS 255 STORAGE ( INITIAL 131072 MAXEXTENTS 2147483645 MINEXTENTS 1 )
    CREATE UNIQUE INDEX "DEV"."XPKSTAFF" ON "DEV"."SYSTEM_USER_TB" ("RID" ) TABLESPACE "USERS"
    ALTER TABLE "DEV"."SYSTEM_USER_TB" ADD ( CONSTRAINT "SYS_C0033033" PRIMARY KEY ("RID") USING INDEX "DEV"."XPKSTAFF" ENABLE VALIDATE )
    ALTER TABLE "DEV"."SYSTEM_USER_TB" ADD ( CONSTRAINT "SYS_C0033032" CHECK ("RID" IS NOT NULL) ENABLE VALIDATE )
    CREATE TRIGGER "DEV"."SYSTEM_USER_TRG1"
    BEFORE
    INSERT
    ON "DEV"."SYSTEM_USER_TB"
    FOR EACH ROW
    begin
         select SYSTEM_USER_SEQ.nextval into :new.RID from dual;
    end;
    So, does anyone know if this is a bug? Could I be missing an option to add in the slashes to the generated code? Is there an option to not require the slashes? Could there be another way to execute these scripts?
    Seriously, I think I'm having deja vu from the last release of the Dev Tools: Generate Create Script creates scripts that won't run: ORA-00922: missing..
    ...except this time the documentation says I should be able to use the "Run" and "Run On" commands in the Oracle Database Project (see page 8): http://www.oracle.com/technology/tech/dotnet/pdf/ODT11_whatsnew.pdf
    null

    There are 2 issues in the generated script :
    1. Missing semicolons at the end of the create stmts
    2. Missing slashes
    Both of these fixes will be available in the ODT 11.1 release.

  • Issue with Generate Create Script in new ODT 11.1.0.6.10 beta

    I've tried this on several tables in my database. I choose Generate Script to ... a file, for a given table it gives me the error message "An error occurred while writing to fil: \nValue was either too large or too smal for an Int32."
    (It doesn't matter if I'm in a Oracle database project or some other project.)
    Trying to Generate Script To Project... when I'm in a Oracle Database Project, Visual Studio (2005) crashes. It appears to be some overflow exception according to crashinfo:
    EventType : clr20r3 P1 : devenv.exe P2 : 8.0.50727.762 P3 : 45716759
    P4 : mscorlib P5 : 2.0.0.0 P6 : 461eee3d P7 : 407b P8 : a3
    P9 : system.overflowexception
    (With ODT 11.1.0.5.10 beta it worked fine dispite the issue discussed in thread: Re: Issue with Generate Create Script in new ODT 11.1.0.5.10 beta
    /Tomas

    Tried to debug this error and got these exception details. Hope it helps!
    /Tomas
    System.OverflowException was unhandled
    Message="Value was either too large or too small for an Int32."
    Source="mscorlib"
    StackTrace:
    Server stack trace:
    at System.Decimal.ToInt32(Decimal d)
    at System.Decimal.op_Explicit(Decimal value)
    at Oracle.Management.Omo.TableSpaceQuotaDetails.FillTableSpaceQuota(OracleDataReader reader)
    at Oracle.Management.Omo.User.FillTableSpaceQuotas(OracleDataReader reader)
    at Oracle.Management.Omo.Connection.GetUserCollection(Boolean refresh)
    at Oracle.Management.Omo.Connection.GetUsers(Boolean refresh)
    at Oracle.Management.Omo.TableSQLGenerator.GetCreateSQLs(OmoObject obj, ArrayList& typeAndNames, Boolean checkRequired, Boolean appendSchemaName)
    at Oracle.Management.Omo.TableViewBase.GetCreateSQLs(Boolean appendSchemaName)
    at Oracle.VsDevTools.OracleUILDBProjectServices.GenerateCreateScript(OracleUILConnCtx connCtx, String[] objectNames, String objectOwner, OracleUILObjectType objectType)
    at Oracle.VsDevTools.OracleUILDBProjectServices.GenerateCreateScriptAsyncMethod(IntPtr ppvObj, OracleUILConnCtx connCtx, String[] objectNames, String objectOwner, OracleUILObjectType objectType, ICollection& scriptText)
    at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Int32 methodPtr, Boolean fExecuteInContext, Object[]& outArgs)
    at System.Runtime.Remoting.Messaging.StackBuilderSink.PrivateProcessMessage(RuntimeMethodHandle md, Object[] args, Object server, Int32 methodPtr, Boolean fExecuteInContext, Object[]& outArgs)
    at System.Runtime.Remoting.Messaging.StackBuilderSink.AsyncProcessMessage(IMessage msg, IMessageSink replySink)
    Exception rethrown at [0]:
    at System.Runtime.Remoting.Proxies.RealProxy.EndInvokeHelper(Message reqMsg, Boolean bProxyCase)
    at System.Runtime.Remoting.Proxies.RemotingProxy.Invoke(Object NotUsed, MessageData& msgData)
    at Oracle.VsDevTools.OracleUILDBProjectServices.GenerateScriptAsyncMethodDelegate.EndInvoke(ICollection& scriptText, IAsyncResult result)
    at Oracle.VsDevTools.OracleUILDBProjectServices.OnGenerateScriptAsyncCompletion(IAsyncResult ar)
    at System.Runtime.Remoting.Messaging.AsyncResult.SyncProcessMessage(IMessage msg)
    at System.Runtime.Remoting.Messaging.StackBuilderSink.AsyncProcessMessage(IMessage msg, IMessageSink replySink)
    at System.Runtime.Remoting.Proxies.AgileAsyncWorkerItem.ThreadPoolCallBack(Object o)
    at System.Threading._ThreadPoolWaitCallback.WaitCallback_Context(Object state)
    at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
    at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback(Object state)

  • Including Schema owner when generating DDL scripts

    Designer 9.0.4.6
    How do i set the option to include the schema owner prefix in the DDL scripts being generate ("generate server model from database") in design editor?

    Generating from the DB Admin tab does not prefix the objects I am generating with the schema name. There isn't a generator preference (that I've found at least) to accomplish this. Has anyone been able to generate database objects prefixed with the schema name?
    Thanks,
    Wayne

  • Serious Error when generating UPGRADE scripts

    The following runtime service log is generated when we try to generate UPGRADE scripts for a dimension that changed:
    14:10:32 [5E3974] Runtime Platform Service Version 9.2.0.2.8 starting
    14:10:32 [5E3974] Platform Repository Name OWB_RUNTIME_MGR on Service UTIDWHQ1 at Host localhost
    14:10:32 [5E3974] Recovery starting
    14:10:32 [5E3974] Service startup complete
    14:15:52 [5E3974] AuditId=8171: Processing unit deployment request
    14:15:52 [228A02] Attempting to create adapter 'class.Oracle Database.9.2.DDLDeployment'
    14:15:52 [228A02] script_run_begin auditId=8173 operation=9001
    14:15:59 [228A02] script_run_end auditId=8181 scriptRunStatus=15002
    14:16:00 [228A02] deploy_unit_done auditId=8171
    14:16:00 [5E3974] AuditId=8170: Request completed
    14:27:48 [5E3974] AuditId=8183: Processing unit deployment request
    14:27:48 [1173EF] Attempting to create adapter 'class.Oracle Database.9.2.DDLDeployment'
    14:27:48 [1173EF] script_run_begin auditId=8185 operation=9001
    14:27:53 [1173EF] script_run_end auditId=8193 scriptRunStatus=15002
    14:27:54 [1173EF] deploy_unit_done auditId=8183
    14:27:54 [5E3974] AuditId=8182: Request completed
    14:32:56 [5E3974] AuditId=8194: Processing execute request
    14:32:57 [4EC44] Attempting to create adapter 'class.RuntimePlatform.0.NativeExecution'
    14:32:57 [4EC44] Attempting to create native operator 'class.RuntimePlatform.0.NativeExecution.PLSQL'
    14:32:57 [4EC44] PLSQL callspec: declare l_env wb_rt_mapaudit.wb_rt_name_values;function bool_to_char (val boolean) return varchar2 is begin if (val is null) then return null; else if (val) then return 'true'; else return 'false'; end if; end if; end; begin l_env(1).param_name := 'AUDIT_ID'; l_env(1).param_value := 8194; l_env(2).param_name := 'OPERATING_MODE'; l_env(2).param_value := '2'; l_env(3).param_name := 'PURGE_GROUP'; l_env(3).param_value := 'wb'; l_env(4).param_name := 'MAX_NO_OF_ERRORS'; l_env(4).param_value := '50'; l_env(5).param_name := 'COMMIT_FREQUENCY'; l_env(5).param_value := '50000'; l_env(6).param_name := 'AUDIT_LEVEL'; l_env(6).param_value := '2'; l_env(7).param_name := 'BULK_SIZE'; l_env(7).param_value := '50000'; ? := MAP_GET_HB.main(p_env=>l_env);end;
    14:35:50 [4EC44] report_execution_result auditId=8194
    14:35:50 [5E3974] AuditId=8194: Request completed
    14:36:49 [5E3974] AuditId=8203: Processing unit deployment request
    14:36:49 [341960] Attempting to create adapter 'class.Oracle Database.9.2.DDLDeployment'
    14:36:50 [341960] script_run_begin auditId=8205 operation=9001
    14:36:55 [341960] script_run_end auditId=8213 scriptRunStatus=15002
    14:36:55 [341960] deploy_unit_done auditId=8203
    14:36:56 [5E3974] AuditId=8202: Request completed
    14:37:39 [5E3974] AuditId=8214: Processing execute request
    14:37:39 [233D48] Attempting to create adapter 'class.RuntimePlatform.0.NativeExecution'
    14:37:39 [233D48] Attempting to create native operator 'class.RuntimePlatform.0.NativeExecution.PLSQL'
    14:37:39 [233D48] PLSQL callspec: declare l_env wb_rt_mapaudit.wb_rt_name_values;function bool_to_char (val boolean) return varchar2 is begin if (val is null) then return null; else if (val) then return 'true'; else return 'false'; end if; end if; end; begin l_env(1).param_name := 'AUDIT_ID'; l_env(1).param_value := 8214; l_env(2).param_name := 'OPERATING_MODE'; l_env(2).param_value := '2'; l_env(3).param_name := 'PURGE_GROUP'; l_env(3).param_value := 'wb'; l_env(4).param_name := 'MAX_NO_OF_ERRORS'; l_env(4).param_value := '50'; l_env(5).param_name := 'COMMIT_FREQUENCY'; l_env(5).param_value := '50000'; l_env(6).param_name := 'AUDIT_LEVEL'; l_env(6).param_value := '2'; l_env(7).param_name := 'BULK_SIZE'; l_env(7).param_value := '50000'; ? := MAP_GET_HB.main(p_env=>l_env);end;
    14:39:55 [233D48] report_execution_result auditId=8214
    14:39:55 [5E3974] AuditId=8214: Request completed
    14:49:57 [5E3974] AuditId=8223: Processing unit deployment request
    14:49:57 [7EBE1] Attempting to create adapter 'class.Oracle Database.9.2.DDLDeployment'
    14:49:57 [7EBE1] script_run_begin auditId=8225 operation=9001
    14:50:02 [7EBE1] script_run_end auditId=8233 scriptRunStatus=15002
    14:50:03 [7EBE1] deploy_unit_done auditId=8223
    14:50:03 [5E3974] AuditId=8222: Request completed
    14:50:27 [5E3974] AuditId=8235: Processing unit deployment request
    14:50:27 [7A8A02] Attempting to create adapter 'class.Oracle Database.9.2.DDLDeployment'
    14:50:27 [7A8A02] script_run_begin auditId=8237 operation=9001
    14:50:33 [7A8A02] script_run_end auditId=8245 scriptRunStatus=15002
    14:50:34 [7A8A02] deploy_unit_done auditId=8235
    14:50:34 [5E3974] AuditId=8234: Request completed
    14:51:06 [5E3974] AuditId=8246: Processing execute request
    14:51:06 [6C6696] Attempting to create adapter 'class.RuntimePlatform.0.NativeExecution'
    14:51:06 [6C6696] Attempting to create native operator 'class.RuntimePlatform.0.NativeExecution.PLSQL'
    14:51:06 [6C6696] PLSQL callspec: declare l_env wb_rt_mapaudit.wb_rt_name_values;function bool_to_char (val boolean) return varchar2 is begin if (val is null) then return null; else if (val) then return 'true'; else return 'false'; end if; end if; end; begin l_env(1).param_name := 'AUDIT_ID'; l_env(1).param_value := 8246; l_env(2).param_name := 'OPERATING_MODE'; l_env(2).param_value := '3'; l_env(3).param_name := 'PURGE_GROUP'; l_env(3).param_value := 'wb'; l_env(4).param_name := 'MAX_NO_OF_ERRORS'; l_env(4).param_value := '50'; l_env(5).param_name := 'COMMIT_FREQUENCY'; l_env(5).param_value := '50000'; l_env(6).param_name := 'AUDIT_LEVEL'; l_env(6).param_value := '2'; l_env(7).param_name := 'BULK_SIZE'; l_env(7).param_value := '50000'; ? := MAP_GET_HB.main(p_env=>l_env);end;
    15:35:44 [6C6696] report_execution_result auditId=8246
    15:35:44 [5E3974] AuditId=8246: Request completed
    11:07:43 [5E3974] AuditId=8255: Processing unit deployment request
    11:07:44 [73A7AB] Attempting to create adapter 'class.Oracle Database.9.2.CMUpgrade'
    11:07:44 [73A7AB] java.lang.NullPointerException
         at oracle.wh.runtime.platform.adapter.odb.OdbCMUpgradeAdapter.prepare(OdbCMUpgradeAdapter.java:222)
         at oracle.wh.runtime.platform.service.controller.DeploymentController.prepare(DeploymentController.java:101)
         at oracle.wh.runtime.platform.service.controller.DeploymentController.prepare(DeploymentController.java:27)
         at oracle.wh.runtime.platform.service.DeploymentManager.run(DeploymentManager.java:41)
         at java.lang.Thread.run(Unknown Source)
    11:07:44 [73A7AB] java.lang.UnsatisfiedLinkError: /opt/oracle/product/rdbms/9.2.0/lib/libocijdbc9.sl: specified file is not a shared library, or a format error was detected.
         at java.lang.ClassLoader$NativeLibrary.load(Native Method)
         at java.lang.ClassLoader.loadLibrary0(Unknown Source)
         at java.lang.ClassLoader.loadLibrary(Unknown Source)
         at java.lang.Runtime.loadLibrary0(Unknown Source)
         at java.lang.System.loadLibrary(Unknown Source)
         at oracle.jdbc.oci8.OCIDBAccess.logon(OCIDBAccess.java:265)
         at oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java:360)
         at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.java:521)
         at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:325)
         at java.sql.DriverManager.getConnection(DriverManager.java:512)
         at java.sql.DriverManager.getConnection(DriverManager.java:141)
         at oracle.sysman.vdb.VdbSession.establishConnection(VdbSession.java:1266)
         at oracle.sysman.vdb.VdbSession.<init>(VdbSession.java:763)
         at oracle.sysman.vdb.VdbAutoCommitSession.<init>(VdbAutoCommitSession.java:266)
         at oracle.sysman.vdb.VdbSessionFactory.getNewAutoCommitSession(VdbSessionFactory.java:1206)
         at oracle.sysman.vdb.VdbSessionFactory.getAutoCommitSession(VdbSessionFactory.java:1118)
         at oracle.sysman.cmSDK.CMClient.<init>(CMClient.java:243)
         at oracle.wh.runtime.platform.adapter.odb.OdbCMUpgradeAdapter.getCMClient(OdbCMUpgradeAdapter.java:775)
         at oracle.wh.runtime.platform.adapter.odb.OdbCMUpgradeAdapter.prepare(OdbCMUpgradeAdapter.java:81)
         at oracle.wh.runtime.platform.service.controller.DeploymentController.prepare(DeploymentController.java:101)
         at oracle.wh.runtime.platform.service.controller.DeploymentController.prepare(DeploymentController.java:27)
         at oracle.wh.runtime.platform.service.DeploymentManager.run(DeploymentManager.java:41)
         at java.lang.Thread.run(Unknown Source)
    11:07:44 [73A7AB] oracle.wh.runtime.platform.service.controller.RecoveryInProgress: RPE-01008: Recovery of this request is in progress.
         at oracle.wh.runtime.platform.service.controller.AdapterContextImpl.initialize(AdapterContextImpl.java:974)
         at oracle.wh.runtime.platform.service.controller.DeploymentContextImpl.initialize(DeploymentContextImpl.java:434)
         at oracle.wh.runtime.platform.service.controller.DeploymentController.initialize(DeploymentController.java:69)
         at oracle.wh.runtime.platform.service.controller.DeploymentController.prepare(DeploymentController.java:95)
         at oracle.wh.runtime.platform.service.controller.DeploymentController.prepare(DeploymentController.java:114)
         at oracle.wh.runtime.platform.service.controller.DeploymentController.prepare(DeploymentController.java:27)
         at oracle.wh.runtime.platform.service.DeploymentManager.run(DeploymentManager.java:41)
         at java.lang.Thread.run(Unknown Source)
    11:07:44 [73A7AB] Attempting to create adapter 'class.Oracle Database.9.2.CMUpgrade'
    11:07:44 [73A7AB] java.lang.NullPointerException
         at oracle.wh.runtime.platform.adapter.odb.OdbCMUpgradeAdapter.prepare(OdbCMUpgradeAdapter.java:222)
         at oracle.wh.runtime.platform.service.controller.DeploymentController.prepare(DeploymentController.java:101)
         at oracle.wh.runtime.platform.service.controller.DeploymentController.prepare(DeploymentController.java:114)
         at oracle.wh.runtime.platform.service.controller.DeploymentController.prepare(DeploymentController.java:27)
         at oracle.wh.runtime.platform.service.DeploymentManager.run(DeploymentManager.java:41)
         at java.lang.Thread.run(Unknown Source)
    11:07:44 [73A7AB] java.lang.UnsatisfiedLinkError: /opt/oracle/product/rdbms/9.2.0/lib/libocijdbc9.sl: specified file is not a shared library, or a format error was detected.
         at java.lang.ClassLoader$NativeLibrary.load(Native Method)
         at java.lang.ClassLoader.loadLibrary0(Unknown Source)
         at java.lang.ClassLoader.loadLibrary(Unknown Source)
         at java.lang.Runtime.loadLibrary0(Unknown Source)
         at java.lang.System.loadLibrary(Unknown Source)
         at oracle.jdbc.oci8.OCIDBAccess.logon(OCIDBAccess.java:265)
         at oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java:360)
         at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.java:521)
         at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:325)
         at java.sql.DriverManager.getConnection(DriverManager.java:512)
         at java.sql.DriverManager.getConnection(DriverManager.java:141)
         at oracle.sysman.vdb.VdbSession.establishConnection(VdbSession.java:1266)
         at oracle.sysman.vdb.VdbSession.<init>(VdbSession.java:763)
         at oracle.sysman.vdb.VdbAutoCommitSession.<init>(VdbAutoCommitSession.java:266)
         at oracle.sysman.vdb.VdbSessionFactory.getNewAutoCommitSession(VdbSessionFactory.java:1206)
         at oracle.sysman.vdb.VdbSessionFactory.getAutoCommitSession(VdbSessionFactory.java:1118)
         at oracle.sysman.cmSDK.CMClient.<init>(CMClient.java:243)
         at oracle.wh.runtime.platform.adapter.odb.OdbCMUpgradeAdapter.getCMClient(OdbCMUpgradeAdapter.java:775)
         at oracle.wh.runtime.platform.adapter.odb.OdbCMUpgradeAdapter.prepare(OdbCMUpgradeAdapter.java:81)
         at oracle.wh.runtime.platform.service.controller.DeploymentController.prepare(DeploymentController.java:101)
         at oracle.wh.runtime.platform.service.controller.DeploymentController.prepare(DeploymentController.java:114)
         at oracle.wh.runtime.platform.service.controller.DeploymentController.prepare(DeploymentController.java:27)
         at oracle.wh.runtime.platform.service.DeploymentManager.run(DeploymentManager.java:41)
         at java.lang.Thread.run(Unknown Source)
    11:07:44 [73A7AB] prepare_unit_done auditId=8255
    11:07:44 [5E3974] AuditId=8254: Request completed

    Hi Marlene,
    It looks like the cause of your issue is
    11:07:44 [73A7AB] java.lang.UnsatisfiedLinkError: /opt/oracle/product/rdbms/9.2.0/lib/libocijdbc9.sl: specified file is not a shared library, or a format error was detected
    Can you let us know what platform you run on? Is the environment correctly set up?
    Thanks,
    Mark.

  • Generate Create Script creates scripts that won't run: ORA-00922: missing..

    I'm having trouble running a script that I created by using the Generate Create Script tool in Oracle Explorer. I created the following script by running the Generate Create Script on a table called, "ASPNET_APPLICATIONS":
    CREATE TABLE "DEV"."ASPNET_APPLICATIONS" ("APPLICATIONID" NUMBER,"APPLICATIONNAME" VARCHAR2(256 BYTE),"DESCRIPTION" VARCHAR2(256 BYTE)) TABLESPACE "USERS" PCTFREE 10 INITRANS 1 MAXTRANS 255 STORAGE ( INITIAL 65536 MAXEXTENTS 2147483645 MINEXTENTS 1 )
    CREATE UNIQUE INDEX "DEV"."PK_APPS" ON "DEV"."ASPNET_APPLICATIONS" ("APPLICATIONID" ) TABLESPACE "USERS"
    CREATE UNIQUE INDEX "DEV"."IDX_APPS_APPNAME" ON "DEV"."ASPNET_APPLICATIONS" (LOWER(TRIM("APPLICATIONNAME")) ) TABLESPACE "USERS"
    ALTER TABLE "DEV"."ASPNET_APPLICATIONS" ADD ( CONSTRAINT "SYS_C004598" CHECK ("APPLICATIONNAME" IS NOT NULL) ENABLE VALIDATE )
    ALTER TABLE "DEV"."ASPNET_APPLICATIONS" ADD ( CONSTRAINT "SYS_C004597" CHECK ("APPLICATIONID" IS NOT NULL) ENABLE VALIDATE )
    I then deleted the table in my Oracle 10g database and ran the above script to recreate the table. The result is that I get an error the following error, ORA-00922: missing or invalid option. Does anyone know how to resolve this?
    Is anyone aware of any bugs in the Generate Create Script option of Oracle Explorer?

    Okay, I think I found my problem.
    I was trying to run the script created by Oracle Explorer directly from a Database project I added to my Solution in Visual Studio. Visual Studio is probably using some SQL Server specific tool when I select the Run or Run On option on the script.
    When running the same script directly in the Oracle 10g Home Page (Home > SQL > SQL Scripts), I had no problem. Everything executes correctly.
    Is anyone aware of another way to run Oracle scripts directly from Visual Studio? Do I have my project setup incorrectly? This is the first project I've used .NET and Oracle together, so if anyone has any suggestions, I'd really appreciate the help.
    Thanks,
    Mycole

  • CCB ETPM Linux Database Scripts?

    I've been recently working with CCB and ETPM over Linux platforms, and the only linux script I've found is the cdxdba.plx used to create the database. I was wondering if there are Linux version of the Windows database scripts to upgrade/export/etc tasks.

    The answer perhaps is "No".
    You'll need a Windows machine/desktop with Oracle client to connect to the database installed on the *NIX platform. Database tools, to generate security and database upgrade require Windows.                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Generate sql scripts

    can we create sql scripts in ssis ; just like we create new excel files on package execution .

    well I simplified  requirement:
    I  want to run  an SP  and run this query  and return the below update statement as output.
    :select BusinessEntityID, into #temp from [HumanResources].[Employee]
    where jobtitle ='Engineering Manager'
    update ph
    set ph.payfrequency=10*2
    from [HumanResources].[EmployeePayHistory] ph  where BusinessEntityID in (select * from #temp)
    Hi Chelseasadhu,
    Do you want to generate such an T-SQL script as you posted above or you want to execute the above script in a SSIS package? If the former, there is not a stock task/component in SSIS can generate T-SQL script; if the later, you can execute
    the script via Execute SQL Task. One option is to use Script Task or Script Component to generate SQL script via SQL Server Management Objects (SMO):
    http://www.mssqltips.com/sqlservertip/1833/generate-scripts-for-database-objects-with-smo-for-sql-server/
    http://msdn.microsoft.com/en-IN/library/ms162153.aspx
    Regards,
    Mike Yin
    TechNet Community Support

  • Installation Problem on 11g, RHEL 5 - Unable to generate temporary script

    Hello all,
    This is for the first time i am encountering this kind of error on 11g. Half way through installation i get this error.
    All parameters set correct, used the official installation technique (works fine previously), except for this time i am getting a weird error, which does not allow me to continue with the installation.
    Please help.
    Environment
    Oracle 11g
    RHEL 5
    Error on GUI -
    OUI-10053: Unable to generate temporary script: {0}. Unable to continue install
    Error on command prompt -
    OUI-10053:Unable to generate temporary script: /u01/app/oraInventory/orainstRoot.sh. Unable to continue install.
    Help appreciated.
    Thanks

    Hi Monu Koshy
    Can you please control the user rights and also the df ?
    ls -al /u01/app/oraInventory/
    df -h /u01/app/oraInventory/
    Regards,
    Hub

  • ERR  Agent Clone Failed SEVERE:OUI-10053:Unable to generate temporary script: {0}. Unable to continue install

    ==============>deploy log information:
    2015-04-27_14-50-42:INFO:Install Args AGENT_PORT=3872
    2015-04-27_14-50-42:INFO:Action description 在主机 expquery03 上执行命令 /bin/sh -c '/u01/app/agent_12c/ADATMP_2015-04-27_14-18-30-PM/agentDeploy.sh -ignorePrereqs ORACLE_HOSTNAME=expquery03 AGENT_BASE_DIR=/u01/app/agent_12c OMS_HOST=oragc12c.yto.net.cn EM_UPLOAD_PORT=4903 AGENT_INSTANCE_HOME=/u01/app/agent_12c/agent_inst b_doDiscovery=false b_startAgent=false b_forceInstCheck=true AGENT_PORT=3872'
    2015-04-27_14-50-42:INFO:Attempt :1 pty required false  with no inputs
    2015-04-27_15-11-47:INFO:/bin/sh -c '/u01/app/agent_12c/ADATMP_2015-04-27_14-18-30-PM/agentDeploy.sh -ignorePrereqs ORACLE_HOSTNAME=expquery03 AGENT_BASE_DIR=/u01/app/agent_12c OMS_HOST=oragc12c.yto.net.cn EM_UPLOAD_PORT=4903 AGENT_INSTANCE_HOME=/u01/app/agent_12c/agent_inst b_doDiscovery=false b_startAgent=false b_forceInstCheck=true AGENT_PORT=3872' execution failed on host expquery03
    2015-04-27_15-11-47:INFO:Pattern ERROR: found in file /opt/app/oem12c/gc_inst/em/EMGC_OMS1/sysman/agentpush/2015-04-27_14-18-30-PM/logs/expquery03/install.log Line ERROR: Agent Clone Failed SEVERE:OUI-10053:Unable to generate temporary script: {0}. Unable to continue install.
    2015-04-27_15-11-47:INFO:Error Message found  Agent Clone Failed SEVERE:OUI-10053:Unable to generate temporary script: {0}. Unable to continue install.
    2015-04-27_15-11-47:INFO: ACTION 在主机 expquery03 上执行命令 /u01/app/agent_12c/ADATMP_2015-04-27_14-18-30-PM/agentDeploy.sh -ignorePrereqs ORACLE_HOSTNAME=expquery03 AGENT_BASE_DIR=/u01/app/agent_12c OMS_HOST=oragc12c.yto.net.cn EM_UPLOAD_PORT=4903 AGENT_INSTANCE_HOME=/u01/app/agent_12c/agent_inst b_doDiscovery=false b_startAgent=false b_forceInstCheck=true AGENT_PORT=3872
    2015-04-27_15-11-47:INFO: OUT null
    2015-04-27_15-11-47:INFO: ERR  Agent Clone Failed SEVERE:OUI-10053:Unable to generate temporary script: {0}. Unable to continue install.
    2015-04-27_15-11-47:INFO: EXIT CODE1
    2015-04-27_15-11-47:INFO:InvocationTargetException Exception
    2015-04-27_15-11-47:INFO:Printing Exception :java.lang.reflect.InvocationTargetException
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:597)
            at oracle.sysman.core.agentpush.ui.deployer.BaseDeployerOps.executeActions(BaseDeployerOps.java:1924)
            at oracle.sysman.core.agentpush.ui.deployer.NewAgentDeployer.deploy(NewAgentDeployer.java:59)
            at oracle.sysman.core.agentpush.ui.deployfwk.DeploymentWorker.run(DeploymentWorker.java:26)
            at oracle.sysman.util.threadPoolManager.WorkerThread.run(Worker.java:311)
    Caused by: CommandException: err:  Agent Clone Failed SEVERE:OUI-10053:Unable to generate temporary script: {0}. Unable to continue install. out: null exitcode: 1
    stacktrace:
    null
            at oracle.sysman.core.agentpush.ui.deployer.DeployerOps.executeCommandOnNodeInteractive(DeployerOps.java:1204)
            at oracle.sysman.core.agentpush.ui.deployer.DeployerOps.executeCommandOnNodeInteractive(DeployerOps.java:1050)
            at oracle.sysman.core.agentpush.ui.deployer.DeployerOps.executeCmdOnNode(DeployerOps.java:644)
            at oracle.sysman.core.agentpush.ui.deployer.DeployerOps.executeCmdOnNode(DeployerOps.java:593)
            at oracle.sysman.core.agentpush.ui.deployer.BaseDeployerOps.doInstall(BaseDeployerOps.java:484)
    oem@oragc12c bin]$ more /u01/app/agent_12c/core/12.1.0.4.0/cfgtoollogs/agentDeploy/agentDeploy_2015-04-27_15-10-25-PM.log
    /u01/app/agent_12c/core/12.1.0.4.0/cfgtoollogs/agentDeploy/agentDeploy_2015-04-27_15-10-25-PM.log: No such file or directory
    [oem@oragc12c bin]$ more /opt/app/oem12c/gc_inst/em/EMGC_OMS1/sysman/agentpush/2015-04-27_14-18-30-PM/logs/expquery03/install.log
    -e Validating the OMS_HOST & EM_UPLOAD_PORT
    Executing command : /u01/app/agent_12c/core/12.1.0.4.0/jdk/bin/java -classpath /u01/app/agent_12c/core/12.1.0.4.0/jlib/agentInstaller.jar:/u01/app/agent_12c/core/12.1.0.4.0/oui/jlib/OraInstaller.jar oracle.s
    ysman.agent.installer.AgentInstaller /u01/app/agent_12c/core/12.1.0.4.0 /u01/app/agent_12c/ADATMP_2015-04-27_14-18-30-PM /u01/app/agent_12c -prereq
    Validating oms host & port with url: http://oragc12c.yto.net.cn:4903/empbs/genwallet
    Validating oms host & port with url: https://oragc12c.yto.net.cn:4903/empbs/genwalletReturn status:3-oms https port is passedUnzipping the agentcoreimage.zip to /u01/app/agent_12c ....12.1.0.4.0_PluginsOneof
    fs_197.zip
    Executing command : /u01/app/agent_12c/ADATMP_2015-04-27_14-18-30-PM/unzip -o /u01/app/agent_12c/ADATMP_2015-04-27_14-18-30-PM/12.1.0.4.0_PluginsOneoffs_197.zip -d /u01/app/agent_12cExecuting command : /u01/
    app/agent_12c/core/12.1.0.4.0/jdk/bin/java  -d64 -classpath /u01/app/agent_12c/core/12.1.0.4.0/oui/jlib/OraInstaller.jar:/u01/app/agent_12c/core/12.1.0.4.0/oui/jlib/xmlparserv2.jar:/u01/app/agent_12c/core/12
    .1.0.4.0/oui/jlib/srvm.jar:/u01/app/agent_12c/core/12.1.0.4.0/oui/jlib/emCfg.jar:/u01/app/agent_12c/core/12.1.0.4.0/jlib/agentInstaller.jar:/u01/app/agent_12c/core/12.1.0.4.0/oui/jlib/share.jar oracle.sysman
    .agent.installer.AgentInstaller /u01/app/agent_12c/core/12.1.0.4.0 /u01/app/agent_12c/ADATMP_2015-04-27_14-18-30-PM /u01/app/agent_12c /u01/app/agent_12c/agent_inst AGENT_BASE_DIR=/u01/app/agent_12c
    Failed to read the inventory
    Failed to read the inventory=====================>but the inventory no problem
    Cloning the agent home...
    Executing command: /u01/app/agent_12c/core/12.1.0.4.0/oui/bin/runInstaller -debug -ignoreSysPrereqs   -clone -forceClone -silent -waitForCompletion -nowait ORACLE_HOME=/u01/app/agent_12c/core/12.1.0.4.0   AG
    ENT_BASE_DIR=/u01/app/agent_12c ORACLE_HOSTNAME=expquery03 AGENT_BASE_DIR=/u01/app/agent_12c OMS_HOST=oragc12c.yto.net.cn EM_UPLOAD_PORT=4903 AGENT_INSTANCE_HOME=/u01/app/agent_12c/agent_inst b_doDiscovery=f
    alse b_startAgent=false b_forceInstCheck=true AGENT_PORT=3872 -noconfig  ORACLE_HOME_NAME=agent12c1 -force b_noUpgrade=true
    ERROR: Agent Clone Failed SEVERE:OUI-10053:Unable to generate temporary script: {0}. Unable to continue install.
    Agent Deploy Log Location:/u01/app/agent_12c/core/12.1.0.4.0/cfgtoollogs/agentDeploy/agentDeploy_2015-04-27_15-10-25-PM.log
    ============>agent client privage and "/tmp" information  at hp-unix
    $ bdf
    Filesystem          kbytes    used   avail %used Mounted on
    /dev/vg00/lvol3    5242880  384784 4820160    7% /
    /dev/vg00/lvol1    1835008  376272 1447400   21% /stand
    /dev/vg00/lvol7    20971520 8977200 11902024   43% /var
    /dev/vg00/lvol9    7864320 3213136 4614904   41% /usr
    /dev/vg00/lvol6    85983232 63055260 21527575   75% /u01
    /dev/vg00/lvol5    10485760 2268216 8153768   22% /tmp===============>
    /dev/vg00/lvol8    10354688 6536024 3788952   63% /opt
    /dev/vg00/lvol4    52428800 13319488 38803816   26% /home
    $ ls -lt
    total 6
    drwxr-xr-x   2 oem        oinstall      1024 Apr 27 15:14 agent_12c
    drwxrwx---   5 grid       oinstall      1024 Apr 27 15:11 oraInventory
    drwxr-xr-x   3 oem        oinstall        96 Apr 22 16:16 agent
    drwxrwxr-x   8 grid       oinstall      1024 Apr 21 14:58 grid
    drwxrwxr-x   6 grid       oinstall        96 Aug  7  2013 oracle
    drwxr-xr-x   3 root       oinstall        96 Aug  2  2013 11.2.0
    $ cd oraInventory
    $ ls -lt
    total 44
    drwxrwx---   2 grid       oinstall     16384 Apr 27 15:10 logs
    drwxrwx---   3 grid       oinstall      2048 Apr 22 10:36 backup
    drwxrwx---   2 grid       oinstall      1024 Apr  3  2014 ContentsXML
    -rwxrwx---   1 grid       oinstall      1686 Aug  6  2013 orainstRoot.sh
    -rw-rw----   1 grid       oinstall        56 Aug  6  2013 oraInst.loc
    $ cd ContentsXML
    $ ls
    comps.xml      inventory.xml  libs.xml
    $ ls -lt
    total 6
    -rw-rw----   1 grid       oinstall       842 Apr 21 10:31 inventory.xml
    -rw-rw----   1 grid       oinstall       329 Apr 20 17:32 comps.xml
    -rw-rw----   1 grid       oinstall       292 Apr 20 17:32 libs.xml
    I view some oms document ,don't know the case

    agent client's apeloy log:
    $ more /u01/app/agent_12c/core/12.1.0.4.0/cfgtoollogs/agentDeploy/agentDeploy_2015-04-27_16-22-23-PM.log
    INFO: /u01/app/agent_12c/core/12.1.0.4.0
    INFO: /u01/app/agent_12c/ADATMP_2015-04-27_15-33-29-PM
    INFO: /u01/app/agent_12c
    INFO: /u01/app/agent_12c/agent_inst
    INFO: AGENT_BASE_DIR=/u01/app/agent_12c
    INFO: -ignorePrereqs
    INFO: ORACLE_HOSTNAME=expquery03
    INFO: AGENT_BASE_DIR=/u01/app/agent_12c
    INFO: OMS_HOST=oragc12c.yto.net.cn
    INFO: EM_UPLOAD_PORT=4903
    INFO: AGENT_INSTANCE_HOME=/u01/app/agent_12c/agent_inst
    INFO: b_doDiscovery=false
    INFO: b_startAgent=false
    INFO: b_forceInstCheck=true
    INFO: AGENT_PORT=3872
    INFO: AGENT_BASE_DIR=/u01/app/agent_12c
    INFO: ORACLE_HOSTNAME=expquery03
    INFO: AGENT_BASE_DIR=/u01/app/agent_12c
    INFO: OMS_HOST=oragc12c.yto.net.cn
    INFO: EM_UPLOAD_PORT=4903
    INFO: AGENT_INSTANCE_HOME=/u01/app/agent_12c/agent_inst
    INFO: b_doDiscovery=false
    INFO: b_startAgent=false
    INFO: b_forceInstCheck=true
    INFO: AGENT_PORT=3872
    INFO:  Setting the system property ORACLE_HOSTNAME to:expquery03
    INFO:  Setting the system property oracle.installer.oui_loc to:/u01/app/agent_12c/core/12.1.0.4.0/oui
    INFO: Agent Base Directory is : /u01/app/agent_12c
    INFO: Agent Home is : /u01/app/agent_12c/core/12.1.0.4.0
    INFO: Sbin Home is : /u01/app/agent_12c/sbin
    INFO: Logs Location is : /u01/app/agent_12c/core/12.1.0.4.0/cfgtoollogs/agentDeploy
    SEVERE: User has specified -ignorePrereqs when invoking the installer.  All pre-requisite checks will be ignored for this installation session.  Configuration failures may result if proper pre-requisites are
    not satisfied.
    INFO:
    Setting system property CUSTOM_INVENTORY to /u01/app/oraInventory
    INFO: Clone start time:2015-04-27_16-22-24-PM
    INFO: Executing command: /u01/app/agent_12c/core/12.1.0.4.0/oui/bin/runInstaller -debug -ignoreSysPrereqs   -clone -forceClone -silent -waitForCompletion -nowait ORACLE_HOME=/u01/app/agent_12c/core/12.1.0.4.
    0   -noconfig  ORACLE_HOME_NAME=agent12c1 -force
    INFO: Starting Oracle Universal Installer...
    INFO:
    INFO: Checking swap space: must be greater than 500 MB.   Actual 61440 MB    Passed
    INFO: Preparing to launch Oracle Universal Installer from /tmp/OraInstall2015-04-27_04-22-24PM. Please wait ...Oracle Universal Installer, Version 11.1.0.12.0 Production
    INFO: Copyright (C) 1999, 2014, Oracle. All rights reserved.
    INFO:
    INFO: org.xml.sax.SAXParseException: <Line 1, Column 38>: XML-20100: (Fatal Error) Expected '?>'.
    INFO:   at oracle.xml.parser.v2.XMLError.flushErrorHandler(XMLError.java:422)
    INFO:   at oracle.xml.parser.v2.XMLError.flushErrors1(XMLError.java:287)
    INFO:   at oracle.xml.parser.v2.NonValidatingParser.parseRootElement(NonValidatingParser.java:345)
    INFO:   at oracle.xml.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:307)
    INFO:   at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:212)
    INFO:   at oracle.sysman.oii.oiii.OiiiInstallXMLReader.readHomes(OiiiInstallXMLReader.java:150)
    INFO:   at oracle.sysman.oii.oiii.OiiiInstallXMLReader.readHomes(OiiiInstallXMLReader.java:88)
    INFO:   at oracle.sysman.oii.oiii.OiiiInstallInventory.readHomes(OiiiInstallInventory.java:708)
    INFO:   at oracle.sysman.oii.oiii.OiiiInstallAreaControl.loadPartialInstallInv(OiiiInstallAreaControl.java:766)
    INFO:   at oracle.sysman.oii.oiii.OiiiInstallAreaControl.initInstallInv(OiiiInstallAreaControl.java:811)
    INFO:   at oracle.sysman.oii.oiii.OiiiInstallAreaControl.loadInstallInventory(OiiiInstallAreaControl.java:582)
    INFO:   at oracle.sysman.oii.oiii.OiiiInstallAreaControl.initAreaControl(OiiiInstallAreaControl.java:1965)
    INFO:   at oracle.sysman.oii.oiii.OiiiInstallAreaControl.initAreaControl(OiiiInstallAreaControl.java:1929)
    INFO:   at oracle.sysman.oii.oiic.OiicCloneSession.setAreaControls(OiicCloneSession.java:1309)
    INFO:   at oracle.sysman.oii.oiic.OiicCloneSession.<init>(OiicCloneSession.java:932)
    INFO:   at oracle.sysman.oii.oiic.OiicSessionWrapper.createNewSession(OiicSessionWrapper.java:878)
    INFO:   at oracle.sysman.oii.oiic.OiicSessionWrapper.<init>(OiicSessionWrapper.java:189)
    INFO:   at oracle.sysman.oii.oiic.OiicInstaller.init(OiicInstaller.java:511)
    INFO:   at oracle.sysman.oii.oiic.OiicInstaller.runInstaller(OiicInstaller.java:967)
    INFO:   at oracle.sysman.oii.oiic.OiicInstaller.main(OiicInstaller.java:905)
    INFO: org.xml.sax.SAXParseException: <Line 1, Column 38>: XML-20100: (Fatal Error) Expected '?>'.
    INFO:   at oracle.xml.parser.v2.XMLError.flushErrorHandler(XMLError.java:422)
    INFO:   at oracle.xml.parser.v2.XMLError.flushErrors1(XMLError.java:287)
    INFO:   at oracle.xml.parser.v2.NonValidatingParser.parseRootElement(NonValidatingParser.java:345)
    INFO:   at oracle.xml.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:307)
    INFO:   at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:212)
    INFO:   at oracle.sysman.oii.oiii.OiiiInstallXMLReader.readHomes(OiiiInstallXMLReader.java:150)
    INFO:   at oracle.sysman.oii.oiii.OiiiInstallXMLReader.readHomes(OiiiInstallXMLReader.java:88)
    INFO:   at oracle.sysman.oii.oiii.OiiiInstallInventory.readHomes(OiiiInstallInventory.java:708)
    INFO:   at oracle.sysman.oii.oiii.OiiiInstallAreaControl.loadPartialInstallInv(OiiiInstallAreaControl.java:766)
    INFO:   at oracle.sysman.oii.oiii.OiiiInstallAreaControl.initInstallInv(OiiiInstallAreaControl.java:811)
    INFO:   at oracle.sysman.oii.oiii.OiiiInstallAreaControl.loadInstallInventory(OiiiInstallAreaControl.java:582)
    INFO:   at oracle.sysman.oii.oiii.OiiiInstallAreaControl.initAreaControl(OiiiInstallAreaControl.java:1965)
    INFO:   at oracle.sysman.oii.oiii.OiiiInstallAreaControl.initAreaControl(OiiiInstallAreaControl.java:1929)
    INFO:   at oracle.sysman.oii.oiic.OiicCloneSession.setAreaControls(OiicCloneSession.java:1309)
    INFO:   at oracle.sysman.oii.oiic.OiicCloneSession.<init>(OiicCloneSession.java:932)
    INFO:   at oracle.sysman.oii.oiic.OiicSessionWrapper.createNewSession(OiicSessionWrapper.java:878)
    INFO:   at oracle.sysman.oii.oiic.OiicSessionWrapper.<init>(OiicSessionWrapper.java:189)
    INFO:   at oracle.sysman.oii.oiic.OiicInstaller.init(OiicInstaller.java:511)
    INFO:   at oracle.sysman.oii.oiic.OiicInstaller.runInstaller(OiicInstaller.java:967)
    INFO:   at oracle.sysman.oii.oiic.OiicInstaller.main(OiicInstaller.java:905)
    INFO: OUI-10053:Unable to generate temporary script: /tmp/orainstRoot.sh. Unable to continue install.
    INFO: SEVERE:OUI-10053:Unable to generate temporary script: {0}. Unable to continue install.
    INFO: Plugin homes:
    INFO:
    INFO: LD_LIBRARY_PATH environment variable :
    INFO: -------------------------------------------------------
    INFO: Total args: 42
    INFO: Command line argument array elements ...
    INFO: Arg:0:/tmp/OraInstall2015-04-27_04-22-24PM/jre/bin/java:
    INFO: Arg:1:-Doracle.installer.library_loc=/tmp/OraInstall2015-04-27_04-22-24PM/oui/lib/hpia64:
    INFO: Arg:2:-Doracle.installer.oui_loc=/tmp/OraInstall2015-04-27_04-22-24PM/oui:
    INFO: Arg:3:-Doracle.installer.bootstrap=TRUE:
    INFO: Arg:4:-Doracle.installer.startup_location=/u01/app/agent_12c/core/12.1.0.4.0/oui/bin:
    INFO: Arg:5:-Doracle.installer.jre_loc=../../jre:
    INFO: Arg:6:-Doracle.installer.nlsEnabled="TRUE":
    INFO: Arg:7:-Doracle.installer.prereqConfigLoc= :
    INFO: Arg:8:-Doracle.installer.unixVersion=B.11.31:
    INFO: Arg:9:-d64:
    INFO: Arg:10:-mx96m:

  • JDev 10g: Problem when generating database objects from UML diagram

    Hi,
    I have noticed following problem.
    I made some business components through UML diagrammer in 9.0.3. From the diagram I generated database objects. It worked fine.
    When I doing the same thing in 10g, the generation fails on several tables with the message that the "identifier is too long".
    Looking at the SQL produced in one of the failing tables. In 9.0.3 following is produced:
    create table sfs_document_def (
    id number constraint document_definition_id_check not null,
    caption varchar2(100) constraint document_definition_caption_ch not null,
    index1 number,
    owner_type number constraint document_definition_owner_type not null
    alter table sfs_document_def add (constraint documentdefinition_primary_key primary key (id));
    And in 10g following is produced:
    create table sfs_document_def (
    id number,
    caption varchar2(100) constraint sfs_document_def_caption_check not null,
    index1 number,
    owner_type number constraint sfs_document_def_owner_type_ch not null
    alter table sfs_document_def add ( constraint documentdefinition_primary_key primary key (id));
    alter table sfs_document_def add ( constraint document_definition_id_check check ("id" is not null));
    alter table sfs_document_def add ( constraint sfs_document_def_caption_check_10 check ("caption" is not null));
    alter table sfs_document_def add ( constraint sfs_document_def_owner_type_ch_10 check ("owner_type" is not null));
    It seems that column that are set not to be null in 10 g first get a constraint creating the table and then when altering the table. Furthermore, notice that the name of the second constraint is longer than 30 chars, which is reason to the error when creating the tables.

    Thanks for reporting the issue. I have managed to reproduce your problem and logged a bug to get the problem fixed.
    Thanks,
    Lisa Sherriff
    JDev QA

  • When we generated a script in which language it will be stored

    Hi,
    when we generated a script in which language it will be stored.
    Thanks
    Rama

    Hi Rama,
    Whenever we generate a script, it is maintained in all languages, by default, if we tick the <b>maintain in all languages</b> checkbox.
    The original script is always maintained in the original langauge,i.e. <b>DE</b>.
    Hope this resolves your query.
    Reward all the helpful answers.
    Regards

  • Scheduled Database Scripting

    I have an oracle 10g database and I want to setup a scheduled task on the Windows server that scripts the entire database (including schema, packages, data etc) to a text file. I do not want a database export and backup but a database script.
    Can you please advise how to proceed with this?

    DBMS_METADATA.GET_DDL
    Something like
    DECLARE
    CURSOR csr IS
    SELECT object_type
    , object_name ,owner
    FROM All_Objects
    WHERE object_type IN ('SEQUENCE',
    'PROCEDURE',
    'DATABASE LINK',
    'PACKAGE',
    'PACKAGE BODY',
    'MATERIALIZED VIEW',
    'TABLE',
    'INDEX',
    'VIEW',
    'FUNCTION')
    AND owner = 'FASTADM';
    out UTL_FILE.file_type;
    BEGIN
    FOR c IN csr LOOP
    out := UTL_FILE.fopen('DATAPUMP_DIR',c.object_name||'_'||c.object_type||'.sql','W');
    UTL_FILE.put_line(out, DBMS_METADATA.get_ddl(c.object_type, c.object_name,c.owner));
    UTL_FILE.fclose(out);
    END LOOP;
    END;
    Edited by: vlethakula on Mar 14, 2013 5:09 AM

  • Opening URL generated in script.

    I'm a novice and could use a bit of help.I'm trying to generate a script that will capture the default gateway of the network I'm connected to and then open it in a browser. I've managed to get the IP of the default gateway but every time I try to open it it errors out. Here is the script:
    +Set DefGate to do shell script "netstat -nr | grep '^default' | awk '{print $2}'"+
    +Tell application "Firefox"+
    activate
    +get url DefGate+
    +end tell+
    can anyone shed some light on why this isn't working?

    Try using:
    open location "http://" & (do shell script "netstat -nr | grep '^default' | awk '{print $2}'")
    (51592)

Maybe you are looking for

  • Adhoc Query in PA

    Hi, When I am entering tcode S_PH0_48000513 - Ad Hoc Query, it is giving me message "No user group created". I tried doing changes to SQ03, but not working. What is the issue here? Regards KP

  • Error in installing sun java directory server

    dear , i am trying to install sun java directiry server from sun java enterprise server using command line ( ./installer ), but this error reported to me when i issue the installer command . # ./installer Error occurred during initialization of VM ja

  • Problems with Adobe Reader X since the 10.1 Update

    Hello togehter. Since the newest Update for the Adobe Reader X (Version 10.1, released 14.6.2011) a lot of our employers in our company have the problem that only the 1. PDF opens fast, the 2. PDF take 5 to 10 seconds to open, sometimes the hole prog

  • High pitch ringing sound when i plug my headphones in.

    Hi I am currently using a Macbook Pro 15" retina display There has been no problems previously. Out of no where, today my headphones has this high pitched ringing sound whenever i plug it in. The audio is fine when I do not use any headphones. but wh

  • CS2 Authorization Code to Complete installation

    I need help with re-installing my CS2 apps.  I have the Serial # and Activation # , but I need the Authorization Code.  Can you help me?  my OS 10.6.8 was upgraded to 10.9.5 . but all apps would not work.  The Apple store re-installed my OS 10.6.8,