Troubles creating table definition in new repositiory

hi there,
we installed a designer 6i repositiory on a linux 8.1.7.2 ee server database, all worked fine. installation of the same repositiory version under on a windows 2000 pro system with a 8.1.7.4 ee server database works fine, too. but when trying to create objects in the windows repos we keep getting errors concerning non existing repository objects. example: attempting to create a relational table definition fail with the following stack trace:
Message
RME-02105: Oracle error occurred...
ORA-06550: line 2, column 11:
PLS-00201: identifier 'CIOTABLE_DEFINITION.DATA' must be declared
ORA-06550: line 2, column 11:
PL/SQL: Item ignored
ORA-06550: line 9, column 3:
PLS-00320: the declaration of the type of this expression is incomplete or malformed
ORA-06550: line 9, column 3:
PL/SQL: Statement ignored
ORA-06550: line 10, column 3:
PLS-00320: the declaration of the type of this expression is incomplete or malformed
ORA-06550: line 10, column 3:
PL/SQL: Statement ignored
ORA-06550: line 11, column 3:
PLS-00320: the declaration of the type of this expression is incomplete or malformed
ORA-06550: line 11, column 3:
PL/SQL: Statement ignored
ORA-06550: line 12, column 3:
PLS-00320: the declaration of the type of this expression is incomplete or malformed
ORA-06550: line 12, column 3:
PL/SQL: Statement ignored
ORA-06550: line 13, column 3:
PLS-00320: the declaration of the type of this expression is incomplete or malformed
ORA-06550: line 13, column 3:
PL/SQL: Statement ignored
ORA-06550: line 14, col
Message
RME-02124: Failed to execute SQL statement: declare
pl1_el0 CIOTABLE_DEFINITION.data;
utility varchar2(3);
curr_el integer;
begin
savepoint rm_dispatch;
rmmes.clear;
curr_el := 0;
pl1_el0.i.INDEX_ONLY_FLAG := true;
pl1_el0.v.INDEX_ONLY_FLAG := :p2_el0;
pl1_el0.i.COLUMN_PREFIX := true;
pl1_el0.v.COLUMN_PREFIX := :p3_el0;
pl1_el0.i.TYPES := true;
pl1_el0.v.TYPES := :p4_el0;
pl1_el0.i.IRID := true;
pl1_el0.v.IRID := :p5_el0;
pl1_el0.i.IVID := true;
pl1_el0.v.IVID := :p6_el0;
pl1_el0.i.NUMBER_OF_TIMES_MODIFIED := true;
pl1_el0.v.NUMBER_OF_TIMES_MODIFIED := :p7_el0;
pl1_el0.i.ALIAS := true;
pl1_el0.v.ALIAS := :p8_el0;
pl1_el0.i.ID := true;
pl1_el0.v.ID := :p9_el0;
pl1_el0.i.NAME := true;
pl1_el0.v.NAME := :p10_el0;
pl1_el0.i.JOURNAL_LOCATION := true;
pl1_el0.v.JOURNAL_LOCATION := :p11_el0;
pl1_el0.i.DISPLAY_TITLE := true;
pl1_el0.v.DISPLAY_TITLE := :p12_el0;
CIOTABLE_DEFINITION.INS(:p1_el0,pl1_el0);
:errcnt := 0;
exception when others then
rmmes.get_error_state(utility,:excode);
rmmes.get_product(utility,:exprod);
:exutil := utility;
:errcnt := rmmes.getsize;
:sqlcod := SQLCODE;
:sqlmsg := SQLERRM;
:currel := curr_el;
rollback to savepoint rm_dispatch;
end;
Message
RME-00222: Failed to dispatch operation to Repository
any help appreciated,
greetings,
friedrich.

Hi,
Actually the errors thrown here are not exactly non-existing database objects.These are Table and API definitions of the repository which are used when you create Database objects.
You can try by checking if there are any invalid objects in the repository(Compile them first if there are any)and can give it a shot after running a full reconcile of the repository.
If still the problem persists, can you give the details about which Designer Version you are using.
Thanks
Vishal Jain

