Capture-db-schema with my-sql

hello everybody ,
i create a jdbc resorce and connection pool with Server admin Console and ping everything is ok, but when i get a schema the console bring me this
capture-db-schema:
[java] using dburl:jdbc:mysql://localhost:3306/comut
[java] using username:user_comut
[java] using password:user_comut
[java] using driver:com.mysql.jdbc.Driver
[java] using schemaname:comut
[java] using output file:build/cmproster.dbschema
[java] Capturing schema:comut
[java] JDO71101: Cannot access table LEAGUE.
[java] JDO71101: Cannot access table PLAYER.
[java] JDO71101: Cannot access table TEAM.
[java] JDO71101: Cannot access table TEAM_PLAYER.
[java] JDO71102: No valid tables requested. No schema file created
someone help me

MySQL is not a supported database to use with CMP.
But from the error message that you get, it looks like you didn't
have those tables in your database, or their names didn't
match exactly (case sensitive).
Regards,
-marina

Similar Messages

  • Validation XML documnet with XML Schema in PL/SQL

    Hello,
    can someone please explain
    How to validate an XML document with XML schema using PL/SQL code (with out writing Java code).
    Thanks for your Help in Advance
    Surendra.

    see the posting: Schema validation routine?
    regards, Bart

  • Capture-schema with sybase

    I tried to do the following to create a database schema
    F:\Sun\AppServer7\bin>capture-schema -dburl jdbc:sybase:Tds:3.70.201.88:20000 -username sa -password "" -driver com
    .sybase.jdbc2.jdbc.SybDriver -schemaname ims -table users -out userSchema.dbschema
    using driver: com.sybase.jdbc2.jdbc.SybDriver
    using dburl: jdbc:sybase:Tds:3.70.201.88:20000
    using username: sa
    using password:
    using schemaname: ims
    Capturing schema: ims
    java.sql.SQLException: JZ0SJ: Metadata accessor information was not found on this database. Please install the requ
    ired tables as mentioned in the jConnect documentation.
    at com.sybase.jdbc2.jdbc.ErrorMessage.raiseError(ErrorMessage.java:436)
    at com.sybase.jdbc2.jdbc.MdaManager.getMetaDataAccessor(MdaManager.java:292)
    at com.sybase.jdbc2.jdbc.SybDatabaseMetaData.getMetaDataAccessor(SybDatabaseMetaData.java:2231)
    at com.sybase.jdbc2.jdbc.SybDatabaseMetaData.getMetaDataAccessor(SybDatabaseMetaData.java:2216)
    at com.sybase.jdbc2.jdbc.SybDatabaseMetaData.getUserName(SybDatabaseMetaData.java:214)
    at com.sun.forte4j.modules.dbmodel.jdbcimpl.SchemaElementImpl.<init>(SchemaElementImpl.java:71)
    at com.iplanet.ias.tools.forte.ejb.cmp.schema.CaptureSchema.main(CaptureSchema.java:108)
    Schema captured
    Saving schema ...
    A schema does get created, but does not contain information about the table.
    Is this file absolutely necessary to deploy a CMP bean? Also is sun-cmp-mappings.xml file necessary? Can this
    information not be given in sun-ejb-jar.xml file.

    Short answers:
    1. The dot-dbschema file is critical to deployment and execution.
    2. The sun-cmp-mappings.xml file is critical to deployment and execution.
    3. Yes, it could be given in the sun-ejb-jar.xml file AND
    No, it is not possible to give this information in the sun-ejb-jar.xml file as the file is currently specified and the implementation is currently architected.

  • How to make sure that schema name is not included with generated sqls

    How to make sure that schema name is not included with generated sqls with tableadapter wizard.
    What should I use? Oledb, ODT.NET, where can set that I want "pure" sqls, not schemas, not ", or anything like this
    I want
    "Select a,b from t1" ,not "select "a","b" from schema.t1"
    Also schema name is put in all parameters, all over the place... What if schema name changes. (b1test to b1prod)
    . I now manually edit XML files of dataset. It works but....
    thanks

    The full hardware :
    Processor Intel core due 3.00 MHz
    RAM:1.5GB
    psu:650 Watt (but i baught i cheap one so it may be actually about 400 watt)
    HD Disk:160 GB
    But about the power supply if it not able to run the VGA card ,Is it will not show any screen or it will not able to run the computer??

  • Capturing Users with running sql in shell script after every 10min

    Hi All,
    we have a strange prob. of database crash, therefore decided to check what users do when OS/DB crashes,
    i need your input in RUNNING/SCHEDULING such a script which gathers all active users with running SQL and append in a logfile so that we are aware of what happened when DB/OS Crashed.
    i can run this run a query from V$SESSION,V$SQL, and V$PROCESS but i need your input writing such a SHELL Script and scheduling can run by CRON.
    Regards.

    Here ya go.
    (Assuming you want a script to run against one sid)
    script:
    #!/bin/ksh
    # Set environment
    . $HOME/.profile
    export ORACLE_SID=your sid
    sqlplus <<! > /some_report_file
    / as sysdba
    sql you want to execute here*
    exit
    cron entry:
    0,5,10,15,20,25,30,35,40,45,50,55 * * * * /your/script/name/here > /dev/null 2>&1

  • Could not get schema Object:java.sql.SQLSyntaxErrorException ora-904

    All of a sudden I get
    Could not get schema Object:java.sql.SQLSyntaxErrorException: ORA-00904: "SYS"."O"."NAME": ongeldige ID
    when doing anything in the tables tree in the connections pane
    The only thing I set recently is pga_aggregate_target
    Environment
    Oracle 11.2.0.1
    OS Windows Vista Ultimate sp2
    Sql developer 2.1.1.64.39 with its own JDK
    As the download links on OTN are broken I can not upgrade, and I'd rather not work in command line sqlplus.
    Help!!!
    Sybrand Bakker
    Senior Oracle DBA

    My copy of sqldeveloper isn't located in that directory. Would that matter?
    In the mean time I have disabled filtering the tables node. Opening the tables node doesn't result in exceptions anymore.
    Now, when I click on any table in that node I get 4 identical ora-904 error messages for sys.o.name for any table.
    Apparently it is querying either the all_objects view and it thinks it is querying sys.obj$.
    I didn't yet enable sql_trace for the session, I'm more or less giving up on sqldeveloper. I can not use the space bar in any datagrid, sqldeveloper has always been extreemly unresponsive when navigating the schema browser (as opposed to Toad), etc, etc. Too bad I bought Sue Harpers book, but I think I will be de-installing sqldeveloper soon.
    Sybrand Bakker
    Senior Oracle DBA

  • Error creating OIM schema with RCU 11.1.1.3.3 (RCU-6135)

    Hello!
    I'm trying to install Oracle Access & Identity Management 11g on Windows Server 2003 32bit machine
    As main guide I use the article from onlineappsdba.com ( [this one|http://onlineappsdba.com/index.php/2010/08/05/oracleidm-11g-step-by-installation-of-oam-oim-oaam-oapm-oin-111130-part-i-load-schema/print/] )
    I have installed Oracle Database 11.2.0.1.0
    After that I try to create required schemas using RCU 11.1.1.3.3 and constantly get failed on creating OIM schema with error RCU-6135:Error while trying to execute Java action..
    All other schemas were created successfully.
    I've checked oim.log and there were no sql errors.
    In the rcu.log I found next messages:
    2011-04-08 17:19:28.921 NOTIFICATION rcu: oracle.sysman.assistants.rcu.backend.task.ActualTask::run: Executing Task: Oracle Identity Manager
    2011-04-08 17:19:28.921 NOTIFICATION rcu: oracle.sysman.assistants.rcu.backend.action.JavaAction::perform: JavaAction command=oracle.ias.version.SchemaVersionUtil:utilCreateRegistryEntry
    2011-04-08 17:19:28.921 NOTIFICATION rcu: oracle.sysman.assistants.rcu.backend.action.JavaAction::perform: JavaAction method=utilCreateRegistryEntry
    2011-04-08 17:19:28.921 NOTIFICATION rcu: oracle.sysman.assistants.common.dbutil.jdbc.JDBCEngine::connect: Connecting to database: user:sys, role:SYSDBA, connectString:(description=(address=(host=sso)(protocol=tcp)(port=1521))(connect_data=(service_name=RED)(server=dedicated)))
    2011-04-08 17:19:29.328 NOTIFICATION rcu: oracle.sysman.assistants.rcu.backend.action.JDBCAction::perform: m_bean.getResetSession() = false
    2011-04-08 17:19:29.328 NOTIFICATION rcu: oracle.sysman.assistants.rcu.backend.action.JDBCAction::perform: m_bean.getConnectAsOwner() = false
    2011-04-08 17:19:29.328 NOTIFICATION rcu: oracle.sysman.assistants.common.dbutil.jdbc.JDBCEngine::connect: Connecting to database: user:sys, role:SYSDBA, connectString:(description=(address=(host=sso)(protocol=tcp)(port=1521))(connect_data=(service_name=RED)(server=dedicated)))
    2011-04-08 17:19:29.343 NOTIFICATION rcu: oracle.sysman.assistants.rcu.backend.action.JDBCAction::perform: current user=sys
    2011-04-08 17:19:29.343 NOTIFICATION rcu: oracle.sysman.assistants.rcu.backend.action.JDBCAction::perform: Performing JDBCScript Action Command: Z:\Oracle\fusion\3\ofm_rcu_win32_11.1.1.3.3_disk1_1of1\rcuHome\/rcu/integration//oim/sql/oim_user.sql CMDLINE Parameters Length: 5
    2011-04-08 17:19:29.343 NOTIFICATION rcu: oracle.sysman.assistants.common.dbutil.jdbc.JDBCEngine::parseNexecuteScript: ParseNexecute Script: Z:\Oracle\fusion\3\ofm_rcu_win32_11.1.1.3.3_disk1_1of1\rcuHome\/rcu/integration//oim/sql/oim_user.sql
    2011-04-08 17:19:29.625 NOTIFICATION rcu: oracle.sysman.assistants.rcu.backend.action.JDBCAction::perform: **** Sql script DONE****
    2011-04-08 17:19:29.625 NOTIFICATION rcu: oracle.sysman.assistants.rcu.backend.task.AbstractCompTask::execute: ValidIf result was false. Skipping Action: Z:\Oracle\fusion\3\ofm_rcu_win32_11.1.1.3.3_disk1_1of1\rcuHome\/rcu/integration//oim/sql/param.sql
    2011-04-08 17:19:29.625 NOTIFICATION rcu: oracle.sysman.assistants.rcu.backend.action.SQLPlusAction::perform: paramString = 'DEV2_OIM'
    2011-04-08 17:19:35.796 NOTIFICATION rcu: oracle.sysman.assistants.rcu.backend.action.SQLPlusAction::perform: **** Sql script DONE****
    2011-04-08 17:19:35.828 NOTIFICATION rcu: oracle.sysman.assistants.rcu.backend.action.SQLPlusAction::perform: paramString = 'DEV2_OIM' 'DEV2_OIM_LOB'
    2011-04-08 17:19:35.828 NOTIFICATION rcu: oracle.sysman.assistants.rcu.backend.action.SQLPlusAction::perform: m_bean.getResetSession() = false
    2011-04-08 17:19:35.828 NOTIFICATION rcu: oracle.sysman.assistants.rcu.backend.action.SQLPlusAction::perform: m_bean.getConnectAsOwner() = false
    2011-04-08 17:20:30.796 NOTIFICATION rcu: oracle.sysman.assistants.rcu.backend.action.SQLPlusAction::perform: **** Sql script DONE****
    2011-04-08 17:20:30.796 NOTIFICATION rcu: oracle.sysman.assistants.rcu.backend.action.JDBCAction::perform: m_bean.getResetSession() = false
    2011-04-08 17:20:30.796 NOTIFICATION rcu: oracle.sysman.assistants.rcu.backend.action.JDBCAction::perform: m_bean.getConnectAsOwner() = false
    2011-04-08 17:20:30.796 NOTIFICATION rcu: oracle.sysman.assistants.rcu.backend.action.JDBCAction::perform: current user=sys
    2011-04-08 17:20:30.796 NOTIFICATION rcu: oracle.sysman.assistants.rcu.backend.action.JDBCAction::perform: Performing JDBCScript Action Command: Z:\Oracle\fusion\3\ofm_rcu_win32_11.1.1.3.3_disk1_1of1\rcuHome\/rcu/integration//oim/sql/update_oim_user.sql CMDLINE Parameters Length: 1
    2011-04-08 17:20:30.796 NOTIFICATION rcu: oracle.sysman.assistants.common.dbutil.jdbc.JDBCEngine::parseNexecuteScript: ParseNexecute Script: Z:\Oracle\fusion\3\ofm_rcu_win32_11.1.1.3.3_disk1_1of1\rcuHome\/rcu/integration//oim/sql/update_oim_user.sql
    2011-04-08 17:20:30.812 NOTIFICATION rcu: oracle.sysman.assistants.rcu.backend.action.JDBCAction::perform: **** Sql script DONE****
    2011-04-08 17:20:30.812 NOTIFICATION rcu: oracle.sysman.assistants.rcu.backend.action.JavaAction::perform: JavaAction command=Z:\Oracle\fusion\3\ofm_rcu_win32_11.1.1.3.3_disk1_1of1\rcuHome\/rcu/integration//oim/iam_rcu_comp/lib/seedSchedulerData.jar:oracle.iam.scheduler.seed.SeedSchedulerData:loadSchedulerData
    2011-04-08 17:20:30.812 NOTIFICATION rcu: oracle.sysman.assistants.rcu.backend.action.JavaAction::perform: jarPath=Z:\Oracle\fusion\3\ofm_rcu_win32_11.1.1.3.3_disk1_1of1\rcuHome\/rcu/integration//oim/iam_rcu_comp/lib/seedSchedulerData.jar
    2011-04-08 17:20:30.843 NOTIFICATION rcu: oracle.sysman.assistants.rcu.backend.action.JavaAction::perform: JavaAction method=loadSchedulerData
    2011-04-08 17:20:30.875 INCIDENT_ERROR rcu: oracle.sysman.assistants.rcu.backend.action.JavaAction::perform: Failed to execute method: Excepton:
    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.assistants.rcu.backend.action.JavaAction.perform(JavaAction.java:328)
         at oracle.sysman.assistants.rcu.backend.task.AbstractCompTask.execute(AbstractCompTask.java:243)
         at oracle.sysman.assistants.rcu.backend.task.ActualTask.run(TaskRunner.java:306)
         at java.lang.Thread.run(Thread.java:619)
    Caused by: java.lang.NullPointerException
         at oracle.iam.scheduler.seed.SeedSchedulerData.startSeeding(SeedSchedulerData.java:516)
         at oracle.iam.scheduler.seed.SeedSchedulerData.loadSchedulerData(SeedSchedulerData.java:107)
         ... 8 more
    2011-04-08 17:20:30.984 ERROR rcu: oracle.sysman.assistants.rcu.backend.task.ActualTask::run: RCU Operation Failed
    oracle.sysman.assistants.common.task.TaskExecutionException: RCU-6135:Error while trying to execute Java action.
         at oracle.sysman.assistants.rcu.backend.task.AbstractCompTask.execute(AbstractCompTask.java:300)
         at oracle.sysman.assistants.rcu.backend.task.ActualTask.run(TaskRunner.java:306)
         at java.lang.Thread.run(Thread.java:619)
    Caused by: oracle.sysman.assistants.common.task.ActionFailedException: RCU-6135:Error while trying to execute Java action.
         at oracle.sysman.assistants.rcu.backend.action.JavaAction.perform(JavaAction.java:350)
         at oracle.sysman.assistants.rcu.backend.task.AbstractCompTask.execute(AbstractCompTask.java:243)
         ... 2 more
    Caused by: 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.assistants.rcu.backend.action.JavaAction.perform(JavaAction.java:328)
         ... 3 more
    Caused by: java.lang.NullPointerException
         at oracle.iam.scheduler.seed.SeedSchedulerData.startSeeding(SeedSchedulerData.java:516)
         at oracle.iam.scheduler.seed.SeedSchedulerData.loadSchedulerData(SeedSchedulerData.java:107)
         ... 8 more
    2011-04-08 17:20:30.984 NOTIFICATION rcu: oracle.sysman.assistants.rcu.backend.task.ActualTask::run: Executing Task: Execute post create operations
    2011-04-08 17:20:30.984 NOTIFICATION rcu: oracle.sysman.assistants.rcu.backend.task.CustomCompManager::getActionList: CustomCompManager.getActionList: CUSTOM_COMP_POSTLOAD_CLEANUP
    2011-04-08 17:20:30.984 NOTIFICATION rcu: oracle.sysman.assistants.rcu.backend.task.ActualTask::run: Execution time for Execute post create operations : 0 milliseconds
    2011-04-08 18:32:57.031 NOTIFICATION rcu: oracle.sysman.assistants.rcu.backend.RCUModel::executeTasks: Failed to write checkpoint at:Z:\Oracle\fusion\3\ofm_rcu_win32_11.1.1.3.3_disk1_1of1\rcuHome\/rcu/log\RCUCheckpointObj
    2011-04-08 18:32:57.031 NOTIFICATION rcu: oracle.sysman.assistants.rcu.backend.RCUModel::executeTasks: Writing checkpoint at:C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\1\\logdir.2011-04-08_17-13\RCUCheckpointObj
    2011-04-08 18:32:57.046 NOTIFICATION rcu: oracle.sysman.assistants.rcu.ui.InteractiveRCUModel::showCompletionMessage: Repository Creation Utility: Create - Completion Summary
    Database details:
    Host Name               : sso
    Port                    : 1521
    Service Name               : RED
    Connected As               : sys
    Prefix for (prefixable) Schema Owners : DEV2
    RCU Logfile               : C:\Documents and Settings\Administrator\Local Settings\Temp\1\logdir.2011-04-08_17-13\rcu.log
    RCU Checkpoint Object               : C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\1\\logdir.2011-04-08_17-13\RCUCheckpointObj
    Component schemas created:
    Component               Status     Logfile          
    Metadata Services          Success     C:\Documents and Settings\Administrator\Local Settings\Temp\1\logdir.2011-04-08_17-13\mds.log
    Audit Services          Success     C:\Documents and Settings\Administrator\Local Settings\Temp\1\logdir.2011-04-08_17-13\iau.log
    Oracle Identity Manager          Failed     C:\Documents and Settings\Administrator\Local Settings\Temp\1\logdir.2011-04-08_17-13\oim.log
    Oracle Access Manager          Success     C:\Documents and Settings\Administrator\Local Settings\Temp\1\logdir.2011-04-08_17-13\oam.log
    Oracle Adaptive Access Manager          Success     C:\Documents and Settings\Administrator\Local Settings\Temp\1\logdir.2011-04-08_17-13\oaam.log
    Oracle Adaptive Access Manager(Partition Support)          Success     C:\Documents and Settings\Administrator\Local Settings\Temp\1\logdir.2011-04-08_17-13\oaam_partn.log
    Authorization Policy Manager          Success     C:\Documents and Settings\Administrator\Local Settings\Temp\1\logdir.2011-04-08_17-13\apm.log
    SOA Infrastructure          Success     C:\Documents and Settings\Administrator\Local Settings\Temp\1\logdir.2011-04-08_17-13\soainfra.log
    User Messaging Service          Success     C:\Documents and Settings\Administrator\Local Settings\Temp\1\logdir.2011-04-08_17-13\orasdpm.log
    I've searched through the OTN and Internet but did not found any solution.
    Please help me.
    Any advises will be appreciated.

    I've tried to run RCU 11.1.1.3.3 on Ubuntu 32-bit and OIM schema creation failed again but with another error RCU-1636 Failed to start PL/SQL engine.
    After that I found RCU 11.1.1.4, downladed it and this version created all schemas successfully.
    Hope all other components will be ok with new version of RCU

  • Problems with PL/SQL packages

    Hello,
    I face the following problem with PL/SQL stored procedures. The Oracle
    version is 8.0.5 on Windows NT 4. The PL/SQL package has a set of procedures and functions.
    The main procedure of the PL/SQL package is triggered from VC++ executable. If for some reason,
    an exception is caught in the stored procedure (like no_data_found
    exception), then the following problem occurs.
    If we try to trigger the stored procedure again through the VC++ executable,
    the variables in the stored procedures have the values as in the previous
    execution. They are not getting initialised. (The same database connection
    is used in VC++ executable).
    Currently, only if a new connection to the database is used , the problem is
    solved.
    Also, change in the input parameters of the procedure is not reflected, once the procedure fails because of any exception. Only the input which was given during the time of execution when the procedure failed,is considered.
    What could be the reason for this problem and how can this be corrected?
    Please send in your suggestions.
    Thanks and Regards,
    Ramya Priya
    null

    Hi Keith,
    I am connecting to the database as the package owner..
    I have noticed earlier that I have problems when capturing triggers also.. The content of one large trigger contains 36371 characters and when capturing it from DB, the content was truncated to 28020 characters in Designer.
    Our ideas with capturing the DB packages/procedures were to use the Designer as version control system.
    We wanted to have all objects used in a project in Designer.. entities, tables, triggers, packages, procedures, Forms files, etc. in order to make a configuration for a project release.
    Thank you,
    Claudia

  • DBMS_SQL.PARSE with PL/SQL types

    Hi
    I need to use DBMS_SQL.PARSE with PL/SQL types defined in a package.
    I tried with a type record in a declare ..begin..end  script but I got an error ..(on second parameter):
    DBMS_SQL.PARSE(cursor_name, XXXXX, DBMS_SQL.NATIVE);
    It's possible?
    WIth SQL types defined at schema level it's works (es. Objects types) .
    If it's not possible, how can I resolve?
    Stefano

    Again, please post what XXXXX is. In order to use package declared types:
    SQL> create or replace
      2    package pkg1
      3      is
      4        type emp_rec
      5          is record (
      6                     empno number,
      7                     ename varchar2(10)
      8                    );
      9        type emp_rec_tbl
    10          is
    11            table of emp_rec
    12            index by pls_integer;
    13        g_emp_rec_tbl pkg1.emp_rec_tbl;
    14  end;
    15  /
    Package created.
    SQL> declare
      2      v_cur integer;
      3      v_sql varchar2(1000);
      4  begin
      5      v_cur := dbms_sql.open_cursor(2);
      6      v_sql := 'begin
      7                    select  empno,
      8                            ename
      9                      bulk  collect
    10                       into  pkg1.g_emp_rec_tbl
    11                       from  emp
    12                       where job = ''CLERK'';
    13                end;';
    14      dbms_sql.parse(
    15                     v_cur,
    16                     v_sql,
    17                      dbms_sql.native
    18                     );
    19  end;
    20  /
    PL/SQL procedure successfully completed.
    SQL>
    SY.

  • Connecting to HR schema in Oracle SQL Developer

    I have installed Oracle sql developer 3.2 version.And I dont have oracle client installed.
    Can I connect to HR schema with this set up.
    If yes ,please suggest me the credentials.
    Thanks.

    You do not need any oracle client installed, you do however need a database somewhere to connect to.
    The credentials you require would be for this database, and so we cannot help you get them.
    If you have a DBA that manages your databases ask him for the credentials.
    If you are on your own and just want to try out something, your best option is to install an Oracle XE on your own system, then you can connect with the defaults SQLDeveloper already has when creating a new connection (the system password will be set during database installation so note it down), then you can play with your newly installed database.

  • Problem with NW04s SR2 installation with MS SQL Server 2000 SP4

    I’m struggling with the NW04s installation with MS SQL Server 2000.
    The installation stops at the step “Create/modify database schema SAPJ2EDB”.
    The following error/info from log file,
    INFO       2007-06-06 12:02:33 [iaxxgenimp.cpp:632]
               showDialog()
    Execute step doConfiguration of component |NW_Onehost|ind|ind|ind|ind|0|0|NW_Onehost_System|ind|ind|ind|ind|1|0|NW_CreateDBandLoad|ind|ind|ind|ind|10|0|NW_CreateDB|ind|ind|ind|ind|0|0|NW_MSS_DB|ind|ind|ind|ind|2|0|NW_MSS_SRVCFG|ind|ind|ind|ind|6|0.
    INFO       2007-06-06 12:02:35 [iaxxgenimp.cpp:632]
               showDialog()
    Execute step doTempdb of component |NW_Onehost|ind|ind|ind|ind|0|0|NW_Onehost_System|ind|ind|ind|ind|1|0|NW_CreateDBandLoad|ind|ind|ind|ind|10|0|NW_CreateDB|ind|ind|ind|ind|0|0|NW_MSS_DB|ind|ind|ind|ind|2|0|MssDowntimeConfig|ind|ind|ind|ind|7|0.
    INFO       2007-06-06 12:02:36 [iaxxgenimp.cpp:632]
               showDialog()
    Execute step doSwitch of component |NW_Onehost|ind|ind|ind|ind|0|0|NW_Onehost_System|ind|ind|ind|ind|1|0|NW_CreateDBandLoad|ind|ind|ind|ind|10|0|NW_CreateDB|ind|ind|ind|ind|0|0|NW_MSS_DB|ind|ind|ind|ind|2|0|MssDowntimeConfig|ind|ind|ind|ind|7|0.
    INFO       2007-06-06 12:02:36 [iaxxgenimp.cpp:632]
               showDialog()
    Execute step doTempDBAnalyze of component |NW_Onehost|ind|ind|ind|ind|0|0|NW_Onehost_System|ind|ind|ind|ind|1|0|NW_CreateDBandLoad|ind|ind|ind|ind|10|0|NW_CreateDB|ind|ind|ind|ind|0|0|NW_MSS_DB|ind|ind|ind|ind|2|0|MssDowntimeConfig|ind|ind|ind|ind|7|0.
    INFO       2007-06-06 12:02:37 [iaxxgenimp.cpp:632]
               showDialog()
    Execute step doTempDBBeforeRestart of component |NW_Onehost|ind|ind|ind|ind|0|0|NW_Onehost_System|ind|ind|ind|ind|1|0|NW_CreateDBandLoad|ind|ind|ind|ind|10|0|NW_CreateDB|ind|ind|ind|ind|0|0|NW_MSS_DB|ind|ind|ind|ind|2|0|MssDowntimeConfig|ind|ind|ind|ind|7|0.
    INFO       2007-06-06 12:02:38 [iaxxgenimp.cpp:632]
               showDialog()
    Execute step doRestartServer of component |NW_Onehost|ind|ind|ind|ind|0|0|NW_Onehost_System|ind|ind|ind|ind|1|0|NW_CreateDBandLoad|ind|ind|ind|ind|10|0|NW_CreateDB|ind|ind|ind|ind|0|0|NW_MSS_DB|ind|ind|ind|ind|2|0|MssDowntimeConfig|ind|ind|ind|ind|7|0.
    INFO       2007-06-06 12:02:58 [ianxbservi.cpp:697]
               CIaNtServices::stop(const map<iastring,iastring>&)
    The service 'MSSQLSERVER' stopped successfully on host 'GBCZ672C'.
    INFO       2007-06-06 12:03:10 [ianxbservi.cpp:632]
               CIaNtServices::start(const map<iastring,iastring>&)
    The service 'MSSQLSERVER' started successfully on host 'GBCZ672C'.
    INFO       2007-06-06 12:03:21 [ianxbservi.cpp:632]
               CIaNtServices::start(const map<iastring,iastring>&)
    The service 'SQLSERVERAGENT' started successfully on host 'GBCZ672C'.
    INFO       2007-06-06 12:03:21 [iaxxgenimp.cpp:632]
               showDialog()
    Execute step doTempDBAfterRestart of component |NW_Onehost|ind|ind|ind|ind|0|0|NW_Onehost_System|ind|ind|ind|ind|1|0|NW_CreateDBandLoad|ind|ind|ind|ind|10|0|NW_CreateDB|ind|ind|ind|ind|0|0|NW_MSS_DB|ind|ind|ind|ind|2|0|MssDowntimeConfig|ind|ind|ind|ind|7|0.
    INFO       2007-06-06 12:03:22 [iaxxgenimp.cpp:632]
               showDialog()
    Execute step doChangeTempSetNewSize of component |NW_Onehost|ind|ind|ind|ind|0|0|NW_Onehost_System|ind|ind|ind|ind|1|0|NW_CreateDBandLoad|ind|ind|ind|ind|10|0|NW_CreateDB|ind|ind|ind|ind|0|0|NW_MSS_DB|ind|ind|ind|ind|2|0|MssDowntimeConfig|ind|ind|ind|ind|7|0.
    INFO       2007-06-06 12:03:39 [iaxxgenimp.cpp:632]
               showDialog()
    Execute step CheckParameters of component |NW_Onehost|ind|ind|ind|ind|0|0|NW_Onehost_System|ind|ind|ind|ind|1|0|NW_CreateDBandLoad|ind|ind|ind|ind|10|0|NW_CreateDB|ind|ind|ind|ind|0|0|NW_MSS_DB|ind|ind|ind|ind|2|0|MssSchemaCreate|ind|ind|ind|ind|9|0.
    INFO       2007-06-06 12:03:39 [iaxxgenimp.cpp:632]
               showDialog()
    Execute step CreateDirectories of component |NW_Onehost|ind|ind|ind|ind|0|0|NW_Onehost_System|ind|ind|ind|ind|1|0|NW_CreateDBandLoad|ind|ind|ind|ind|10|0|NW_CreateDB|ind|ind|ind|ind|0|0|NW_MSS_DB|ind|ind|ind|ind|2|0|MssSchemaCreate|ind|ind|ind|ind|9|0.
    INFO       2007-06-06 12:03:40 [iaxxgenimp.cpp:632]
               showDialog()
    Execute step CreateDatabase of component |NW_Onehost|ind|ind|ind|ind|0|0|NW_Onehost_System|ind|ind|ind|ind|1|0|NW_CreateDBandLoad|ind|ind|ind|ind|10|0|NW_CreateDB|ind|ind|ind|ind|0|0|NW_MSS_DB|ind|ind|ind|ind|2|0|MssSchemaCreate|ind|ind|ind|ind|9|0.
    ERROR      2007-06-06 12:03:40 [iaxxgenimp.cpp:731]
               showDialog()
    FCO-00011  The step CreateDatabase with step key |NW_Onehost|ind|ind|ind|ind|0|0|NW_Onehost_System|ind|ind|ind|ind|1|0|NW_CreateDBandLoad|ind|ind|ind|ind|10|0|NW_CreateDB|ind|ind|ind|ind|0|0|NW_MSS_DB|ind|ind|ind|ind|2|0|MssSchemaCreate|ind|ind|ind|ind|9|0|CreateDatabase was executed with status ERROR .
    ERROR      2007-06-06 12:03:40
               lib=iamodmssql module=CIaNtMssDmo
    MDB-05053  Errors when executing sql command: <p nr="0"/> If this message is displayed as a warning - it can be ignored. If this is an error - call your SAP support.
    INFO       2007-06-06 12:04:04 [iaxxgenimp.cpp:774]
               showDialog()
    An error occured and the user decided to retry the current step: "|NW_Onehost|ind|ind|ind|ind|0|0|NW_Onehost_System|ind|ind|ind|ind|1|0|NW_CreateDBandLoad|ind|ind|ind|ind|10|0|NW_CreateDB|ind|ind|ind|ind|0|0|NW_MSS_DB|ind|ind|ind|ind|2|0|MssSchemaCreate|ind|ind|ind|ind|9|0|CreateDatabase".
    ERROR      2007-06-06 12:04:05 [iaxxgenimp.cpp:731]
               showDialog()
    FCO-00011  The step CreateDatabase with step key |NW_Onehost|ind|ind|ind|ind|0|0|NW_Onehost_System|ind|ind|ind|ind|1|0|NW_CreateDBandLoad|ind|ind|ind|ind|10|0|NW_CreateDB|ind|ind|ind|ind|0|0|NW_MSS_DB|ind|ind|ind|ind|2|0|MssSchemaCreate|ind|ind|ind|ind|9|0|CreateDatabase was executed with status ERROR .
    Please let me know if you can help or if there is any other way around.
    Many Thanks in advance.
    Ritin Jain

    Hi All,
    I was not able to solve the problem with MS SQL 2000, but I was able to resolve the issue with MS SQL 2005.
    You have to chhose the following settings while instalation,
    Service Account - Select one of the following options:
    1) Use the built-in System account for each service and choose Local system or Network Service.
    2) Use a domain user account, and enter the user name and password.
    Under Start services at the end of setup make sure that SQL Server and SQL Server Agent are selected.
    Authentication Mode      
    1) Select Mixed Mode (Windows Authentication and SQL Server Authentication).
    This mode is required for a Java or ABAP+Java system.
    If you choose this mode, you have to set the password for the sa login.
    Note: The password for the sa login must comply with the Windows password policy.
    Collation Settings      
    1) Select SQL collations (used for compatibility with previous versions of SQL Server).
    2) From the drop-down list select Binary order based on code point comparison, for use with the 850 (Multilingual) Character Set.
    I hope this helps!

  • How to create CATALOG with MS SQL Server?

    Connection class has getCatalog(strCatalog) method. In order to use it, we must create CATALOG in Database?
    How to create CATALOG with MS SQL Server?
    Help me, please!!!

    You do not create these for any database, this is part of the Connection metadata.
    The Catalog is the third level of table-like database object qualification as in "Catalog.Schema.Table". For SQLServer the qualification scheme is "Database.Owner.Table" and I would be surprised if they reported anything for the current connections getCatalog() method call.
    What many people do is avoid table qualification altogether by setting the connection's context in a database proprietary manner and then keeping the SQL as clean as possible. For many ODBC and JDBC drivers this can be set in the configuration. For MS SQLServer you can also execute a "USE dbname" statement on the connection to avoid table qualification.

  • How can I use a mySQL database schema with numeric auto increment primary key instead of GUID?

    Hello!
    I'm using the TestStand "MySQL Insert (NI)" database schema with GUID as primary key. So everything works fine.
    But I prever using numeric values as primary key, because the database is in conjunction with another database which uses numeric values as primary key.
    Is this possible?
    Has anyone an idea how I can modify the "Generic Recordset (NI)" for use with MySQL?
    Thanks!
    Configuration:
    Microsoft Windows XP
    TestStand 3.1
    MySQL 4.1.12a
    MySQL ODBC 3.51 Driver
    Brosig

    Adam -
    The TestStand Database Logging feature does not allow you to run a separate SQL command after executing the command for a statement(table), so I do not think that you can use an auto incrementing column for the tables. There is just no way to get it back in a generic way. One option that I tried is something similar to the Oracle schema where you call a store procedure to return a sequence ID for each record that you want to add.
    So you would have to create the following sequence table in MySQL:
    CREATE TABLE sequence (id INT NOT NULL);
    INSERT INTO sequence VALUES (0);
    Then create a stored procedure as shown below that will increment the sequence value and return it in a recordset:
    CREATE PROCEDURE `getseqid`()
    BEGIN
            UPDATE sequence SET id=LAST_INSERT_ID(id+1);
            SELECT LAST_INSERT_ID();
    END
    Then update the MySQL tables to use INT primary and foreign key values, so the TestStand MySQL SQL file to create all tables would have text like this:
    CREATE TABLE UUT_RESULT
     ID    INT  PRIMARY KEY,
    ~
    CREATE TABLE STEP_RESULT
     ID    INT  PRIMARY KEY,
     UUT_RESULT   INT  NOT NULL,
    ~
    Then update the schema primary and foreign key columns in the TestStand Database Options dialog box to be INT to match the table. For the primary key columns, you will have to set the Primary Key Type to "Get Value from Recordset" and set the Primary Key Command Text to "call getseqid()". This will call the stored procedure to determine the next value to use as the ID value.
    Hope this helps...
    Scott Richardson
    National Instruments

  • Rules with PL/SQL.

    Hello, I created a scheme with the following tables:
    Fileds.
    Docs. (Forms)
    Customers.
    Declarations.
    This is a database for state taxes in Ecuador, the government has defined a series of forms for each type of tax-class.
    Each form contains fields, these fields are common to most forms, but the same for each form field is validated on the basics of a different Condition, for example:
    Form 104A and 104B containing the 208 field, in the form 104A the condition is <500 and the 104B the condition is > 500.
    How to implement these conditions using PL/SQL?
    The DDL my schedule is:
    Create table Fields
    Field_id number (3) not null primary key,
    Description varchar2 (50) not null
    Create table Docs
    Doc_cod varchar2 (5),
    Field_id number (3),
    Rules varchar2 (25),
    Dosc_pk primary key constraint (doc_cod, field_id)
    Fields_fk foreign key constraint (field_id)
    References fields (field_cod) on delete restrict
    Data in the DOCS:
    DOC_COD........FILED_ID...........RULES
    104A .................208.................<500
    104B..................208................ >500
    Roberto.

    Dynamically applying rules itself needs some rules about the format of a rule. Let's keep it simple - we say that each rule must be a boolean condition, and have a single parameter. We use a single function to check a rule (it should be packaged and polymorphism used to cater for different data types).
    This can then be implemented as follows:
    SQL> create table rules( rule_id number, rule varchar2(4000) );
    Table created.
    SQL>
    SQL> insert into rules values( 1, ':0 between 0 and 1000');
    1 row created.
    SQL> insert into rules values( 2, 'length(:0) < 6' );
    1 row created.
    SQL> commit;
    Commit complete.
    SQL>
    SQL>
    SQL> create or replace function ApplyRule( ruleID number, value varchar2 ) return boolean is
    2 ruleCondition varchar2(4000);
    3 plsql varchar2(32672);
    4 boolNum integer;
    5 begin
    6 select rule into ruleCondition from rules where rule_id = ruleID;
    7
    8 plsql := 'begin
    9 if '||ruleCondition||' then
    10 :1 := 0; -- TRUE
    11 else
    12 :1 := 1; -- FALSE
    13 end if;
    14 end;';
    15
    16 execute immediate plsql using
    17 IN value,
    18 OUT boolNum;
    19
    20 return( boolNum = 0 );
    21 end;
    22 /
    Function created.
    SQL>
    SQL>
    SQL> begin
    2 -- W = dbms_output.put_line
    3 if ApplyRule(1, 50 ) then
    4 W( 'Rule 1 is TRUE using value 50' );
    5 else
    6 W( 'Rule 1 is FALSE using value 50' );
    7 end if;
    8
    9 if ApplyRule(2, 'This is a test') then
    10 W( 'Rule 2 is TRUE using "This is a test"' );
    11 else
    12 W( 'Rule 2 is FALSE using "This is a test"' );
    13 end if;
    14 end;
    15 /
    Rule 1 is TRUE using value 50
    Rule 2 is FALSE using "This is a test"
    PL/SQL procedure successfully completed.
    SQL>The complexity of this can fairly easily be increased using DBMS_SQL instead. With DBMS_SQL you can inspect the rule for bind variables and the names (or numbers) of the bind variables. The caller can supply you with a name-value list instead of a single value.
    You can now dynamically bind the bind variables using the name-values supplied.
    The rule itself can be made into a PL/SQL function body that has to return TRUE or FALSE. This allows for very complex dynamic rule definitions. The dynamic PL/SQL block constructed in this case has to look something like follows:
    declare
    function DynamicFunction return boolean is
    begin
    <<insert dynamic rule here>>
    end;
    begin
    if DynamicFunction then
    :RuleResult := 0;
    else
    :RuleResult :- 1;
    end if;
    end;Of course, it needs to be noted that not safe guarding the rules tables, can allow hackers to inject very dangerous PL/SQL code into your system. In the same vein, each dynamic rule needs to be properly and fully tested after being added to the rules table to ensure it behaves as expected.

  • Clone schema with current db objects and data.

    Hi Cloud expert,
    I need feature to clone existing schema and create new schema with schema as a service. I created profile that export schema with database objects and data. I created template that use the profile created. While provisioning the template I found all the database objects with template. Now I need a solution to clone the current schema with all the objects at current time. The way I tried contains all the objects that were exists while exporting the schema. I need the solution to clone schema so that it will contains all the objects and data right now.
    While reading document I found snapclone but that is not the exactly the solution I need. I simply need to clone schema with latest db object and data with Self Service portal.
    Thank You in advance.
    Dilli R. Maharjan

    One option is to run BACKUP/RESTORE, once you have restored you run:
    SELECT 'ALTER TABLE ' + quotename(s.name) + '.' + quotename(o.name) +
           ' DISABLE TRIGGER ALL '
    FROM   sys.schemas s
    JOIN   sys.objects o ON o.schema_id = s.schema_id
    WHERE  o.type = 'U'
      AND  EXISTS (SELECT *
                   FROM   sys.triggers tr
                   WHERE  tr.parent_id = o.object_id)
    Copy result and paste into a query window do to run. Next:
    SELECT 'DELETE ' + quotename(s.name) + '.' + quotename(o.name)
    FROM   sys.schemas s
    JOIN   sys.objects o ON o.schema_id = s.schema_id
    WHERE  o.type = 'U'
    Run this result until you don't get any more errors.
    Run the first query again, but change DISABLE to ENABLE.
    This is more long-winding than scripting, particularly if you have lots of data. But you know that you will not make any changes whatsoever to the schema.
    The scripting in SSMS generally does it right, I believe, but some items are not scripted by default. If you run BACKUP/RESTORE, you know that you get a faithful copy.
    Of course, the best way is to keep your code under version control and take the version control system as your ultimate truth.
    Erland Sommarskog, SQL Server MVP, [email protected]

