Automating DB schema creation by Sqlplus

Hi,
I am researching a method to automate the deployment of our windows server 2008 11G oracle database. Currently the steps include;
1. Log in to sqlplus / as sysdba
2. Run an sql script, i.e @myDatabaseSchemaCreate.sql
3. Exit
4. Login to sqlplus as the dbuser
5. I start sqlplus and wait for the user name/password prompt and obediently enter it.
6. Now I run another script ie. @mydbuserscript.sql.
This is the process handed down to me by the all-knowing and almighty DBAs and it will not change, It would only be ran once in any environment upon the creation of this environment. In some projects, we may have 5 or 6 environments and quite often something goes wrong which requires a full re-install. What I would like to determine is what methods I have to automate these steps, does anyone have advice/experience of what is best. I was exploring what is involved in writing a .net or java app to automate it, alternatively does oracle provide other methods to automate this?

user5780461 wrote:
Hi,
I am researching a method to automate the deployment of our windows server 2008 11G oracle database. Currently the steps include;
1. Log in to sqlplus / as sysdba
2. Run an sql script, i.e @myDatabaseSchemaCreate.sql
3. Exit
4. Login to sqlplus as the dbuser
5. I start sqlplus and wait for the user name/password prompt and obediently enter it.
6. Now I run another script ie. @mydbuserscript.sql.
make bat file containing lines like below
sqlplus "/ as sysdba" @myDatabaseSchemaCreate.sql
sqlplus username/password @mydbuserscript.sql