Similar Messages

  • Automatically create table definitions

    Is there a utility or tool that will automatically take an XML document and create a table or object type in the database without having to manually doing it?
    --JM                                                                                                                                                                                                                                                                                                                                       

    It depends on how you want to store the XML. If as a CLOB then the Transviewer Beans come with such a sample application. On the other hand if you want it stored as only data across tables, then there is none as until we have an XML Schema standard there is no standard way to specify the datatypes to be used.
    Oracle XML Team

  • SQL error #3115 during Create table

    As a new user to this AIR problem, I am using "adl
    application.xml" to start up testing.
    I am using disk file based table. Disk file is wiped out each
    time before startup this application.
    Following sql failed all the time. Is there anything wrong
    with adl or any cached data need to empty out prior to create
    table?
    createTables : function(callback) {
    // create tables
    var stmt = new air.SQLStatement();
    stmt.sqlConnection = this.sqlConnection;
    stmt.text = "CREATE TABLE IF NOT EXISTS Contacts ( " +
    "id INTEGER PRIMARY KEY AUTOINCREMENT, " +
    "manufacturer VARCHAR(32), " +
    "model VARCHAR(32), " +
    "sn VARCHAR(32), " +
    "orderNumber VARCHAR(64), " +
    "type VARCHAR(256), " +
    "shipping VARCHAR(32), " +
    "check VARCHAR(32), " +
    "notes VARCHAR, " +
    "photo BLOB)";
    var success = function(event) {
    if (callback) callback(true);
    var failure = function(event) {
    runtime.trace("CREATE TABLE error:", event.error);
    runtime.trace("event.error.code:", event.error.code);
    runtime.trace("event.error.message:", event.error.message);
    if (callback) callback(false, event.text);
    stmt.addEventListener(air.SQLErrorEvent.ERROR, failure);
    stmt.addEventListener(air.SQLEvent.RESULT, success);
    stmt.execute();
    D810# adl application.xml
    Loaded
    Loaded
    Loaded
    Loaded
    Loaded
    Loaded
    Loaded
    creating database D:\blackbooksafe\data\database.db
    CREATE TABLE error: SQLError: 'Error #3115: SQL Error.',
    details:'near 'VARCHAR'
    : syntax error', operation:'execute', detailID:'2003'
    event.error.code: undefined
    event.error.message: Error #3115: SQL Error.
    Cannot create database: Error #3115: SQL Error.
    D810#

    Hi Dimitri.
    If you click on the tables node before you right click, does this work for you? Apple's focus is different to windows and you need to click on the component you wish to get a menu on on OSX
    Let me know.
    B

  • Trouble creating new app

    I am new to Planning and having trouble creating a new app. I'm working w/ the Classic App Wizard in Workspace. I have created a 'hypuser' schema on Oracle 10g and and I use this in the 'configure database' stage of the Planning config. I have created/activated an instance 'inst1', and then in 'data source configuration' I have created a new datasource called 'dsn1' and have configured it as follows. For Relational Storage Config I have:
    Server: TestServer
    Port: 1521
    Product: PLANNING
    Database: xe
    User: hypuser
    Password: password
    For Essbase Server Info, I have:
    Server: TestServer
    User: hypuser
    Password: password
    In the Classic App Wizard, I select 'Create Application' and see that my data source name is pre-populated in the Select tab. I go on to choose a name for my app, description etc. and choose 'Planning' project from the Shared Services Project list. I then choose the instance that I had configured/activated earlier and finally check the Sample application checkbox. I feel I have followed all the correct steps, so I click 'finish', and after 5 minutes I get a totally nondescript error message: *"An error occurred while processing this page. Please check the log for details"*
    Which log is this error msg referring to? I have searched thru my C:\Hyperion\Planning directory and don't see any log files. More importantly, I can't detect where I'm making a mistake in the overall Planning database/datasource config and app creation process? All my other Hyperion apps, Smartview, Financial Studio, Web Analysis etc are working great with my Oracle database, so I can't imagine that it's a database issue. But I don't know what else it can be! I have plenty of cpu/memory resources on my Window 2003 server machine.. (fyi).
    Appreciate any advise on how to diagnose/solve this issue.
    thanks,
    Akshay

    Hi John,
    I've posted the following log (below) from the command window after running "startHyperionPlanning.bat" and going thru the create app process in Workspace. The log seems to point to a few different things that I have underlined.
    1. It keeps referring to problems with JDBC connection. What does this mean in the context of Planning ?install/config?
    2. It says "cannot set catalog name to: xe" Should I have used "+oracle: xe+" during the Repository config stage as the SID? I've used +'xe'+ in other places with no problems.
    3. It also says that 'No object was successfully created...' because of either OLAP server or database not running. I've double-checked and both my essbase server and oracle db are working fine and can be accessed by other apps.
    What does all of this suggest is the root cause of the problem. Should I go into oracle and manually delete all tables from the 'hypuser' schema? I'm a little skeptical about this, because during the database config I always choose the 'drop tables...' option.
    Anyways, appreciate your continued help on this.
    thanks,
    Akshay
    LOG:
    *Unable to create JDBC connection. java.sql.SQLException: [Hyperion][Oracle JDBC*
    *Driver][Oracle]ORA-12519 The listener could not find any available service handl*
    ers that are appropriate for the client connection. One possible cause for this
    error is that the server was not configured for the specified server type (share
    d/dedicated).
    Unable to set Planning's Oracle connection numeric character to '.'. java.lang.N
    ullPointerException
    Can not set database catalog name, skipping set of catalog name: xe_
    *Unable to create JDBC connection. java.sql.SQLException: [Hyperion][Oracle JDBC*
    *Driver][Oracle]ORA-12519 The listener could not find any available service handl*
    ers that are appropriate for the client connection. One possible cause for this
    error is that the server was not configured for the specified server type (share
    d/dedicated).
    Unable to set Planning's Oracle connection numeric character to '.'. java.lang.N
    ullPointerException
    Can not set database catalog name, skipping set of catalog name: xe*
    *Unable to create JDBC connection. java.sql.SQLException: [Hyperion][Oracle JDBC*
    *Driver][Oracle]ORA-12519 The listener could not find any available service handl*
    ers that are appropriate for the client connection_. One possible cause for this
    error is that the server was not configured for the specified server type (share
    d/dedicated).
    Unable to set Planning's Oracle connection numeric character to '.'. java.lang.N
    ullPointerException
    Can not set database catalog name, skipping set of catalog name: xe
    Can not get JDBC connection.
    *java.lang.Exception: No object were successfully created. This can be caused by*
    any of the following: The OLAP Server is not running, The DBMS is not running, t_
    he DBMS is running on a different machine that the one specified, the name and p_
    assword provided were incorrect._
    at com.hyperion.planning.HspPool.getObject(Unknown Source)
    at com.hyperion.planning.sql.HspSQLImpl.getConnection(Unknown Source)
    at com.hyperion.planning.sql.JDBCCacheLoader.loadObjects(Unknown Source)
    at com.hyperion.planning.sql.GenericCache.loadCache(Unknown Source)
    at com.hyperion.planning.sql.GenericCache.getCache(Unknown Source)
    at com.hyperion.planning.sql.GenericCache.getUnfilteredCache(Unknown Sou
    rce)
    at com.hyperion.planning.HspJSImpl.loadSystemCfg(Unknown Source)
    at com.hyperion.planning.HspJSImpl.<init>(Unknown Source)
    at com.hyperion.planning.HspJSHomeImpl.createHspJS(Unknown Source)
    at com.hyperion.planning.HspJSHomeImpl.getHspJSByApp(Unknown Source)
    at com.hyperion.planning.HyperionPlanningBean.Login(Unknown Source)
    at com.hyperion.planning.appdeploy.HspManageAppSession.deleteApplication
    *(Unknown Source)*
    at com.hyperion.planning.appdeploy.HspManageAppSession.createApplication
    *(Unknown Source)*
    at HspCreateApp.Handle(Unknown Source)
    at HspCreateApp.doPost(Unknown Source)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
    icationFilterChain.java:237)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
    ilterChain.java:157)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
    alve.java:214)
    at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValv
    eContext.java:104)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
    a:520)
    at org.apache.catalina.core.StandardContextValve.invokeInternal(Standard
    ContextValve.java:198)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
    alve.java:152)
    at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValv
    eContext.java:104)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
    a:520)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
    ava:137)
    at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValv
    eContext.java:104)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
    ava:118)
    at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValv
    eContext.java:102)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
    a:520)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
    ve.java:109)
    at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValv
    eContext.java:104)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
    a:520)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
    at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:16
    *0)*
    at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:300)
    at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:374)
    at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:743)
    at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.ja
    va:675)
    at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:866)
    at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadP
    ool.java:683)
    at java.lang.Thread.run(Unknown Source)
    Attempted to release a null connection
    java.lang.NullPointerException: JDBCCacheLoader.loadObjects(): jdbc connection w
    as null.
    at com.hyperion.planning.sql.JDBCCacheLoader.loadObjects(Unknown Source)
    at com.hyperion.planning.sql.GenericCache.loadCache(Unknown Source)
    at com.hyperion.planning.sql.GenericCache.getCache(Unknown Source)
    at com.hyperion.planning.sql.GenericCache.getUnfilteredCache(Unknown Sou
    rce)
    at com.hyperion.planning.HspJSImpl.loadSystemCfg(Unknown Source)
    at com.hyperion.planning.HspJSImpl.<init>(Unknown Source)
    at com.hyperion.planning.HspJSHomeImpl.createHspJS(Unknown Source)
    at com.hyperion.planning.HspJSHomeImpl.getHspJSByApp(Unknown Source)
    at com.hyperion.planning.HyperionPlanningBean.Login(Unknown Source)
    at com.hyperion.planning.appdeploy.HspManageAppSession.deleteApplication
    *(Unknown Source)*
    at com.hyperion.planning.appdeploy.HspManageAppSession.createApplication
    *(Unknown Source)*
    at HspCreateApp.Handle(Unknown Source)
    at HspCreateApp.doPost(Unknown Source)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
    icationFilterChain.java:237)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
    ilterChain.java:157)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
    alve.java:214)
    at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValv
    eContext.java:104)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
    a:520)
    at org.apache.catalina.core.StandardContextValve.invokeInternal(Standard
    ContextValve.java:198)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
    alve.java:152)
    at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValv
    eContext.java:104)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
    a:520)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
    ava:137)
    at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValv
    eContext.java:104)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
    ava:118)
    at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValv
    eContext.java:102)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
    a:520)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
    ve.java:109)
    at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValv
    eContext.java:104)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
    a:520)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
    at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:16
    *0)*
    at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:300)
    at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:374)
    at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:743)
    at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.ja
    va:675)
    at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:866)
    at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadP
    ool.java:683)
    at java.lang.Thread.run(Unknown Source)
    java.lang.RuntimeException: Error loading objects from data source: java.lang.Nu
    llPointerException: JDBCCacheLoader.loadObjects(): jdbc connection was null.
    at com.hyperion.planning.sql.GenericCache.loadCache(Unknown Source)
    at com.hyperion.planning.sql.GenericCache.getCache(Unknown Source)
    at com.hyperion.planning.sql.GenericCache.getUnfilteredCache(Unknown Sou
    rce)
    at com.hyperion.planning.HspJSImpl.loadSystemCfg(Unknown Source)
    at com.hyperion.planning.HspJSImpl.<init>(Unknown Source)
    at com.hyperion.planning.HspJSHomeImpl.createHspJS(Unknown Source)
    at com.hyperion.planning.HspJSHomeImpl.getHspJSByApp(Unknown Source)
    at com.hyperion.planning.HyperionPlanningBean.Login(Unknown Source)
    at com.hyperion.planning.appdeploy.HspManageAppSession.deleteApplication
    *(Unknown Source)*
    at com.hyperion.planning.appdeploy.HspManageAppSession.createApplication
    *(Unknown Source)*
    at HspCreateApp.Handle(Unknown Source)
    at HspCreateApp.doPost(Unknown Source)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
    icationFilterChain.java:237)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
    ilterChain.java:157)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
    alve.java:214)
    at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValv
    eContext.java:104)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
    a:520)
    at org.apache.catalina.core.StandardContextValve.invokeInternal(Standard
    ContextValve.java:198)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
    alve.java:152)
    at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValv
    eContext.java:104)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
    a:520)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
    ava:137)
    at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValv
    eContext.java:104)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
    ava:118)
    at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValv
    eContext.java:102)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
    a:520)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
    ve.java:109)
    at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValv
    eContext.java:104)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
    a:520)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
    at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:16
    *0)*
    at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:300)
    at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:374)
    at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:743)
    at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.ja
    va:675)
    at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:866)
    at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadP
    ool.java:683)
    at java.lang.Thread.run(Unknown Source)
    Error cleaning up application after failed creation attempt: java.lang.NullPoint
    erException
    java.lang.NullPointerException: Connection was null
    at com.hyperion.planning.sql.HspSQLImpl.executeQuery(Unknown Source)
    at com.hyperion.planning.sql.HspSQLImpl.executeQuery(Unknown Source)
    at com.hyperion.planning.sql.HspSQLImpl.executeQuery(Unknown Source)
    at com.hyperion.planning.HspManageApplication.addPeriodsToYearTotal(Unkn
    own Source)
    at com.hyperion.planning.appdeploy.HspManageAppSession.createApplication
    *(Unknown Source)*
    at HspCreateApp.Handle(Unknown Source)
    at HspCreateApp.doPost(Unknown Source)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
    icationFilterChain.java:237)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
    ilterChain.java:157)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
    alve.java:214)
    at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValv
    eContext.java:104)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
    a:520)
    at org.apache.catalina.core.StandardContextValve.invokeInternal(Standard
    ContextValve.java:198)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
    alve.java:152)
    at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValv
    eContext.java:104)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
    a:520)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
    ava:137)
    at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValv
    eContext.java:104)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
    ava:118)
    at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValv
    eContext.java:102)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
    a:520)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
    ve.java:109)
    at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValv
    eContext.java:104)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
    a:520)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
    at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:16
    *0)*
    at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:300)
    at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:374)
    at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:743)
    at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.ja
    va:675)
    at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:866)
    at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadP
    ool.java:683)
    at java.lang.Thread.run(Unknown Source)
    Can not get JDBC connection for SYS external changed actions.
    Can not get JDBC connection for SYS external changed actions.

  • Stored Procedure that creates a trigger on new tables

    I am trying to create a stored procedure that creates a trigger on new tables whenever the table is created.  The procedure should receive the new project table's name, and then create a dml trigger on that procedure.  When the procedure
    is run, I get an error "Incorrect syntax near keyword 'TRIGGER.'"  This is how my Stored Procedure looks in SQL Management Studio.  Any suggestions?
    USE [RIDB_DynamicDesign]
    GO
    /****** Object: StoredProcedure [dbo].[sp_CreateTriggerMarkLatest] Script Date: 11/08/2014 16:43:20 ******/
    SET ANSI_NULLS ON
    GO
    SET QUOTED_IDENTIFIER ON
    GO
    ALTER PROCEDURE [dbo].[sp_CreateTriggerMarkLatest] @ProjectTable nvarchar(128), @ItExists int OUTPUT
    AS
    DECLARE @SQL nvarchar(4000)
    DECLARE @MarkLatest nvarchar(30)
    DECLARE @LatTrue bit
    DECLARE @LatFalse bit
    SET @LatTrue = 'True'
    SET @LatFalse = 'False'
    SET @SQL = 'CREATE TRIGGER tr_MarkLatest ON ' + @ProjectTable + ' AFTER INSERT
    AS
    UPDATE ' + @ProjectTable + ' SET Latest = @LatFalse
    UPDATE ' + @ProjectTable + ' SET Latest = @LatTrue WHERE
    ID IN (SELECT ID FROM ' + @ProjectTable + ' p WHERE
    NOT EXISTS (SELECT 1 FROM ' + @ProjectTable + ' WHERE
    Name = p.Name AND Vers = p.Vers
    AND Date > p.Date))'
    EXEC sp_executesql @SQL, N'@ProjectTable nvarchar(128), @LatTrue bit, @LatFalse bit',
    @ProjectTable, @LatTrue, @LatFalse
    Gina

    First you have to debug the dynamic SQL string with a PRINT statement. I see some problems:
    CREATE PROCEDURE [dbo].[uspCreateTriggerMarkLatest] @ProjectTable nvarchar(128), @ItExists int OUTPUT
    AS BEGIN
    DECLARE @SQL nvarchar(4000)
    DECLARE @MarkLatest nvarchar(30)
    DECLARE @LatTrue bit
    DECLARE @LatFalse bit
    SET @LatTrue = 'True'
    SET @LatFalse = 'False'
    SET @SQL = 'CREATE TRIGGER tr_MarkLatest ON ' + @ProjectTable + ' AFTER INSERT
    AS
    UPDATE ' + @ProjectTable + ' SET Latest = @LatFalse
    UPDATE ' + @ProjectTable + ' SET Latest = @LatTrue WHERE
    ID IN (SELECT ID FROM ' + @ProjectTable + ' p WHERE
    NOT EXISTS (SELECT 1 FROM ' + @ProjectTable + ' WHERE
    Name = p.Name AND Vers = p.Vers
    AND Date > p.Date))'
    PRINT @SQL;
    -- EXEC sp_executesql @SQL, N'@ProjectTable nvarchar(128), @LatTrue bit, @LatFalse bit', @ProjectTable, @LatTrue, @LatFalse
    END
    GO
    DECLARE @ItExists int, @ProjectTable nvarchar(128) = N'TestTrigger';
    EXEC [dbo].[uspCreateTriggerMarkLatest] @ProjectTable, @ItExists OUTPUT
    CREATE TRIGGER tr_MarkLatest ON TestTrigger AFTER INSERT
    AS
    UPDATE TestTrigger SET Latest = @LatFalse
    UPDATE TestTrigger SET Latest = @LatTrue WHERE
    ID IN (SELECT ID FROM TestTrigger p WHERE
    NOT EXISTS (SELECT 1 FROM TestTrigger WHERE
    Name = p.Name AND Vers = p.Vers
    AND Date > p.Date))
    Kalman Toth Database & OLAP Architect
    SQL Server 2014 Database Design
    New Book / Kindle: Beginner Database Design & SQL Programming Using Microsoft SQL Server 2014

  • Creating table /  field definition

    HEllo,
    I am trying to create a table using Microsoft Access Driver with the following field definitions:
    createStatement =
    "CREATE TABLE Employee(SSN VARCHAR(9)PRIMARY KEY, "
    + "FirstName VARCHAR(15), LastName VARCHAR(15), "
    + "MiddleInitial CHAR, BirthDATE DATE, SALARY DECIMAL(10,2), "
    + "DNO int)";
    Unfortuately I am getting error when I compile. (CREATE TABLE Employee(SSN VARCHAR(9)PRIMARY KEY, FirstName VARCHAR(15), LastName VARCHAR(15), MiddleInitial CHAR, BirthDATE DATE, SALARY DECIMAL(10,2), DNO int)
    java.sql.SQLException: [Microsoft][ODBC Microsoft Access Driver] Syntax error in field definition.
    Cannot figure out what could be wrong in my code....
    If somebody could glance at it and have any suggestions, please

    thanks for the advise, but my ORACLE book is oriented
    to create tables with SQL....
    Anyway still looking for the solution of "mistery"
    of my "syntax error field definition"If you're suggesting that the SQL that Oracle recognizes and the SQL Access recognizes are the same, I think you're mistaken. I would follow DrClap's advice (this is just generally a good thing to do) and look for Access-specific documentation.

  • What index will be created by default when new table is created

    Hi Team,
    1.  When creating new table, what type of index wil be created in sql server ?
    2.  what is the table name if we create new table without primary key?
    Please help me on this
    Anand Rajagopal

    Hi Anand,
                    Your Question is quite wide in range and I am agree the other answers too. I would like to talk about your second question first because it will depend upon the first one.
                    When we creating a fresh table without specified any primary key it is called "Heap" table. A Heap table is not containing clustered index but it can non-clustered index (but not automatically we have
    to create explicitly). It means the data is not in order and we have to apply ORDER BY clause to short the data. Heap structure is not good for big tables which requires filtration frequently. 
                     When we create a table without specifying primary key, then none of indexes created on table. but if we specify primary key then it will create a clustered index with it. It means it is now physically
    shorted. But It doesn't guarantees that if you fire SELECT statement then It will fetch record in same order (It seems but it is not) because the RDBMS is based on "SET THEORY" and it doesn't guarantee the shorting order or records.
                     Also have a look on "Create Table", "Indexes" & "Table Scan", "Table Seek" for better understanding.
    Shivendra

  • ODI - Create a Target Table Definition from a source definition

    Hi - Is there a way to create a target flat file definition from an oracle table definition? I have some oracle tables and I want to create flat files from them but don't want to have to re-type the file definition because it is nearly exactly the same as ora table (100+ columns). The ora tables are already reversed.
    Thanks!
    Dan

    Well I spoke too soon. It seems to not like my alias?
    7000 : null : java.sql.SQLException: Invalid COL ALIAS "DISTRICT ID" for column "LOCAL"
    java.sql.SQLException: Invalid COL ALIAS "DISTRICT ID" for column "LOCAL"
    Is this because there are spaces in the column names (in the ora column names and the file... since the file is a copy of the table)??
    insert into ESC_DISTRICT
         DISTRICT KEY,
         DISTRICT CODE,
         LOCAL DISTRICT ID,
         DISTRICT NAME,
         DISTRICT STATE ABBREVIATION,
         DISTRICT STATE NAME,
         STATE DISTRICT ID,
         ORGANIZATION TYPE CODE,
    values
         :DISTRICT_KEY,
         :DISTRICT_CODE,
         :LOCAL_DISTRICT_ID,
         :DISTRICT_NAME,
         :DISTRICT_STATE_ABBREVIATION,
         :DISTRICT_STATE_NAME,
         :STATE_DISTRICT_ID,
    thanks!

  • How to grant create table to new User

    Hi All,
    I have created one new User, and give GRANT CREATE SESSION TO USER. But after that from which grant, i would be able to create table and other object, specially for table.Thanks,
    Brij

    Granting Resource role will work in your case as it consist of below privs
    grant resource to <username>;
    GRANTEE                           PRIV NAME                
    RESOURCE                          | CREATE CLUSTER           
                                       | CREATE INDEXTYPE         
                                       | CREATE OPERATOR          
                                       | CREATE PROCEDURE         
                                       | CREATE SEQUENCE          
                                       | CREATE TABLE             
                                       | CREATE TRIGGER           
                                       | CREATE TYPE         Please close the thread if you feel you have the answer and keep the Oracle forum clean.
    https://forums.oracle.com/forums/ann.jspa?annID=885

  • I have created two tables for my new  report under one transport request.

    Unwanted table transported
    I have created two tables for my new  report under one transport request.
    But I only need one table and the second table I was supposed to delete.
    However by mistake, with out deleting the second tableu2026 the transport request is released and moved to quality system.
    how to handle this issue. 
    I am not sure any additional changes for this program.
    Could you please suggest me an idea.
    Thanks in adv

    >
    sam kumar wrote:
    > Unwanted table transported
    > I have created two tables for my new  report under one transport request.
    > But I only need one table and the second table I was supposed to delete.
    > However by mistake, with out deleting the second tableu2026 the transport request is released and moved to quality system.
    >
    > how to handle this issue. 
    >
    > I am not sure any additional changes for this program.
    > Could you please suggest me an idea.
    >
    > Thanks in adv
    Does one custom table more or less really matter?  If you really want delete it, delete the table in DEV which will put it into a new transport and get that transport moved to TEST.

  • Trouble Creating View on External Table in Diff Schema

    I am unable to create a view in a different schema on an external table in a different schema, even when I am connected to my database as SYS as SYSDBA.
    CREATE VIEW WH1.EXT1VIEW AS SELECT * FROM WH1.EXT1VIEW;
    returns the error:
    ORA-06564: object ER_ADMIN_DIR does not exist
    I created a directory:
    CREATE DIRECTORY ER_ADMIN_DIR AS 'C:\ER_Init';
    Granted privs:
    grant read,write on directory ER_ADMIN_DIR to public;
    Created the external table EXT1 in a different schema WH1:
    CREATE TABLE WH1.EXT1 (TABLE_NAME VARCHAR2(100), COLUMN_NAME VARCHAR2(100))
    ORGANIZATION EXTERNAL (TYPE ORACLE_LOADER DEFAULT DIRECTORY SYS.ER_ADMIN_DIR
    ACCESS PARAMETERS
    (RECORDS DELIMITED BY NEWLINE
    FIELDS TERMINATED BY ','
    MISSING FIELD VALUES ARE NULL
    LOCATION ('FILE1.TXT')
    REJECT LIMIT UNLIMITED;
    I can query from the table successfully connected as SYS:
    SQL> select count(*) from wh1.ext1;
    1008
    1 row selected.
    However when I try to create a view on that table connected as SYS:
    CREATE VIEW WH1.EXT1VIEW AS SELECT * FROM WH1.EXT1VIEW;
    I get the following error:
    ORA-06564: object ER_ADMIN_DIR does not exist
    I can connect over to the WH1 schema and create the view successfully, however due to a specific situation I need to be able to create the view from the SYS schema. I can create the view FORCE and it creates with compilation errors, however the view cannot be compiled successfully from SYS.
    Is there a known bug on creating views on external tables remotely?
    Thanks for any help!
    Tina

    I have been able to reproduce your error, using scott instead of sys, and resolve it, as demonstrated below. The combination that I found that worked consisted of having wh1 grant select on ext1 to scott explicitly and using set current_schema to wh1, so that ext1view did not require the wh1 qualifier.
    scott@ORA92> CREATE USER wh1 IDENTIFIED BY wh1
      2  /
    User created.
    scott@ORA92> GRANT CONNECT, RESOURCE TO wh1
      2  /
    Grant succeeded.
    scott@ORA92> CREATE OR REPLACE DIRECTORY er_admin_dir AS 'c:\er_init'
      2  /
    Directory created.
    scott@ORA92> CREATE TABLE wh1.ext1
      2    (table_name  VARCHAR2(100),
      3       column_name VARCHAR2(100))
      4  ORGANIZATION EXTERNAL
      5    (TYPE ORACLE_LOADER
      6       DEFAULT DIRECTORY er_admin_dir
      7       ACCESS PARAMETERS
      8         (RECORDS DELIMITED BY NEWLINE
      9          FIELDS TERMINATED BY ','
    10          MISSING FIELD VALUES ARE NULL)
    11       LOCATION ('file1.txt'))
    12  REJECT LIMIT UNLIMITED
    13  /
    Table created.
    scott@ORA92> CREATE OR REPLACE VIEW wh1.ext1view AS SELECT * FROM wh1.ext1
      2  /
    CREATE OR REPLACE VIEW wh1.ext1view AS SELECT * FROM wh1.ext1
    ERROR at line 1:
    ORA-06564: object ER_ADMIN_DIR does not exist
    scott@ORA92> CONNECT wh1/wh1
    Connected.
    scott@ORA92> @ LOGIN
    scott@ORA92> SET ECHO OFF
    GLOBAL_NAME
    [email protected]2
    wh1@ORA92> GRANT SELECT ON ext1 TO scott
      2  /
    Grant succeeded.
    wh1@ORA92> CONNECT scott/tiger
    Connected.
    wh1@ORA92> @ LOGIN
    wh1@ORA92> SET ECHO OFF
    GLOBAL_NAME
    [email protected]A92
    scott@ORA92> ALTER SESSION SET CURRENT_SCHEMA = wh1
      2  /
    Session altered.
    scott@ORA92> CREATE OR REPLACE VIEW ext1view AS SELECT * FROM wh1.ext1
      2  /
    View created.
    scott@ORA92> ALTER SESSION SET CURRENT_SCHEMA = scott
      2  /
    Session altered.
    scott@ORA92> SELECT * FROM wh1.ext1view
      2  /
    TABLE_NAME
    ---------------------------------------------------------COLUMN_NAME
    ---------------------------------------------------------tab1
    col1
    tab2
    col2
    scott@ORA92>

  • Trouble creating mySQL tables

    I am running CF9 64bit on windows 7. I created the database on mySQL 5.6 server. I created the datasource, theough the CF Admin, for kalendar and it verified. I then tried using the following code to create 2 table, but I recevied an error that just says "Error!" when I tried running the script. I posted the script on  mySQL forums and was told the code ran fine. What am I not seeing?
    <cfquery name="qCreateTable"  datasource="kalendar">
    CREATE TABLE  tblkalendar (
      EventID varchar(100) NOT NULL,
      CategoryID int(10) NOT NULL,
      IsDeleted tinyint(1) NOT NULL default '0',
      IsPublished tinyint(1) NOT NULL default '0',
      IsFeatured tinyint(1) NOT NULL default '0',
      DateTimeCreated timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,
      StartDate datetime NOT NULL,
      EndDate datetime NOT NULL,
      StartTime varchar(50) default NULL,
      EndTime varchar(50) default NULL,
      ContactPhone varchar(50) default NULL,
      ContactName varchar(100) default NULL,
      ContactEmail varchar(50) default NULL,
      Title varchar(150) NOT NULL,
      Location varchar(150) default NULL,
      Teaser varchar(350) default NULL,
      ExternalURL varchar(500) character set utf8 default NULL,
      Description longtext NOT NULL,
      PRIMARY KEY  (EventID),
      KEY IX_tblKalendar (StartDate,EndDate),
      KEY FK_tblKalendar_tblKalendarCategories (CategoryID)
    ) ENGINE=MyISAM DEFAULT CHARSET=latin1;
    CREATE TABLE  tblkalendarcategories (
      CategoryID int(10) NOT NULL auto_increment,
      CategoryName varchar(50) NOT NULL,
      CategoryBGColor varchar(7) NULL,
      CategoryTextColor varchar(7) NULL,
      PRIMARY KEY  (CategoryID)
    ) ENGINE=MyISAM DEFAULT CHARSET=latin1;
    </cfquery>

    you should rethink whether you need to create a database using java. personally i think it's a bad idea. your database should exist and the schema should be ready to go when your app starts. why do you think you need to create one?
    %

  • Problem CREATE TABLE with PRIMARY KEY Still in Trouble ! Please Help!

    Hi there !
    I use the orcle 8i, and i don't know why i can't create table with any primary key EXample:
    SQL> CREATE TABLE O_caisses
    2 (No_caisse NUMBER(3) constraint caisses_pk PRIMARY KEY,
    3 NB_BILLETS NUMBER(5)
    4 )
    5 /
    CREATE TABLE O_caisses
    ERROR at line 1:
    ORA-18008: cannot find OUTLN schema
    ***********some Debuger show me this way: *********************
    Well there r certain point u got to notice when creating a table with constraints.
    1) U can create table with COLUMN level constraint.
    2) U can create table with TABLE level constraint.
    3) In COLUMN level constraint u can't give a constraint a name
    but only mention the type of constraint.
    4) In TABLE level constraint u can give a name to constraint.
    Following are the examples of both
    --COLUMN LEVEL
    CREATE TABLE O_caisses
    (No_caisse NUMBER(3) PRIMARY KEY,
    NB_BILLETS NUMBER(5));
    --TABLE LEVEL
    CREATE TABLE O_caisses
    (No_caisse NUMBER(3),
    NB_BILLETS NUMBER(5),
    constraint pk_caisse primary key (No_caisse));
    ********************And this is another one:*****************
    SQL>grant create any outline to username;
    BUT the problem is still present, i don't know what to do now !
    Please could some body help me !
    Thanks alot!
    Luong.

    The clue is in the error message: the OUTLN schema is missing.
    This is something Oracle 8i introduced to help manage the CBO (or soemthing equally geeky and internal). For some reason your database no longer has this user. It ought to be created automatically during installation (or upgrade) but catproct may not have completed probably or some over zealous admin type has dropped it.
    Solution is to re-install (or re-upgrade) as you cannot create this user on their own. Alas.
    HTH, APC

  • [[DataDirect][ODBC SQL Server Wire Protocol driver][Microsoft SQL Server]Column name or number of supplied values does not match table definition.]

    Hii ..
    need help on this ..
    This what I am doing ..
    I am using a DATAEXPORT function to export level0 data from my essbase 11.1.2.2 to Microsoft SQL 2008 tables.
    So what I did first I exported the level0 data to a flat file using DATAEXPORT and the created the SQL columns by the same  in that order only in my SQL table.
    When I run it fails with this error:
    ODBC Layer Error: [21S01] ==> [[DataDirect][ODBC SQL Server Wire Protocol driver][Microsoft SQL Server]Column name or number of supplied values does not match table definition.]
    [Tue Jul 23 18:26:07 2013]Local/dataexp/dataexp/admin@Native Directory/1209813312/Info(1021014)
    ODBC Layer Error: Native Error code [213]
    [Tue Jul 23 18:26:07 2013]Local/dataexp/dataexp/admin@Native Directory/1209813312/Error(1012085)
    Unable to export data to SQL table [dataexp]. Check the Essbase server log and the system console to determine the cause of the problem.
    [Tue Jul 23 18:26:07 2013]Local/dataexp/dataexp/admin@Native Directory/1209813312/Info(1021002)
    SQL Connection is Freed
    [Tue Jul 23 18:26:07 2013]Local/dataexp/dataexp/admin@Native Directory/1209813312/Warning(1080014)
    Transaction [ 0x1c50001( 0x51ee7d66.0x80342 ) ] aborted due to status [1012085].
    [Tue Jul 23 18:26:07 2013]Local/dataexp/dataexp/admin@Native Directory/1209813312/Info(1012579)
    Total Calc Elapsed Time for [test.csc] : [1.44] seconds
    =============================================================
    I did a simple test on my Sample.basic application then ..
    loaded the calc data to it and then used the below script to export to a flat file
    //ESS_LOCALE English_UnitedStates.Latin1@Binary
    SET DATAEXPORTOPTIONS
                    DataExportLevel "Level0";
                    DataExportOverwriteFile ON;
                    DataExportColFormat OFF;
                    DataExportDimHeader OFF;
    FIX(
                "Jan",
                "Sales",
                "Actual"
    /*DATAEXPORT "File" "," "/home/hypadmin/samtest.txt";*/
    DATAEXPORT "DSN" "Abhitest" "sample" "sa" "welcome1";
    ENDFIX
    out put as below:
    "Sales"
    "100-30","California"
    "Jan","Actual",145
    Now In sql I created only 3 columns with name Jan/Sales/Actual and when I run this script again with comments removed .. I get the same error as what I have got in my first test case with other application ..
    but when I create the columns with same name as what its in export
    Sales/100-30/Califirnia/Jan/Actual
    It created the new rows successfully ..
    So with this I think the error which I am getting with my other application might be because of the same column issue  .. but then I have created all the columns by looking at the export file only as I did in sample ..
    Any idea would be helpful ..
    Thanks
    Abhishek
    I

    First make sure you add
    DataExportRelationalFile ON;
    to your set commands it is missing
    I alwats like to also add
    DataExportColHeader dimensionName;
    so I am sure what dimension is getting put into the columns.
    Then count the number of dimensions in your outline (exclude attribute dimensions). You need at least that many columns in your table  -1 + the number of  members you will be returning as columns in the export
    Taking your example Sample basic has 5 dimensions
    Measures
    Years
    Scenario
    Product
    Market
    Since you did not specify a dataexportcolheader it took the dense dimension Scenario as the columns. Your fix statement is limiting that to one member. Doing the math
    5 -1 + 1 = 5 columns in your table which is what you found works.  Suppose you fixed on bothe Actual and budget in scenario then you would need 6 columns 5 -1 +2

  • Setting a Filter on a dynamically created Table

    Hi All,
    I am currently working on a Database to automatize some process. Quick explanation:
    The User can import a CSV (Text) File via a DialogBox, which gets imported into a Table. After this, the content has to be filtered, setting conditions on 4 different rows. The new Table gets exported into a new CSV (It has to be CSV, since it later gets imported
    into SAP)
    I am having some trouble with filters though:
    How can I set a Filter on a dynamically created Table (using VBA)?
    Best case would be to save the filter into my Import spec, but Access doesn't seem to have this option (?)
    Can somebody help?
    Thanks in advance
    Regards
    Alex

    Thanks for the fast reply! Sorry, I am not really proficient at Access. How do I do a query on a dynamically created Table? Do I have to save the Table into a Variable. Or what's the way to import it?
    Hi Alex,
    I never use the Import functionality, nor DoCmd.TransferText.
    To import data from a csv-file I made my own Import functionality. In fact it is just reading an external file, line by line, and each line field by field using the field separator. In my opinion that is far more versatile than the standard functionality.
    But you can use the standard functionality of Access to import a csv-file into a table.
    Having the data in a table, you can generate the appropriate query for the output in a VBA procedure:
            sql_string = "SELECT Field1, Field2, ... FROM MyTable WHERE Field1 = ... AND Field2 = ... ORDER BY Field3"
    and make a recordset of it:
            Set cur_set = CurrentDb(sql_string)
    The output csv-file is then filled by opening a file for Write, loop through all the records, concatenate for each record all the wanted fields using the field separator, and write the result line to the csv-file.
    Most important is to understand this process. After that it should be possible to build it. And if you have further questions, just ask.
    Imb.

Maybe you are looking for