Maybe you are looking for

  • Looking for SQL Solution to Very Unique Problem

    Hello, New here, thanks. I have what I think is an interesting problem. I really don't want to post it because the background and explanation is rather lengthy. It has to do with one table that holds some general info; there is a unique numeric prima

  • Planning for iMac i7

    I'm planning for my move from a G4 PowerMac running Tiger to a 27" iMac and need help with some questions: Does Time Machine do the same job as Carbon Copy Cloner which I now use? Is it reliable? Should I partition the 1TB HD? Can't get used to that

  • Trying to retrieve old emails

    I'm now faced with a court case and am desperately trying to find out if I can get a hold of my old emails that I've both sent and received. They have been deleted but I'm hoping someone knows how to find out if they have "really" been deleted or are

  • Doubt On Fm FI_OPT_ARCHIVE_CORRESPONDENCE on Additional correspondence types

    I had copied the function module FI_OPT_ARCHIVE_CORRESPONDENCE to a custom function module and that is placed in the BTE  2310  and this function module has contains the correspondence types SAP01 (payment notificiation) and SAP08 (account statement)

  • Help with formula that is dependent on checkboxes

    Hello - I can't figure out this one for the life of me... In column A there is a list of tasks, column B has check boxes for each task. Column C has the starting day number of each activity, and column D has the duration of each activity. I'd like to