Similar Messages

  • Error in RCU 11.1.1.5 OIM Schema Creation

    Hi,
    I am trying to install OIM11g on Win2008 server, 64 bit VM. I have successfully installed and created Oracle Database 11.2.
    Before running RCU 11.1.1.5, I have altered the needed database system parameters. viz.
    open_cursors=800
    processes=500
    session_cached_cursors=100
    shared_pool_size=144M
    sga_max_size=1648M
    db_block_size=8192
    When i am running RCU 11.1.1.5, all schemas except OIM are getting created successfully. For OIM schema creation, I am getting error
    RCU-1630: Action failed -
    RCU-6136: Error while trying to execute SQLPlus action.
    The rcu.log says there are IOExceptions.
    I have searched a lot about the resolution but haven't really got any solution.
    Please help.
    Thanks,
    Kulesh...

    Hi Kulesh,
    Try copy msvcr71.dll from *<your installer directory>\rcuHome\jdk\bin* to C:\Windows\SysWOW64 and C:\Windows\System32
    And then run RCU again to create your OIM schema.
    Thank you,
    Ivan P.

  • OIM 11g R2 installation Issue. OIM Schema creation failed using RCU 11.1.2

    I have been trying to install OIM 11g R2 on a Windows server 2008 R2 64 Bit and have been encountering the following error during the OIM schema creation. The other schemas, such as Metadata, SOA, user messaging services and other associated schema creation was successful. But, the OIM schema creation was taking more than 2 minutes and finally it fails with the below error.
    RCU-6130: Action failed
    RCU-6135: Error while trying to execute java action.
    Components used:
    OS: Windows Server 2008 R2 64 Bit
    DBS: 11gR2 (11.2.0.1)
    RCU: 11.1.2
    The first error occured was ora-12637 packet receive failed followed by Table or View does not exist. I could not fetch much information from the oim and rcu.log.
    I have set the processes, open_cursors and session_cached_cursors as suggested in the preinstallation step of OIM 11g R2 installation.
    Any pointers on this will be highly appreciated.
    Thanks,
    Srini

    Copy the msvcr71.dll file from rcuHome\jdk\jre\bin inside rcu installer and paste it in C:\Windows\SysWOW64.
    Try running the rcu again with the new user i.e. instead of DEV_OIM, run it with DEV_OIM1.
    Or drop the DEV_OIM user first and then use the same user.

  • Oracle Fusion Store Front Demo Application - Schema Creation Failed

    I have downloaded the Fusion Store Front Demo Application "FusionOrderDemo_R1PS2.zip" from http://www.oracle.com/technetwork/developer-tools/jdev/index-095536.html .
    Followed the instructions on the same page. But Schema creation is failing.
    I am not sure why it is not picking the whole path till JDeveloper i.e. looking for wlserver_10.3\server]\lib in I:\Oracle\FusionMiddleware\wlserver_10.3\server\lib ( JDeveloper not getting added to path.)
    Build.Properties file content :
    jdeveloper.home=I:/Oracle/FusionMiddleware/JDeveloper
    src.home=..//..
    # JDBC info used to create Schema
    jdbc.driver=oracle.jdbc.OracleDriver
    jdbc.urlBase=jdbc:oracle:thin:@localhost
    jdbc.port=1521
    jdbc.sid=XE
    # Information about the default setup for the demo user.
    db.adminUser=system
    db.demoUser=FOD
    db.demoUser.password=fusion
    db.demoUser.tablespace=USERS
    db.demoUser.tempTablespace=TEMP
    Error :
    BUILD FAILED
    F:\mywork\FUSIONORDERDEMO\FusionOrderDemo_R1PS2\Infrastructure\Ant\build.xml:51: The following error occurred while executing this line:
    F:\mywork\FUSIONORDERDEMO\FusionOrderDemo_R1PS2\Infrastructure\DBSchema\build.xml:91: The following error occurred while executing this line:
    F:\mywork\FUSIONORDERDEMO\FusionOrderDemo_R1PS2\Infrastructure\DBSchema\build.xml:56: The following error occurred while executing this line:
    F:\mywork\FUSIONORDERDEMO\FusionOrderDemo_R1PS2\Infrastructure\DBSchema\build.xml:28: I:\Oracle\FusionMiddleware\wlserver_10.3\server\lib not found.
    Total time: 2 seconds
    Thanks,
    Rajdeep

    Thanks John.
    So jdeveloper.home is not the JDeveloper installation directory. Actually jdeveloper.home value should include jdeveloper folder along with JDeveloper Installation directory.
    Can you please look whether this run is successful. It seems like some issues with populate images or should i open a separate post for this.
    Buildfile: F:\mywork\FUSIONORDERDEMO\FusionOrderDemo_R1PS2\Infrastructure\Ant\build.xml
    populateImages:
    [java] Jan 13, 2011 12:21:21 AM oracle.as.jmx.framework.LoggerHelper log
    [java] SEVERE: Error initializing the JMX FRamework SPI "oracle.as.jmx.framework.standardmbeans.spi.JMXFrameworkProviderImpl"
    [java] java.lang.reflect.InvocationTargetException
    [java]      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [java]      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    [java]      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    [java]      at java.lang.reflect.Method.invoke(Method.java:597)
    [java]      at oracle.as.jmx.framework.PortableMBeanFactory.initializeSPI(PortableMBeanFactory.java:1895)
    [java]      at oracle.as.jmx.framework.PortableMBeanFactory.initializePlatformSPI(PortableMBeanFactory.java:1851)
    [java]      at oracle.as.jmx.framework.PortableMBeanFactory.init(PortableMBeanFactory.java:1831)
    [java]      at oracle.as.jmx.framework.PortableMBeanFactory.<init>(PortableMBeanFactory.java:207)
    [java]      at oracle.as.jmx.framework.PortableMBeanFactory.<init>(PortableMBeanFactory.java:215)
    [java]      at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    [java]      at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
    [java]      at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
    [java]      at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
    [java]      at java.lang.Class.newInstance0(Class.java:355)
    [java]      at java.lang.Class.newInstance(Class.java:308)
    [java]      at oracle.mds.core.MDSInstance.lookupMBeanServer(MDSInstance.java:2061)
    [java]      at oracle.mds.core.MDSInstance.checkMDSDeployStatus(MDSInstance.java:950)
    [java]      at oracle.mds.core.MDSInstance.<init>(MDSInstance.java:1692)
    [java]      at oracle.mds.core.MDSInstance.<init>(MDSInstance.java:1666)
    [java]      at oracle.mds.core.MDSInstance.findAndStoreMDSInstance(MDSInstance.java:1962)
    [java]      at oracle.mds.core.MDSInstance.getOrCreateInstance(MDSInstance.java:507)
    [java]      at oracle.mds.core.MDSInstance.getOrCreateInstance(MDSInstance.java:470)
    [java]      at oracle.adf.share.config.ADFMDSConfig.getDefaultMDSInstance(ADFMDSConfig.java:436)
    [java]      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [java]      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    [java]      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    [java]      at java.lang.reflect.Method.invoke(Method.java:597)
    [java]      at oracle.adf.share.config.FallbackConfigImpl.getMDSInstance(FallbackConfigImpl.java:65)
    [java]      at oracle.adf.share.config.ADFContextMDSConfigHelperImpl.createMDSSession(ADFContextMDSConfigHelperImpl.java:50)
    [java]      at oracle.adf.share.ADFContext.getMDSSessionAsObject(ADFContext.java:1224)
    [java]      at oracle.jbo.mom.MOMParserMDS.getMDSSession(MOMParserMDS.java:60)
    [java]      at oracle.jbo.mom.MOMParserMDS.parse(MOMParserMDS.java:189)
    [java]      at oracle.jbo.mom.MOMParserNonMDS.readAndParse(MOMParserNonMDS.java:71)
    [java]      at oracle.jbo.mom.DefinitionContextStandard.readAndParse(DefinitionContextStandard.java:237)
    [java]      at oracle.jbo.mom.DefinitionManager.loadProjectDefinition(DefinitionManager.java:1447)
    [java]      at oracle.jbo.server.SessionImpl.init(SessionImpl.java:160)
    [java]      at oracle.jbo.server.ApplicationModuleHomeImpl.createSession(ApplicationModuleHomeImpl.java:106)
    [java]      at oracle.jbo.server.ApplicationModuleHomeImpl.<init>(ApplicationModuleHomeImpl.java:43)
    [java]      at oracle.jbo.server.InitialContextImpl.createJboHome(InitialContextImpl.java:52)
    [java]      at oracle.jbo.common.JboInitialContext.lookup(JboInitialContext.java:73)
    [java]      at javax.naming.InitialContext.lookup(InitialContext.java:392)
    [java]      at oracle.jbo.common.ampool.DefaultConnectionStrategy.createApplicationModule(DefaultConnectionStrategy.java:155)
    [java]      at oracle.jbo.common.ampool.DefaultConnectionStrategy.createApplicationModule(DefaultConnectionStrategy.java:73)
    [java]      at oracle.jbo.common.ampool.ApplicationPoolImpl.instantiateResource(ApplicationPoolImpl.java:2767)
    [java]      at oracle.jbo.pool.ResourcePool.createResource(ResourcePool.java:589)
    [java]      at oracle.jbo.common.ampool.ApplicationPoolImpl.prepareApplicationModule(ApplicationPoolImpl.java:2327)
    [java]      at oracle.jbo.common.ampool.ApplicationPoolImpl.doCheckout(ApplicationPoolImpl.java:2203)
    [java]      at oracle.jbo.common.ampool.ApplicationPoolImpl.useApplicationModule(ApplicationPoolImpl.java:3101)
    [java]      at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:460)
    [java]      at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:431)
    [java]      at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:426)
    [java]      at oracle.jbo.client.Configuration.getApplicationModule(Configuration.java:1494)
    [java]      at oracle.jbo.client.Configuration.createRootApplicationModule(Configuration.java:1399)
    [java]      at oracle.fodemo.share.imageloader.LoadImages.main(LoadImages.java:23)
    [java]      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [java]      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    [java]      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    [java]      at java.lang.reflect.Method.invoke(Method.java:597)
    [java]      at org.apache.tools.ant.taskdefs.ExecuteJava.run(ExecuteJava.java:217)
    [java]      at org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:152)
    [java]      at org.apache.tools.ant.taskdefs.Java.run(Java.java:764)
    [java]      at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:218)
    [java]      at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:132)
    [java]      at org.apache.tools.ant.taskdefs.Java.execute(Java.java:105)
    [java]      at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
    [java]      at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
    [java]      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    [java]      at java.lang.reflect.Method.invoke(Method.java:597)
    [java]      at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    [java]      at org.apache.tools.ant.Task.perform(Task.java:348)
    [java]      at org.apache.tools.ant.Target.execute(Target.java:357)
    [java]      at org.apache.tools.ant.Target.performTasks(Target.java:385)
    [java]      at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
    [java]      at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38)
    [java]      at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
    [java]      at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:416)
    [java]      at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
    [java]      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [java]      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    [java]      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    [java]      at java.lang.reflect.Method.invoke(Method.java:597)
    [java]      at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    [java]      at org.apache.tools.ant.Task.perform(Task.java:348)
    [java]      at org.apache.tools.ant.Target.execute(Target.java:357)
    [java]      at org.apache.tools.ant.Target.performTasks(Target.java:385)
    [java]      at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
    [java]      at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
    [java]      at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
    [java]      at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
    [java]      at org.apache.tools.ant.Main.runBuild(Main.java:758)
    [java]      at org.apache.tools.ant.Main.startAnt(Main.java:217)
    [java]      at org.apache.tools.ant.Main.start(Main.java:179)
    [java]      at org.apache.tools.ant.Main.main(Main.java:268)
    [java] Caused by: java.lang.IllegalStateException: access denied (javax.management.MBeanTrustPermission register)
    [java]      at oracle.as.jmx.framework.generic.spi.CoreJMXFrameworkProviderImpl.init(CoreJMXFrameworkProviderImpl.java:268)
    [java]      at oracle.as.jmx.framework.generic.spi.CoreJMXFrameworkProviderImpl.init(CoreJMXFrameworkProviderImpl.java:137)
    [java]      at oracle.as.jmx.framework.standardmbeans.spi.JMXFrameworkProviderImpl.init(JMXFrameworkProviderImpl.java:77)
    [java]      ... 93 more
    [java] Caused by: java.security.AccessControlException: access denied (javax.management.MBeanTrustPermission register)
    [java]      at java.security.AccessControlContext.checkPermission(AccessControlContext.java:323)
    [java]      at java.lang.SecurityManager.checkPermission(SecurityManager.java:568)
    [java]      at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.checkMBeanTrustPermission(DefaultMBeanServerInterceptor.java:1824)
    [java]      at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerMBean(DefaultMBeanServerInterceptor.java:310)
    [java]      at com.sun.jmx.mbeanserver.JmxMBeanServer.registerMBean(JmxMBeanServer.java:482)
    [java]      at oracle.as.jmx.framework.config.session.ReadOnlyConfigurationMBeanServer.registerMBean(ReadOnlyConfigurationMBeanServer.java:80)
    [java]      at oracle.as.jmx.framework.config.session.ConfigurationSessionManager.registerSessionManagerMBean(ConfigurationSessionManager.java:135)
    [java]      at oracle.as.jmx.framework.config.session.ConfigurationSessionManager.<init>(ConfigurationSessionManager.java:127)
    [java]      at oracle.as.jmx.framework.generic.spi.CoreJMXFrameworkProviderImpl.initConfigSessionInfrastructure(CoreJMXFrameworkProviderImpl.java:307)
    [java]      at oracle.as.jmx.framework.generic.spi.CoreJMXFrameworkProviderImpl.init(CoreJMXFrameworkProviderImpl.java:260)
    [java]      ... 95 more
    [java] Jan 13, 2011 12:21:23 AM oracle.jdbc.driver.OracleDriver registerMBeans
    [java] SEVERE: Error while registering Oracle JDBC Diagnosability MBean.
    [java] java.security.AccessControlException: access denied (javax.management.MBeanTrustPermission register)
    [java]      at java.security.AccessControlContext.checkPermission(AccessControlContext.java:323)
    [java]      at java.lang.SecurityManager.checkPermission(SecurityManager.java:568)
    [java]      at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.checkMBeanTrustPermission(DefaultMBeanServerInterceptor.java:1824)
    [java]      at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerMBean(DefaultMBeanServerInterceptor.java:310)
    [java]      at com.sun.jmx.mbeanserver.JmxMBeanServer.registerMBean(JmxMBeanServer.java:482)
    [java]      at oracle.as.jmx.framework.config.session.RuntimeConfigurationMBeanServer.registerMBean(RuntimeConfigurationMBeanServer.java:64)
    [java]      at oracle.jdbc.driver.OracleDriver.registerMBeans(OracleDriver.java:345)
    [java]      at oracle.jdbc.driver.OracleDriver$1.run(OracleDriver.java:197)
    [java]      at java.security.AccessController.doPrivileged(Native Method)
    [java]      at oracle.jdbc.driver.OracleDriver.<clinit>(OracleDriver.java:193)
    [java]      at java.lang.Class.forName0(Native Method)
    [java]      at java.lang.Class.forName(Class.java:247)
    [java]      at oracle.jbo.common.java2.JDK2ClassLoader.loadClassForName(JDK2ClassLoader.java:34)
    [java]      at oracle.jbo.common.JBOClass.forName(JBOClass.java:162)
    [java]      at oracle.jbo.server.BaseSQLBuilderImpl.doRegisterDefaultDriver(BaseSQLBuilderImpl.java:200)
    [java]      at oracle.jbo.server.DBTransactionImpl.establishNewConnection(DBTransactionImpl.java:903)
    [java]      at oracle.jbo.server.DBTransactionImpl.initTransaction(DBTransactionImpl.java:1112)
    [java]      at oracle.jbo.server.DBTransactionImpl.initTxn(DBTransactionImpl.java:6372)
    [java]      at oracle.jbo.server.DBTransactionImpl2.connect(DBTransactionImpl2.java:130)
    [java]      at oracle.jbo.common.ampool.DefaultConnectionStrategy.connect(DefaultConnectionStrategy.java:213)
    [java]      at oracle.jbo.server.ApplicationPoolMessageHandler.doPoolConnect(ApplicationPoolMessageHandler.java:562)
    [java]      at oracle.jbo.server.ApplicationPoolMessageHandler.doPoolMessage(ApplicationPoolMessageHandler.java:410)
    [java]      at oracle.jbo.server.ApplicationModuleImpl.doPoolMessage(ApplicationModuleImpl.java:8651)
    [java]      at oracle.jbo.common.ampool.ApplicationPoolImpl.sendPoolMessage(ApplicationPoolImpl.java:4405)
    [java]      at oracle.jbo.common.ampool.ApplicationPoolImpl.prepareApplicationModule(ApplicationPoolImpl.java:2391)
    [java]      at oracle.jbo.common.ampool.ApplicationPoolImpl.doCheckout(ApplicationPoolImpl.java:2203)
    [java]      at oracle.jbo.common.ampool.ApplicationPoolImpl.useApplicationModule(ApplicationPoolImpl.java:3101)
    [java]      at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:460)
    [java]      at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:431)
    [java]      at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:426)
    [java]      at oracle.jbo.client.Configuration.getApplicationModule(Configuration.java:1494)
    [java]      at oracle.jbo.client.Configuration.createRootApplicationModule(Configuration.java:1399)
    [java]      at oracle.fodemo.share.imageloader.LoadImages.main(LoadImages.java:23)
    [java]      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [java]      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    [java]      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    [java]      at java.lang.reflect.Method.invoke(Method.java:597)
    [java]      at org.apache.tools.ant.taskdefs.ExecuteJava.run(ExecuteJava.java:217)
    [java]      at org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:152)
    [java]      at org.apache.tools.ant.taskdefs.Java.run(Java.java:764)
    [java]      at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:218)
    [java]      at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:132)
    [java]      at org.apache.tools.ant.taskdefs.Java.execute(Java.java:105)
    [java]      at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
    [java]      at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
    [java]      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    [java]      at java.lang.reflect.Method.invoke(Method.java:597)
    [java]      at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    [java]      at org.apache.tools.ant.Task.perform(Task.java:348)
    [java]      at org.apache.tools.ant.Target.execute(Target.java:357)
    [java]      at org.apache.tools.ant.Target.performTasks(Target.java:385)
    [java]      at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
    [java]      at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38)
    [java]      at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
    [java]      at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:416)
    [java]      at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
    [java]      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [java]      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    [java]      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    [java]      at java.lang.reflect.Method.invoke(Method.java:597)
    [java]      at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    [java]      at org.apache.tools.ant.Task.perform(Task.java:348)
    [java]      at org.apache.tools.ant.Target.execute(Target.java:357)
    [java]      at org.apache.tools.ant.Target.performTasks(Target.java:385)
    [java]      at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
    [java]      at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
    [java]      at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
    [java]      at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
    [java]      at org.apache.tools.ant.Main.runBuild(Main.java:758)
    [java]      at org.apache.tools.ant.Main.startAnt(Main.java:217)
    [java]      at org.apache.tools.ant.Main.start(Main.java:179)
    [java]      at org.apache.tools.ant.Main.main(Main.java:268)
    revokePrivs:
    [sql] Executing resource: F:\mywork\FUSIONORDERDEMO\FusionOrderDemo_R1PS2\Infrastructure\DBSchema\Scripts\SQLRunner1276056861.sql
    [sql] 6 of 6 SQL statements executed successfully
    [delete] Deleting: F:\mywork\FUSIONORDERDEMO\FusionOrderDemo_R1PS2\Infrastructure\DBSchema\Scripts\SQLRunner1276056861.sql
    [echo] Cleaning up database user privileges.
    createDatabase:
    [echo] Database (Re)Creation Complete
    buildAll:
    BUILD SUCCESSFUL
    Total time: 51 seconds

  • SQL Server CE 3.5 SP2 - SQLCE Toolbox / Automated Database Schema Upgrade Scripting / Drop Index

    I am provisioning for automated database schema upgrades in a Windows Forms Application (VS2010/VB) which uses SQL Server Compact 3.5 SP2.  A portion of the schema upgrade procedure uses TSQL commands passed to SQLCE like the following:
    cmd.CommandText = "DROP INDEX [SaleComps$ProjID]"
    cmd.ExecuteNonQuery()
    However, when this command is processed by the SQLCE engine, I get the following error:
    Command: DROP INDEX [SaleComps].[ProjID]
    Error: The specified index does not exist. [ ProjID ]
    But, if I try to recreate the index (or try to change the index column) I get the following errors which indicate that the index is still there:
    Command: ALTER TABLE [SaleComps] ALTER COLUMN [ProjID] nvarchar(20) NULL
    Error: Cannot alter a column that is part of a key or an index. [ Index Name = SaleComps$ProjID,Column = ProjID ]
    Command: CREATE INDEX "SaleComps$ProjID" ON "SaleComps" ("ProjID" ASC)
    Error: The specified index already exists. [ SaleComps$ProjID ]
    Any ideas why this would not be working? Thanks!
    -BGood

    No, I was guessing at the syntax from reviewing other web postings, some of which were in different SQL dialects. 
    While your SQLCE Toolbox did not provide the DROP INDEX command, it did provide most of the "Schema Diff" scripting commands.  In hindsight, maybe SQLCE Toolbox should recognize when schema differences involve a Column which is used in an index, and
    DROP the index before executing the ALTER COLUMN command, then re-CREATE the index with the modified column.
    Despite this shortcoming, I am very thankful for the help provided by SQLCE Toolbox, and learned a little more about SQL scripting in the process.
    Thanks, ErikEJ!
    -BGood

  • Requesting help-Schema creation and databinding

    We are using Livecycle ES 2, I am facing issues in traversing forms from one stage to another, forms are not holding datas from the previous stages.
    The steps which I followed are,
    1) Created schema to define the fields and data types
    2) Created two new forms in designer , to which schema has been binded to corresponding fields(data View ->> Create Connection->> Schema)
    3) Created a process, created two XML variables(xfaform data type has not been found!)  to hold the created forms
    4) Form1 has been mapped to XMLVariable1
    5) Form2 has been mapped to XMLVariable2
    6) On process, in stage1 - Form1 should appear and in stage2 - Form2 should appear to the end user
    7) in between stage1 and stage2, a setvalue stage is there to map the common data from form1 to form2
    8) So in stage2, user will get form2 well binded with the data from form2
    + few extra fields for user inputs
    9) To map the  data from form1 to form2, I am using "Location-Expression"
    property of setvalue stage
    10) "Location-Expression" is using the XMLvariables - drill down
    XMLVariable2(/process_data/IMFormData/xdp/datasets/data) assign
    XMVariable2(/process_data/FormData/xdp/datasets/data)
    But, when the form reaches stage2, form2 doesnt holding the data from
    form1
    Please help me to sort it out.Also, please let me know if there any tools or tips with you to create schema in much faster and efficient way.

    You do not need a schema (but you can use one if you need it). The form design is in fact a definition of the data structure. By default when a form is created without a schema the fields get Normal binding which allows data files with nodes and structure that have the same name as the field to populate those fields.
    If you still want to create a schema ...you can go into the File/Form Properties/Preview tab and create sampel data. This sample data file can be used by many programs that convert an XML file into a schema. Just do a search in teh web for xml to schema creation and you will get many hits.
    Lastly you coudl even use the sample XML file as the input file (Designer's Data connections allow for a sample xml file as well).
    Hope that helps
    Paul

  • Extended Analytics for star schema creation from HFM application

    Hi,
    I'm trying to create star schema via extended analytics from HFM application but facing below error
    3/21/2013 12:30:07 PM : Status : Extracting Metadata
    Schema did not previously exist.
    Metadata update has failed. : (-2147217900) (One or more errors occurred during processing of command.)
    Processing status change: (-2147217900)
    Data processing failed. : (-2147217900) (One or more errors occurred during processing of command.)
    3/21/2013 12:30:10 PM : Status : Processing completed with errors
    Extended Analytics export completed with errors for Application GCS using Label GCS CON.
    What could be the possible reason for it?
    Also can someone please provide any suitable references or links to learn this EA for star schema creation.
    Thanks,
    Ravi Agrawal

    The error you pasted here is incomplete. Look in the system messages and you will find more complete information that will lead you to the error's cause. Very often this is an error in the database, though sometimes it is caused by a metadata member with an invalid character. To determine whether it is data or metadata that causes the error, you could generate a schema with metadata only and see if the error appears.
    -- Chris

  • Process Automation and Recipe Creation Advice Needed

    Hi all,
    I'm new user of LabVIEW working on a process automation project.
    The process involves a syringe pump, two temperature controllers, and an 8 channel Mass Flow Controller (with 6 process gases and a Mass Flow Meter attached).  All of these devices are connected via RS-232 -->USB and need to be controlled by LabVIEW.
    I've created a VI that allows for manual control over these devices from a single screen, but am not sure how to proceed from here to an automation scheme.  I'd like for the user to be able to create and run recipes (with the option of loading previous recipes or saving current ones).  
    My current idea for each step in the recipe goes a little like this:
    1) User selects device to be altered in the current step
    2) User selects desired parameter change (temperature setpoint, flow rate, etc)
    3) User selects condition on which step occurs (time delay, temperature reaches a specific value, etc)
    4) User adds step to recipe sequence 
    I've read several other posts here about recipe creation using string tables, but have yet to see a working version's block diagram.
    I'm not sure how I should control each device (subVIs, states, whatever), or how to use a table to set a sequence of events in motion.
    Please help!
    Thank you.
    -Shawn 

    Hey Shawn,
    I'd definitely recommend a state machine for this behavior.  Here is an example that might help you get up and running.  The file is missing the typedef for the steps, but you should be able to use this as one idea for how you could base this.  Essentially you could have the File IO aspect be a list of 'steps' that are saved (in array form) by your user.  If there are specific parameters that go along with them, you could figure out how to include this information in the file as well.  This method is pretty slick, and is nice an expandable.  The only tricky part would be to handle the additional data changes for the temperature setpoint and flow rate, etc).  You could possibly do this with a 2D array and have the first dimension be the step, and the second dimension be the values, etc.  Just an idea.
    Message Edited by Jared_B on 05-04-2010 05:35 PM
    Regards,
    Jared Boothe
    Staff Hardware Engineer
    National Instruments

  • User-Exits stop working in automated purchase order creation

    Dear all,
    we used to create sales orders with transaction VA01 and then separately call ME21N to create a purchase order.
    In saving the purchase order we activated user-exit EXIT_SAPMM06E_012 to process some extra logic we need here.
    Now we changed to process for SAP to automatically create the purchase order (to eventually be able to automate the entire process, including sales order creation). Ever since we did that, the user exit is not called any more!
    Does anyone know why? If I manually open ME22N and save the PO, it works! We have to find a way to run the logic in the user-exit during automated PO creation just for the volume of orders.
    Besides that, we're still looking for a convenient way to update PO confirmations using a BAPI or other function module.
    Thanks for your help!
    regards,
              Johannes.

    Good question
    User-exit may not work as the function modules [ and not ME21N ] called in the Sales Order --> Purchase Req --> Purchase Order process may not call the enjoy user-exits.
    Further, this process of automated PO works on Business Obejct event trigger.
    So a event is triggered [ ALECREATED ] on Sales Order Business at the time of Sales Order Creation.
    This event is linked with a function module  called PUR_ORDER_CREATE_VIA_SD_EVENT.
    similarly for change it is PUR_ORDER_CHANGE_VIA_SD_EVENT.
    If you go through the FM code, you can make out how to utilize this FM as user-exit.
    However you need to make the change in this FM after copying the related function group to a Z one. And then change the event linkage accordinlgy to call the new FM.
    See Business Workflow --> Events section..
    If you are not sure about how to do the event linkage then ask it in BPM section...[ They will request you to get lost ...no no ..they didn't do it to me ..just kidding ]
    Cheers,
    Ram

  • Information about Microsoft.ResourceManagement.Automation.ObjectModel schema

    Hi all,
    Does it exist somewhere some references about the classes under Microsoft.ResourceManagement.Automation.ObjectModel ?
    On MSDN it only exist references for :
    Microsoft.IdentityManagement.WebUI.Controls
    Microsoft.ResourceManagement.WebServices.WSResourceManagement
    Microsoft.ResourceManagement.Workflow.Activities
    But what about Microsoft.ResourceManagement.Automation and especially ObjectModel which is used in PowerShell scripting for example ?
    Any information will be helpfull
    Fabrice
    http://www.iamthefrenchblog.com/

    Wondering if there was ever a publication on the schema mentioned?
    Mike Crowley | MVP
    My Blog --
    Planet Technologies

  • Custom Schema creation/Drop

    Hi All,
    I am currently working on Schema Objects/their dependencies, any help on the following appreciated:
    1). How to get all separate object types (one by one) under a schema drop/creation listing?
    2). Selective Tables under a schema and their all dependencies whichever available/applicable (constraints/views/synonym/sequences/triggers,program sources, etc) drop/creation listing?
    If you check following SQL, you'll find 44 rows as a result,
    SQL> select distinct object_type from dba_objects; 
    44 rows selected.
    SQL>I have checked DBMS_METADATA, but looks like its under maintenance.
    Seeing Object types will give a broader perspective.
    Thanks,
    Aamer

    Hi,
    You can use this query to find dependencies with dependend object name and status.
    SELECT A.OBJECT_TYPE, A.OBJECT_NAME, B.OWNER, B.OBJECT_TYPE, B.OBJECT_NAME,
    B.OBJECT_ID, B.STATUS
    FROM SYS.DBA_OBJECTS A,
    SYS.DBA_OBJECTS B,
    (SELECT OBJECT_ID, REFERENCED_OBJECT_ID
    FROM PUBLIC_DEPENDENCY
    START WITH OBJECT_ID =
    (SELECT OBJECT_ID
    FROM SYS.DBA_OBJECTS
    WHERE OWNER = &SCHEMA_NAME
    AND OBJECT_NAME = &OBJECT_NAME
    AND OBJECT_TYPE = &OBJECT_TYPE)
    CONNECT BY PRIOR REFERENCED_OBJECT_ID = OBJECT_ID) C
    WHERE A.OBJECT_ID = C.OBJECT_ID
    AND B.OBJECT_ID = C.REFERENCED_OBJECT_ID
    AND A.OWNER NOT IN ('SYS', 'SYSTEM')
    AND B.OWNER NOT IN ('SYS', 'SYSTEM')
    AND A.OBJECT_NAME <> 'DUAL'
    AND B.OBJECT_NAME <> 'DUAL';
    Satyam.

  • Techniques needed for Automated (OLE) PDF Creation from Word using Adobe 9

    My client currently uses Adobe 5, PDF Writer, Word and OLE automation to generate PDF files.  This is done on a server. A queue of Word documents are read. A watermark is added via a VB Macro. Then, also via a macro (below) a pdf file version of the Word doc  is generated. The pdf file is generated as temp.pdf, which the program uniquely renames later. 
    Unfortunately, Adobe 5 and PDF Writer cannot handle Chinese characters and now needs to.  Seems like the process  above cannot be the same with Adobe 9. How should I approach this server driven, pdf file generation from Word docs with Adobe 9? This is a 24 x 7 ongoing, 100s of documents a day process. It isn’t clear to me that PDF Writer is still an option.  With Adobe 9 installed on a client, it is possible to save a Chinese character Word document using the Adobe ‘Convert to PDF’ toolbar button
    Sub WritePdfFile()
        Windows(1).Activate
        ActivePrinter = "Acrobat PDFWriter"
        Application.PrintOut FileName:="", Range:=wdPrintAllDocument, Item:= _
            wdPrintDocumentContent, Copies:=1, Pages:="", PageType:=wdPrintAllPages, _
            Collate:=True, Background:=True, PrintToFile:=False
    End Sub

    I think that type of question would go in
    Scripting http://forums.adobe.com/community/acrobat/acrobat_scripting 
    or
    SDK http://forums.adobe.com/community/acrobat/acrobat_sdk
    Or, for Microsoft parts of the process, search at
    http://search.microsoft.com/search.aspx?mkt=en-US&setlang=en-US

  • XML schema creation

    hi all,
    i created a XML schema but i have some confusion in :
    <Processsteps>
    <ProcessStep/>
    <ParallelProcessStep/>
    </ProcessSteps>
    in this case none(child element) is manadatory, but there should be at least 1 child element of either type.
    how can i implement this problen mentioned above in Schema? can anybody send code for this problem/

    Try the 'choice' option for a 'complexType'
    I just recently learned how to write schemas. This tutorial is a little vague, but it gave me a good start
    http://www.w3schools.com/schema/default.asp
    Sorry, not giving you code, it's not that difficult.

  • Strock transfer process - Automating the document creation/flow

    Hi,
    I am working on an implementation of ECC6 where the client has a requirement to automate creation of many of the system documents.
    We are following the standard SAP BBP J51: Internal Procurement (Stock Transfer With Delivery).  To summarise the BPP, the following process is followed:
    Stock Transfer (Purchase) order is created -> Outbound delivery is created with ref to the PO -> Picking/Goods Issue is done by the sending plant against the Outbound Delivery -> Inbound delivery is created -> Goods are Goods Receipted into the receiving plant.
    Our client has a requirement that the process is done as follows:
    - PO/Stock Transfer (ST) is manually created when a ST is required.
    - On Saving of the ST, the Outbound Delivery is automatically generated by the system with reference to the PO/ST.
    - The Picking is done and the Goods Issued. 
    - On saving the Goods Issue, the inbound Delivery is created with reference to the outbound delivery or PO/ST (or creation can be done at the same time as the creation of the Outbound Delivery).
    - Goods Receipt is then manually completed by the receiving plant and the process is complete.
    After searching various forums, I have found some people say it can only be done through ABAP customisation and and others who say that from version ECC6 onwards it can be done via SPRO config.  The instructions I have found on how to do this via Config were unclear and I was unable to get the process working.  I have been unable to find any information on this through help.sap.com or OSS notes.
    If anyone is able to provide the steps required to set this up or a link to reference documents i can use to find the answer, it would be much appreciated. Please advise if you need more info.
    Thanks

    Hello Abhishek.
    Please see the following information on workflows available.
    http://help.sap.com/saphelp_utilities472/helpdata/en/38/1a6c35a018d041e10000009b38f839/frameset.htm
    http://help.sap.com/saphelp_utilities472/helpdata/en/38/1a6c35a018d041e10000009b38f839/frameset.htm
    Also see object DISCONNECT in transaction SWO1 Disconnection.Create...
    I hope I have understood your request and this information is helpful.
    Regards
    Olivia

  • Lobby Admin for guest account creation - Automation of account creation

    hello all,
    i'm sure the creation of guest accounts on the lobby admin page is a painful process for all involved - for us, it involves a process like this:
    visitor asks for wifi > receptionist phones IT > IT creates account> IT phones receptionist with login details.
    I would like to know whether it's possible to speed up this process either:
    1) receptionist is able to click a few buttons, type the name of a visitor (so we know who used particular the guest ID), then is able to generate an ID and password immediately, which can then be printed onto a ticket printer of some sort.
    2) visitor simply connects into the guest network, has to register (name and email) and automatically gets connected.
    are any of these possible? or any other option I could take?
    Thanks

    Why not just have the receptionist create the account via the Lobby Admin login?  The point of Lobby Admin is such that an elevated end-user (receptionist/security/etc) can log in to create a guest account without having to interact with an "admin".  There's no point in having your IT staff handle the Lobby Admin logins.
    Some of the other items you are asking for would be a better use-case with Cisco ISE solution.

Maybe you are looking for

  • Header is not coming in alv list display- urgent

    hi all, i am sending my code below.... my requirement is in selection screen i have 4 radio buttons . if i click 1 radio button it will duiisplay data and and its header. report is working fine. my requirement id when i click r_mssng radio button(mis

  • How to look at Coherence's bug database?

    Hello, I would like to give a look at COH-2767 but I do not know where to look at. Can anyone point me to the site where I can search for this Coherence's issue ?? Thank you, Ugo.

  • Getting Date error when I process

    Hi All, I have DEV & QA Analysis services on 2 different server. This is 2005 SSAS I am using same solution so DEV process OK but QA gives me date error when  I check with SSMS , date fields  look fine . But I am getting this error in QA Errors in th

  • GUI not working... CLI is working fine in Solaris 10 OS

    Hello, I have X4500 running Solaris 10. I can access it through CLI but I cannot see the GUI. When I reboot it, the GUI works till all the files are loaded (ie., the initial boot sequence) and it prompts me to enter username and password and there it

  • How can I count time with labview7?

    Hi How can I count time with labview 7 and NI-DAQmx like I did with labview 6.1 and "count time-easy.vi" (count event or Time.vi). I have a 6025E and labview 7.0 Thanks