Generate a script

I can generate a script using the following code,
select 'Alter table '||owner||'.'||table_name||chr(10)||'move tablespace &new_ts'
from dba_tables
where owner='HR'
But I don't understand what chr(10) means. Where can I find more information about it?
greeting,
Max

1* select '1'||chr(10)||'2'||chr(10)||'getp2007'||chr(10) from dual
SQL> /
'1'||CHR(10)|
1
2
getp2007
New Line Character like
dbms_output.New_line
or u can say something like a Record Separator

Similar Messages

  • 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:

  • 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)

  • 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

  • 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)

  • FOR XML to generate dynamic script to drop multiple tables

    Log_Table has a column named Col1 where we have table names
    Col1
    TableA1
    TableA2
    TableA3
    TableB1
    TableC1
    TableC2
    Generate dynamic script to drop tables that are in Log_Table and starts with TableA.
    Instead of using the loop, use For XML

    Thanks Visakh16 [+1],
    you are right there was typo mistake :-) I forgot the variable in the end, and Thanks Naomi [+1],
    this is true and better to use quotename or just add brackets. Actually I will not choose this approach since we chould use schema as well. the DDL in the OP is not something that I will create probably.
    In any case, here is the fixed query (current approach):
    declare @SQLString NVARCHAR(MAX)
    SELECT
    @SQLString = (select
    N'IF OBJECT_ID (N''' + CAST([Col1] AS VARCHAR(MAX)) + N''') IS NOT NULL drop table [' + CAST([Col1] AS VARCHAR(MAX)) + N']; '
    FROM Log_Table
    WHERE (Col1 like 'TableA%')
    FOR XML PATH (''))
    --print @SQLString
    EXECUTE sp_executesql @SQLString
    GO
      Ronen Ariely
     [Personal Site]    [Blog]    [Facebook]

  • Unable to generate temporary script: /usr/oracle//orainstRoot.sh

    Anyone seen this error when installing 8.1.6 on Linux?
    Unable to generate temporary script: /usr/oracle//orainstRoot.sh Unable to continue install.

    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

  • 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 SQL scripts from Designer 6

    Hi all,
    Does anyone know how to generate an SQL-script from Designer? I want to maintain the code in the repository, and also document usages against the script. I've found ways to document the script, but then I can't generate it....
    Thanks in advance,
    Ronald

    Ronald,
    How did you record the SQL script in designer? As undefined pl/sql module (type= "null")?
    If so, you cannot generate the script with the ddl generator. To do so you could change the type to procedure and make post-generation changes to the script (cut of f the procedure header and trailer lines). An other way to generate it is to write your own SQL script generator as a headstart utility. You might take a look at the html help file generator utility which does a similar job (create a o/s file based on the repository contents).
    Let us know if you succeed.
    Regards, Marc
    null

  • Generating Insert Scripts for multiple tables

    Hi,
    I have 6 tables TABLA,TABLB,TABLC,TABLED,TABLEE,TABLEF
    I want to generate Insert Scripts for the above 6 tables.
    Is there any mechanism to do so so that i can generate the .sql files for the above 6 tables to another schema?
    Any help will be needful for me.

    Hi,
    May the below given function script help you...
    CREATE OR REPLACE FUNCTION get_insert_script (v_table_name VARCHAR2)
       RETURN VARCHAR2
    AS
       b_found   BOOLEAN         := FALSE;
       v_tempa   VARCHAR2 (8000);
       v_tempb   VARCHAR2 (8000);
       v_tempc   VARCHAR2 (255);
    BEGIN
       FOR tab_rec IN (SELECT table_name
                         FROM all_tables
                        WHERE table_name = UPPER (v_table_name))
       LOOP
          b_found := TRUE;
          v_tempa := 'select ''insert into ' || tab_rec.table_name || ' (';
          FOR col_rec IN (SELECT   *
                              FROM cols
                             WHERE table_name = tab_rec.table_name
                          ORDER BY column_id)
          LOOP
             IF col_rec.column_id = 1
             THEN
                v_tempa := v_tempa || '''||chr(10)||''';
             ELSE
                v_tempa := v_tempa || ',''||chr(10)||''';
                v_tempb := v_tempb || ',''||chr(10)||''';
             END IF;
             v_tempa := v_tempa || col_rec.column_name;
             IF INSTR (col_rec.data_type, 'CHAR') > 0
             THEN
                v_tempc := '''''''''||' || col_rec.column_name || '||''''''''';
             ELSIF INSTR (col_rec.data_type, 'DATE') > 0
             THEN
                v_tempc :=
                      '''to_date(''''''||to_char('
                   || col_rec.column_name
                   || ',''mm/dd/yyyy hh24:mi'')||'''''',''''mm/dd/yyyy hh24:mi'''')''';
             ELSE
                v_tempc := col_rec.column_name;
             END IF;
             v_tempb :=
                   v_tempb
                || '''||decode('
                || col_rec.column_name
                || ',Null,''Null'','
                || v_tempc
                || ')||''';
          END LOOP;
          v_tempa :=
                v_tempa
             || ') values ('
             || v_tempb
             || ');'' from '
             || tab_rec.table_name
             || ';';
       END LOOP;
       IF NOT b_found
       THEN
          v_tempa := '- Table ' || v_table_name || ' not found';
       ELSE
          v_tempa := v_tempa || CHR (10) || 'select ''- commit;'' from dual;';
       END IF;
       RETURN v_tempa;
    END;(copied and pasted from a commercial site)
    *009*
    Edited by: 009 on Jan 14, 2010 10:43 PM
    (Function after debug)

  • [Urgent] - Change "tmp_" prefix used while generating alter script

    Hi All,
    While generating Alter script, if "Backup Tables" option is selected, then PD renames existing table with "tmp_".
    How can we change it to sth. else and also make it uppercase?
    Using DBMS is DB2 for z/OS v10.
    Using PD v16.5 SP04 PL04.
    Thanks in advance.
    Regards
    Mehmet

    Hi Memhet,
    The script syntax is in the DBMS file which can be found by going to Tools---Resources---DMBS and selecting IBM DB2 Version 10 for z/OS.   From there you would open up to:
    DB2MVS10::Script\Objects\Table
    You can modify the values, however, make sure to save it as a new DBMS file in case you need to return to the default.
    Unfortunately I am not sure what needs to be changed or if it's possible, but this is where you would start.
    Adam

  • 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

  • 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

Maybe you are looking for

  • System error in message monitoring

    Hello, Scenario is proxy to database. Status seems to sytem error in message monitoring. Error detail is  In audit log of message details as belows: JDBC Message processing failed, due to Error processing request in sax parser: Error when executing s

  • I have Mac OSX 10.6.8 -  How to remove blocked plugin?

    I am getting blocked plugin on my Mac OSX 10.6.8.  This is due to adobe update.  How can I remove it please?

  • IMac to iMac via Airport Cards

    2 iMacs, both have Airport Extreme cards. The Office unit is the newer Intel model, running OS 10.5.7, connected to the internet via modem/router (Siemens). The Bedroom unit is old (PowerPC G5). Running OS 10.4.11. I would like to have the Bedroom un

  • IPhone 4 / iOS 6 drops  bluetooth connection when I answer a call using handsfree link in car.

    Honda Crosstour 2010. Handsfreelink and phone pair ok but when I go to answer a call via the talk button on the steering wheel, the connection drops and I have to use my phone to talk, rendering auto bluetooth useless. I have to manually reconnect th

  • What happens if I interrupt a 7 Pass Secure Erase?

    I am 24 hours into a 7 Pass Erase on a 1TB external drive. The status says 5 of 7 with 13 hours remaining. What happens if I stop the process and select skip? Will I get the benefit of the 5 passes or will the disk revert back to its original state?