Appling Constraints To Avoid  Cyclic In Oracle

Hi Guys,
I have a table category_defn ,In this table there are 3 columns category_id,parent_category_id,bank_id.
I have a requirement like if 1 has two children 2 and 3 , I need to have a constraint which will restrict the data entry
1 as a child of 3.That means it should not allow the cyclic order in the parent and child
I am wondering is there any constraint or way to achieve this in Oracle with out the help of triggers.
Any ideas,suggestions will be highly appreciated.
Thanks,
Papi

957590 wrote:
Is there any way even if in the complex manner to achieve this.Here's a try. It seems to "work", but it makes the hierarchy much harder to change.
The idea is:
- Use purely technical IDs for primary key and parent
- Never allow a parent id to be greater than a child id (check constraint)
- Have your "real" category_id be UNIQUE.
- Make the constraint on the "real" id DEFERRABLE so you can update it.drop sequence s;
create sequence s;
drop table t;
create table t (
  tech_id number primary key,
  parent_tech_id number,
  category_id number unique deferrable,
  check(parent_tech_id < tech_id)
alter table t add constraint fk_t
foreign key (parent_tech_id) references t(tech_id);
insert into t values(s.nextval,null, 1);
insert into t values(s.nextval,(select max(tech_id) from t), 2);
insert into t values(s.nextval,(select max(tech_id) from t), 3);
select * from t;
   TECH_ID PARENT_TECH_ID CATEGORY_ID
         1                          1
         2              1           2
         3              2           3 Test of the check constraint:update t set parent_tech_id = 3 where tech_id = 1;
SQL Error: ORA-02290: check constraint (STEW.SYS_C0034169) violatedUpdate the "real" IDset constraints all deferred;
update t set category_id =
case category_id when 1 then 3 when 3 then 1 end
where category_id in(1,3);
set constraints all immediate;
commit;The drawback to this idea is that some changes to the hierarchy are harder to do. What if you have lots of descendants and you just want to put the ancestor under a newer row? You either have to manually adjust the TECH_ID of the newer row, or do lots of UPDATEs, or do lots of DELETEs + INSERTs. Does this solution reduce complexity or just move it somewhere else?
At least with this solution you don't need triggers!
P.S. I did this "quick and dirty". In real life, always put names on deferrable constraints so you can defer them by name.
Edited by: Stew Ashton on Jan 28, 2013 1:44 PM

Similar Messages

  • Completely avoid passing of Oracle user informations thru http

    Hi friends,
    I am using Oracle 10g Application Server & Oracle 10g Forms & Report services. But I have to pass all the parameters thru a query String. So the problem is all the endusers can view the Database details by taking the properties.
    #) I want to set the Database Logon information some where in any confiruration file and this should read when calling forms. so that i can avoid passing of Database user informations. Is there any way to configure like this?
    #) Multiple applications are running on Oracle AS and each applications are using defferent schema. How can I set the different User Informations in the configuration file.
    I want to completely avoid passing of Oracle user informations thru http.
    thanks & regards
    Lakmal

    Hello Lakmal,
    As I said, you can edit formsweb.cfg and a user parameter section. For example, lets take yur sample url:
    add this section to formsweb.cfg:
    [change]
    userid=lakmal/mabil@ewis
    form=change.fmx
    note:
    it is better to make the edit at EM console itself.
    Then when you will run the form use this url:
    http://dunhinda.com/forms90/f90servlet?config=change
    The url has been shortened and your username and password is hidden.
    and if your user would run diffeent forms, you can drop the form=change.fmx and speficify form name in the url like
    section in formsweb.cfg
    [lakmal]
    userid=lakmal/mabil@ewis
    then the url will now be:
    http://dunhinda.com/forms90/f90servlet?config=change&form=formname.fmx
    Regards

  • Create constraint to avoid space

    I am using Oracle 10.2.0.4.
    How can I create a constraint for a varchar2 (20) column to avoid spaces. The constraint should NOT be triggered if the value has spaces together with some digit or character eg 'a b'.
    It should only be triggered if the column being inserted has one or more space and no other characters. eg . ' ' or ' '
    Thanks for any help.

    It sounds like you just want
    CHECK( TRIM(column_name) IS NOT NULL )Justin

  • How Apple could have avoided all the issues with FCP X

    After reading the numerous rants about FCP X, it seems to me the biggest mistake Apple made was naming this new App FCP X. Would everyone be as upset if they had named it Apple Cinema Tools or iMovie Pro? By naming it Final Cut Pro X, they are implying that this is an upgrade to FCP, which it is clearly not. They could have called it FCP 8 which would be even worse. It is beyond logic that Apple would introduce a version of FCP that would not open old versions of FCP projects. I spend most of my time in InDesign, I can't imagine Adobe introducing InDesign X that would not open old ID files.
    I think the last version of FCP I purchased was FCP 3, for what I need to do FCE was fine but still a bit confusing. In fact for a lot of the quick corp videos, iMovie worked well. I probably will buy FCP X because I don't have those legacy projects.
    It will be interesting to see what the video editing landscape looks like in a year from now. Looks like a real opportunity for Adobe and Avid.

    it imports iMovie 11 files and lets you do very nice cinematic tricks to output on youtube ( ! ) and vimeo ..
    , so "iMovie 12 Ultimate Professional Edition" would have been more clearly a big fat warning sign that this is luxury app for Home Users but to be avoided by Pros at all ways ..

  • Altering Primary Key constraint on a table i Oracle 10G

    Hi All,
    Can anyone tell me how to alter a primary key constraint on any table. My concern is that, suppose i have a table called 'Employee' where only 'EmployeeName' is added as a primary ket constaint. Now i want to alter this P.K. constarint to add 'EmployeeName' and 'DateOfBirth' as a primary key. Can anyone suggest me how can i achieve that? Any help will be highly appreciated.

    hi,
    you need to drop the constraint and recreate it.
    SQL> conn scott/tiger@alpspso
    Connected.
    SQL> create table test (id number constraint id_pk primary key,name varchar(30));
    create table test (id number constraint id_pk primary key,name varchar(30))
    ERROR at line 1:
    ORA-00955: name is already used by an existing object
    SQL> create table test_table (id number constraint id_pk primary key,name varchar(30))
    Table created.
    SQL> alter table test_table modify constraint id_pk primary key(id,name);
    alter table test_table modify constraint id_pk primary key(id,name)
    ERROR at line 1:
    ORA-00933: SQL command not properly ended
    SQL> alter table test_table modify constraint id_pk(id,name);
    alter table test_table modify constraint id_pk(id,name)
    ERROR at line 1:
    ORA-00933: SQL command not properly ended
    SQL> alter table test_table modify primary key(id,name);
    alter table test_table modify primary key(id,name)
    ERROR at line 1:
    ORA-00933: SQL command not properly ended
    SQL> alter table drop constraint id_pk;
    alter table drop constraint id_pk
    ERROR at line 1:
    ORA-00903: invalid table name
    SQL> alter table test_table drop constraint id_pk;
    Table altered.
    SQL> alter table test_table add constraint id_pk primary_key(id,name);
    alter table test_table add constraint id_pk primary_key(id,name)
    ERROR at line 1:
    ORA-00902: invalid datatype
    SQL> alter table test_table add constraint id_pk primary key(id,name);
    Table altered.
    Regards.
    Navneet

  • How to avoid exposing oracle login password in a script?

    Hello,
    How do I avoid exposing the oracle login password in a script?
    Thank you.

    Script is run from another server. I was looking into OPS$ but if I ran the script from a remote server I would have to set the remote_os_authent to TRUE. But that might cause some security issue. Is there a feature in the listener I can set so that if I set the remote_os_authent to TRUE, the listener will only let those remote servers I pre-specify? Thanks.

  • Migrating MySQL5 database to Oracle 10g - refrential integrity constraints

    On migrating MySQL5 database to oracle, referential integrity constraints are not migrated to Oracle. Capture stage shows it has captured the constraints but constraints are missing from the Oracle Model. Is this a bug? If not, what I need to do to get constraints migrated.

    Check out *URGENT* Does Oracle SQL Developer able to migrate tables relationships?
    K.

  • Trying to add a new apple express but unable to via my iOS7 device. Please help

    I am getting a error page when I go to select the new apple express in my  wifi settings page on my newly updated ios7 device.  I have tried doing the ten second reset trick and the hold the reset butting while pluging in the unit. Nothing's has worked so far. Could the device be uniperable?
    The error page says this...
    The apple express named ... Cannot be set up by this software...

    Yes I have bounced the Apache.
    I have also imported the xml file using the following command:
    java oracle.jrad.tools.xml.importer.XMLImporter /shapp001/applmgr/ODEV1/apps_st/appl/sspn/12.0.0/xml/oracle/apps/po/document/agreement/webui/SSPN_SiteRegBpaRN.xml -username apps -password <apps_pwd> -dbconnection "(description=(address_list=(address=(protocol=tcp)(host =chelan.stl.mo.boeing.com)(port=1568)))(connect_data=(sid=ODEV1)))"
    It gave the output in command prompt as:
    Importing file "/shapp001/applmgr/ODEV1/apps_st/appl/sspn/12.0.0/xml/oracle/apps/po/document/agreement/webui/SSPN_SiteRegBpaRN.xml" as "/oracle/apps/po/document/agreement/webui/SSPN_SiteRegBpaRN".
    Please let me know if tha above command is correct or not. Also the xml file should be kept in which path
    in /shapp001/applmgr/ODEV1/apps_st/comn/java/classes/sspn/oracle/apps/po/document/agreement/webui
    or
    /shapp001/applmgr/ODEV1/apps_st/appl/sspn/12.0.0/xml/oracle/apps/po/document/agreement/webui
    Edited by: 862896 on Jun 1, 2011 8:06 AM

  • Multiple Apple ID's !?....yup...that REALLY makes sense !

    Hi guys !
      just a ''little'' rant/frustration venting here :
    a few days ago i decided i'd finally give iCloud a go & check out how well it works...
      launched the app, followed the instructions & thought i might as well edit my iTunes Store Apple ID to AVOID having to deal with multiple ID's within the ''Apple universe''. since iCloud demands an email format ID, i did just that & was a bit surprised to realize i also would have to change the password which, i was instructed MUST contain an uppercase whatnot as well...
      ok no problem, i edited all that in my iTunes account thinking that now all i had to do is just sign in on anything Apple with that username/password, right ?
    surprise, surprise - it doesn't quite work that way & now i'm left with what i was trying to avoid AT ALL COSTS : multiple Apple ID's !?
    1 - in email format + 1 ''old'' one both sharing the same password, neat huh ?  well done.....
    don't get me wrong, without being a blind fanatic fanboy type of user, i DO love MOST of the stuff Apple does ( both hardware as software.. ) & have great joy in using it in my daily routine BUT....i'm afraid Apple did a big boo-boo here :
    why not allow to change the old ID to an email format ID & then implement it's use ''everywhere Apple'' even if for example in places such as these Apple Support Communities forum, the website would ''hide'' automagically the ''@whetever.com'' part of the ID to protect the user's privacy ?...
    i was even less impressed by this implementation when i logged-in my iTunes Store account with the new ID, saw there were upgrades for 3 apps i had bought for my iPhone & when i clicked the button to get them, a msg came up stating :
      Hum....interesting ! so, it states i HAVE upgrades ( why should it, if i DIDN'T buy those apps?... ) which to my poor old tired brain suggests iTunes Store DOES have an idea down there somewhere that i DID buy them - you know what i mean ? unless it's become common practice for iTunes to offer upgrades to people of things they didn't buy ?..
      anyway, forgive my rant about this, it's just that in this day & age when even the simplest of forums have got this username/password nailed to perfection, IT IS beyond me that a company as obviously capable as Apple DOESN'T & if this is the best it can do well....let's say i'm less than impressed & i will definitely get rid of iCloud
       to me iCloud was more of a curiosity than a need since i ''plug'' my iPhone 2 ir 3 times a day to my iMac & clicking a button to import photos/sync/whatever is WAY LESS TROUBLE than having to shuffle back & forth constantly between multiple ID's - specially since at current prices, my 2TB music library WON'T be going on the cloud anytime soon....
      obviously i have sent Apple a feedback on this & would love them to sort this out - this strikes me as such a BASIC FAIL which CANNOT make for ''smooth sailling''
    any ideas on the subject ?
    cheers
    Nuno

    I have a similar problem with this as well.  For example, I like to keep the "contacts" of me and my spouse updated on both of our phones.  In order for this to happen, I have to sign in to "icloud" on both devices & mac with my apple ID.  It would be much better if this could be shared/combined with multiple devices as an option.  I don't think "icloud drive" solve's this problem.

  • GTC Error While Provisioning to Oracle Database Tables

    I'm trying to setup GTC connector to provisioning/reconcile users into database tables, but during the provisionig gtc fails. check the lines above to see the error
    ERROR,07 Nov 2010 20:18:38,383,[OIMCP.DATC],Class/Method: DBProvisioningTransportProvider/sendData encounter some problems: Attribute: matricula does not exist in the specified parent table/view: xladm.usuarios_view
    com.thortech.xl.gc.exception.DBException: Attribute: matricula does not exist in the specified parent table/view: xladm.usuarios_view
    matricula is the primary key
    I'm using OIM 9102 with bundle patch 12 appled. connector version is 9105. Oracle database version is 11.1.0.7. My platform is Windows 2003.
    database table's ddl
    create table usuarios (
    matricula varchar2(10) primary key,
    nome varchar2(80),
    status varchar2(20),
    ultima_atualizacao date,
    senha varchar2(20));
    create view usuarios_view as select * from usuarios;
    GTC Connector Setup
    Provide Basic Information View
    Name INFO
    Reconciliation
    Transport Provider Database Application Tables Reconciliation
    Format Provider Database Application Tables Reconciliation
    Trusted Source Reconciliation No
    Provisioning
    Transport Provider Database Application Tables Provisioning
    Format Provider Database Application Tables Provisioning
    Specify Parameter Values Change
    Database Driver oracle.jdbc.driver.OracleDriver
    Database URL jdbc:oracle:thin:@localhost:1521:orcl
    Database User ID xladm
    Database Password ********
    Customized Query
    Use Native Query No
    Connection Properties
    Parent Table/View Name usuarios_view
    Child Table/View Names
    Unique Attribute matricula
    Timestamp Attribute ultima_atualizacao
    Database Date format
    Status Attribute status
    Status Lookup Code Lookup.InfoGolden.Status
    Is Primary Key Auto Incremented No
    Target Date Format yyyy-MM-dd hh:mm:ss.fffffffff
    Batch Size All
    Stop Reconciliation Threshold None
    Stop Threshold Minimum Records None
    Source Date Format yyyy/MM/dd hh:mm:ss z
    Reconcile Deletion of Multivalued Attribute Data Yes
    Reconciliation Type Full
    error log
    Running GENERICADAPTER
    Target Class = com.thortech.xl.gc.runtime.GCAdapterLibrary
    DEBUG,07 Nov 2010 20:18:37,086,[OIMCP.DATC],Class/Method: DBReconFormatProvider/formatData entered.
    DEBUG,07 Nov 2010 20:18:37,086,[OIMCP.DATC],Class/Method: DBProvisioningTransportProvider/initialize entered.
    DEBUG,07 Nov 2010 20:18:37,086,[OIMCP.DATC],Class/Method: DBProvisioningTransportProvider/initialize - Data: driver - Value: oracle.jdbc.driver.OracleDriver
    DEBUG,07 Nov 2010 20:18:37,086,[OIMCP.DATC],Class/Method: DBProvisioningTransportProvider/initialize - Data: url - Value: jdbc:oracle:thin:@localhost:1521:orcl
    DEBUG,07 Nov 2010 20:18:37,086,[OIMCP.DATC],Class/Method: DBProvisioningTransportProvider/initialize - Data: username - Value: xladm
    DEBUG,07 Nov 2010 20:18:37,086,[OIMCP.DATC],Class/Method: DBProvisioningTransportProvider/initialize - Data: password - Value: *******
    DEBUG,07 Nov 2010 20:18:37,086,[OIMCP.DATC],Class/Method: DBProvisioningTransportProvider/initialize - Data: parentContainerName - Value: usuarios_view
    DEBUG,07 Nov 2010 20:18:37,086,[OIMCP.DATC],Class/Method: DBReconTransportProvider/convertCSVToArraylist entered.
    DEBUG,07 Nov 2010 20:18:37,086,[OIMCP.DATC],Class/Method: DBReconTransportProvider/convertCSVToArraylist - Data: Run Time Parameters - Value: []
    DEBUG,07 Nov 2010 20:18:37,086,[OIMCP.DATC],Class/Method: DBProvisioningTransportProvider/initialize - Data: childContainerTableNames - Value: []
    DEBUG,07 Nov 2010 20:18:37,086,[OIMCP.DATC],Class/Method: DBProvisioningTransportProvider/initialize - Data: parentContainerUniqueKey - Value: matricula
    DEBUG,07 Nov 2010 20:18:37,086,[OIMCP.DATC],Class/Method: DBProvisioningTransportProvider/initialize - Data: statusField - Value: status
    DEBUG,07 Nov 2010 20:18:37,086,[OIMCP.DATC],Class/Method: DBProvisioningTransportProvider/initialize - Data: statusFieldLookup - Value: Lookup.InfoGolden.Status
    DEBUG,07 Nov 2010 20:18:37,086,[OIMCP.DATC],Class/Method: DBProvisioningTransportProvider/initialize left.
    DEBUG,07 Nov 2010 20:18:37,086,[OIMCP.DATC],Class/Method: DBProvisioningTransportProvider/initialize - Data: dbDateFormat - Value:
    DEBUG,07 Nov 2010 20:18:37,086,[OIMCP.DATC],Class/Method: DBProvisioningTransportProvider/sendData entered.
    INFO,07 Nov 2010 20:18:37,086,[OIMCP.DATC],Within PROV_OPERATION_ADDUSER::statusField=status
    DEBUG,07 Nov 2010 20:18:37,117,[OIMCP.DATC],Class/Method: DBFacade/getConnectionProp entered.
    DEBUG,07 Nov 2010 20:18:37,117,[OIMCP.DATC],Class/Method: DBFacade/setUpSSLPropertiesForDB2 entered.
    DEBUG,07 Nov 2010 20:18:37,117,[OIMCP.DATC],ExitingMethodDebug
    INFO,07 Nov 2010 20:18:37,148,[OIMCP.DATC],dbType:::: = Oracle
    DEBUG,07 Nov 2010 20:18:37,148,[OIMCP.DATC],Class/Method: DBFacade/getMatchingSchemaName - Data: found matching schema - Value: XLADM
    DEBUG,07 Nov 2010 20:18:37,148,[OIMCP.DATC],Class/Method: DBFacade/getMatchingTableName - Data: found exact matching schema:- - Value: XLADM
    DEBUG,07 Nov 2010 20:18:37,227,[OIMCP.DATC],Class/Method: DBFacade/getMatchingTableName - Data: found matching tables - Value: USUARIOS_VIEW
    DEBUG,07 Nov 2010 20:18:37,227,[OIMCP.DATC],Class/Method: DBFacade/getMatchingTableName - Data: found exact matching table:- - Value: USUARIOS_VIEW
    INFO,07 Nov 2010 20:18:37,258,[OIMCP.DATC],dbType:::: = Oracle
    DEBUG,07 Nov 2010 20:18:37,273,[OIMCP.DATC],Class/Method: DBFacade/getMatchingSchemaName - Data: found matching schema - Value: XLADM
    DEBUG,07 Nov 2010 20:18:37,273,[OIMCP.DATC],Class/Method: DBFacade/getMatchingTableName - Data: found exact matching schema:- - Value: XLADM
    DEBUG,07 Nov 2010 20:18:37,336,[OIMCP.DATC],Class/Method: DBFacade/getMatchingTableName - Data: found matching tables - Value: USUARIOS_VIEW
    DEBUG,07 Nov 2010 20:18:37,336,[OIMCP.DATC],Class/Method: DBFacade/getMatchingTableName - Data: found exact matching table:- - Value: USUARIOS_VIEW
    INFO,07 Nov 2010 20:18:37,445,[OIMCP.DATC],dbType:::: = Oracle
    INFO,07 Nov 2010 20:18:37,445,[OIMCP.DATC],dbType:::: = Oracle
    DEBUG,07 Nov 2010 20:18:37,445,[OIMCP.DATC],Class/Method: DBFacade/getMatchingSchemaName - Data: found matching schema - Value: XLADM
    DEBUG,07 Nov 2010 20:18:37,445,[OIMCP.DATC],Class/Method: DBFacade/getMatchingTableName - Data: found exact matching schema:- - Value: XLADM
    DEBUG,07 Nov 2010 20:18:37,523,[OIMCP.DATC],Class/Method: DBFacade/getMatchingTableName - Data: found matching tables - Value: USUARIOS_VIEW
    DEBUG,07 Nov 2010 20:18:37,523,[OIMCP.DATC],Class/Method: DBFacade/getMatchingTableName - Data: found exact matching table:- - Value: USUARIOS_VIEW
    DEBUG,07 Nov 2010 20:18:38,367,[OIMCP.DATC],Class/Method: DBFacade/getPrimaryKeys - Data: Primary Keys - Value: []
    DEBUG,07 Nov 2010 20:18:38,383,[OIMCP.DATC],Class/Method: DBFacade/getColumns - Data: Column Name: - Value: MATRICULA
    DEBUG,07 Nov 2010 20:18:38,383,[OIMCP.DATC],Class/Method: DBFacade/getColumns - Data: Column Dataype integer value: - Value: 12
    DEBUG,07 Nov 2010 20:18:38,383,[OIMCP.DATC],Class/Method: DBFacade/getColumns - Data: Column Size: - Value: 10
    DEBUG,07 Nov 2010 20:18:38,383,[OIMCP.DATC],Class/Method: DBFacade/getColumns - Data: Table Name: - Value: USUARIOS_VIEW
    DEBUG,07 Nov 2010 20:18:38,383,[OIMCP.DATC],Class/Method: DBFacade/getClumns - Data: Column Datatype Name: - Value: VARCHAR2
    DEBUG,07 Nov 2010 20:18:38,383,[OIMCP.DATC],Class/Method: DBFacade/getColumns - Data: Database Type Name: - Value: Oracle
    DEBUG,07 Nov 2010 20:18:38,383,[OIMCP.DATC],Class/Method: DBFacade/getColumns - Data: Column Name: - Value: NOME
    DEBUG,07 Nov 2010 20:18:38,383,[OIMCP.DATC],Class/Method: DBFacade/getColumns - Data: Column Dataype integer value: - Value: 12
    DEBUG,07 Nov 2010 20:18:38,383,[OIMCP.DATC],Class/Method: DBFacade/getColumns - Data: Column Size: - Value: 80
    DEBUG,07 Nov 2010 20:18:38,383,[OIMCP.DATC],Class/Method: DBFacade/getColumns - Data: Table Name: - Value: USUARIOS_VIEW
    DEBUG,07 Nov 2010 20:18:38,383,[OIMCP.DATC],Class/Method: DBFacade/getClumns - Data: Column Datatype Name: - Value: VARCHAR2
    DEBUG,07 Nov 2010 20:18:38,383,[OIMCP.DATC],Class/Method: DBFacade/getColumns - Data: Database Type Name: - Value: Oracle
    DEBUG,07 Nov 2010 20:18:38,383,[OIMCP.DATC],Class/Method: DBFacade/getColumns - Data: Column Name: - Value: STATUS
    DEBUG,07 Nov 2010 20:18:38,383,[OIMCP.DATC],Class/Method: DBFacade/getColumns - Data: Column Dataype integer value: - Value: 12
    DEBUG,07 Nov 2010 20:18:38,383,[OIMCP.DATC],Class/Method: DBFacade/getColumns - Data: Column Size: - Value: 20
    DEBUG,07 Nov 2010 20:18:38,383,[OIMCP.DATC],Class/Method: DBFacade/getColumns - Data: Table Name: - Value: USUARIOS_VIEW
    DEBUG,07 Nov 2010 20:18:38,383,[OIMCP.DATC],Class/Method: DBFacade/getClumns - Data: Column Datatype Name: - Value: VARCHAR2
    DEBUG,07 Nov 2010 20:18:38,383,[OIMCP.DATC],Class/Method: DBFacade/getColumns - Data: Database Type Name: - Value: Oracle
    DEBUG,07 Nov 2010 20:18:38,383,[OIMCP.DATC],Class/Method: DBFacade/getColumns - Data: Column Name: - Value: ULTIMA_ATUALIZACAO
    DEBUG,07 Nov 2010 20:18:38,383,[OIMCP.DATC],Class/Method: DBFacade/getColumns - Data: Column Dataype integer value: - Value: 93
    DEBUG,07 Nov 2010 20:18:38,383,[OIMCP.DATC],Class/Method: DBFacade/getColumns - Data: Column Size: - Value: 7
    DEBUG,07 Nov 2010 20:18:38,383,[OIMCP.DATC],Class/Method: DBFacade/getColumns - Data: Table Name: - Value: USUARIOS_VIEW
    DEBUG,07 Nov 2010 20:18:38,383,[OIMCP.DATC],Class/Method: DBFacade/getClumns - Data: Column Datatype Name: - Value: DATE
    DEBUG,07 Nov 2010 20:18:38,383,[OIMCP.DATC],Class/Method: DBFacade/getColumns - Data: Database Type Name: - Value: Oracle
    DEBUG,07 Nov 2010 20:18:38,383,[OIMCP.DATC],Class/Method: DBFacade/getColumns - Data: Column Name: - Value: SENHA
    DEBUG,07 Nov 2010 20:18:38,383,[OIMCP.DATC],Class/Method: DBFacade/getColumns - Data: Column Dataype integer value: - Value: 12
    DEBUG,07 Nov 2010 20:18:38,383,[OIMCP.DATC],Class/Method: DBFacade/getColumns - Data: Column Size: - Value: 20
    DEBUG,07 Nov 2010 20:18:38,383,[OIMCP.DATC],Class/Method: DBFacade/getColumns - Data: Table Name: - Value: USUARIOS_VIEW
    DEBUG,07 Nov 2010 20:18:38,383,[OIMCP.DATC],Class/Method: DBFacade/getClumns - Data: Column Datatype Name: - Value: VARCHAR2
    DEBUG,07 Nov 2010 20:18:38,383,[OIMCP.DATC],Class/Method: DBFacade/getColumns - Data: Database Type Name: - Value: Oracle
    DEBUG,07 Nov 2010 20:18:38,383,[OIMCP.DATC],Class/Method: DBFacade/getClumns - Data: Columns: - Value: [com.thortech.xl.gc.impl.common.Column@187f99a, com.thortech.xl.gc.impl.common.Column@1428b7, com.thortech.xl.gc.impl.common.Column@17d39b5, com.thortech.xl.gc.impl.common.Column@57cf27, com.thortech.xl.gc.impl.common.Column@e1319f]
    ERROR,07 Nov 2010 20:18:38,383,[OIMCP.DATC],Class/Method: DBProvisioningTransportProvider/sendData encounter some problems: Attribute: matricula does not exist in the specified parent table/view: xladm.usuarios_view
    com.thortech.xl.gc.exception.DBException: Attribute: matricula does not exist in the specified parent table/view: xladm.usuarios_view
         at com.thortech.xl.gc.impl.common.DBFacade.validateAttrExistence(Unknown Source)
         at com.thortech.xl.gc.impl.common.DBFacade.getSchema(Unknown Source)
         at com.thortech.xl.gc.impl.prov.DBProvisioningTransportProvider.getSchema(Unknown Source)
         at com.thortech.xl.gc.impl.prov.DBProvisioningTransportProvider.sendData(Unknown Source)
         at com.thortech.xl.gc.runtime.GCAdapterLibrary.executeFunctionality(Unknown Source)
         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 com.thortech.xl.adapterGlue.ScheduleItemEvents.adpINFO_GTC.GENERICADAPTER(adpINFO_GTC.java:125)
         at com.thortech.xl.adapterGlue.ScheduleItemEvents.adpINFO_GTC.implementation(adpINFO_GTC.java:70)
         at com.thortech.xl.client.events.tcBaseEvent.run(Unknown Source)
         at com.thortech.xl.dataobj.tcDataObj.runEvent(Unknown Source)
         at com.thortech.xl.dataobj.tcScheduleItem.runMilestoneEvent(Unknown Source)
         at com.thortech.xl.dataobj.tcScheduleItem.eventPostInsert(Unknown Source)
         at com.thortech.xl.dataobj.tcDataObj.insert(Unknown Source)
         at com.thortech.xl.dataobj.tcDataObj.save(Unknown Source)
         at com.thortech.xl.ejb.beansimpl.tcProvisioningOperationsBean.retryTasks(Unknown Source)
         at com.thortech.xl.ejb.beans.tcProvisioningOperationsSession.retryTasks(Unknown Source)
         at com.thortech.xl.ejb.beans.tcProvisioningOperations_b03yxm_EOImpl.retryTasks(tcProvisioningOperations_b03yxm_EOImpl.java:2719)
         at Thor.API.Operations.tcProvisioningOperationsClient.retryTasks(Unknown Source)
         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 Thor.API.Base.SecurityInvocationHandler$1.run(Unknown Source)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
         at weblogic.security.Security.runAs(Security.java:41)
         at Thor.API.Security.LoginHandler.weblogicLoginSession.runAs(Unknown Source)
         at Thor.API.Base.SecurityInvocationHandler.invoke(Unknown Source)
         at $Proxy93.retryTasks(Unknown Source)
         at com.thortech.xl.webclient.actions.ResourceProfileProvisioningTasksAction.retryTasks(Unknown Source)
         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 org.apache.struts.actions.DispatchAction.dispatchMethod(DispatchAction.java:280)
         at com.thortech.xl.webclient.actions.tcLookupDispatchAction.execute(Unknown Source)
         at com.thortech.xl.webclient.actions.tcActionBase.execute(Unknown Source)
         at com.thortech.xl.webclient.actions.tcAction.execute(Unknown Source)
         at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
         at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
         at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
         at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at com.thortech.xl.webclient.security.CSRFFilter.doFilter(Unknown Source)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at com.thortech.xl.webclient.security.SecurityFilter.doFilter(Unknown Source)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.doIt(WebAppServletContext.java:3684)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3650)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2268)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2174)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1446)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)

    What I usually do in situations like this is that I connect to the database using a sql client and the same connection information as I specified to OIM and see if the attribute is present.
    Perhaps you got the wrong db name? Or schema name?
    Everything looks good so most probably there simply is some little typo somewhere.
    Hope this helps
    /Martin

  • Error while installing oracle identity manager

    Im using windows installer. I get error below when installing Oracle Identity Manager, any idea to solve this?
    Following Error occured during schema creation connected
    ERROR loading database script C:\oracle identity manager\OIM9.0.1.1\installServer\Xellerate/db/oracle/xell.sql!
    Please contact your DBA! ORA-06550: line 1,
    column 7: PLS-00905: object KOD.PIN_OBJ is invalid ORA-06550: line 1,
    column 7: PL/SQL: Statement ignored [12/13/06 11:36 AM]
    ------------------------------------------------------------------------------

    Hi,
    I got the same error:
    Following Error occurred during schema creation connectedError loading database scriptD:\appl\OIM_902_RC\OIM_902_RC\installServer\Xellerate/db/oracle/xell.sqlPlease contact your DBA!ORA-06550: line 1, column 7: PLS-00905: object VIM_ADMIN.PIN_OBJ is invalid ORA-06550: line 1, column 7: PL/SQL: Statement ignored [12/8/06 5:57 PM]      
    But I could fix it by dropping the schema and recreate it by only executing the prepare_xl_db.sh script as dba user on database server:
    1.     Copy the scripts prepare_xl_db.sh and xell_db_prepare.sql from the distribution CD/Directory to a directory on the machine hosting the database where there is (as the account user performing this task) write permission.
    2.     Run the prepare_xl_db.sh script by entering the following command:
    ./prepare_xl_db.sh
    3.     Provide information appropriate for the database and host machine when the script prompts for the following items:
    •     The location of the Oracle home (ORACLE_HOME)
    •     The name of the database (ORACLE_SID)
    •     The name of the Oracle Identity Manager database user to be created
    •     The password for the Oracle Identity Manager database user
    •     The name of the tablespace to be created for storing Oracle Identity Manager data
    •     The directory in which to store the data file for the Oracle Identity Manager tablespace
    •     The name of the data file ( no need to append the .dbf extension)
    •     The name of the temporary tablespace
    4.     Check the prepare_xell_db.lst log file located in the directory where the xell_db_prepare script was run from to see execution status and additional information.

  • Final Cut Studio 2 Apple Loops, Jam Packs and Logic express 8 installation?

    Hi(Bonjour)!
    I've currently use Final Cut Studio 2 +Soundtrack Pro 2.0.2+ application with all included Apple Loops.
    I own several Jam Pack Apple Loops packages (with a less than impressive integration with Garage Band for older one).
    I purchased Logic Express 8 pro today.
    Is there more Apple Loops files included with Logic express 8 than with Soundtrack Pro 2?
    What is the best way to install Logic express 8 Apple Loops to avoid duplicate loops files?
    Thank You.
    Michel Boissonneault

    Well, the installation was very simple, no duplicate files and tight integration of GarageBand loops and JamPacks.
    Michel B.

  • Trying to add a new region to an Oracle seeded page

    Hi,
    I have a requirement in my project where I have to add a sub tab region to standard OAF page. I have created an independent region for the same and using XML importer loaded the page on server.
    Through personalization, I am trying to add region of stack layout in subtab region of the standard page. I get the following error while trying to do so:
    Error
    Extends: Invalid value: /sspn/oracle/apps/po/document/agreement/webui/SSPN_SiteRegBpaRN: the reference may not exist. (oracle.adf.mds.MetadataDefException: Unable to find component with absolute reference = /sspn/oracle/apps/po/document/agreement/webui/SSPN_SiteRegBpaRN, XML Path = null. Please verify that the reference is valid and the definition of the component exists either on the File System or in the MDS Repository.)
    Do i need to create a controller for this region as my intention was just to first see the layout on screen and then add the controller later. Anybody who has encountered similiar error, please help.
    Regards
    Swati

    Yes I have bounced the Apache.
    I have also imported the xml file using the following command:
    java oracle.jrad.tools.xml.importer.XMLImporter /shapp001/applmgr/ODEV1/apps_st/appl/sspn/12.0.0/xml/oracle/apps/po/document/agreement/webui/SSPN_SiteRegBpaRN.xml -username apps -password <apps_pwd> -dbconnection "(description=(address_list=(address=(protocol=tcp)(host =chelan.stl.mo.boeing.com)(port=1568)))(connect_data=(sid=ODEV1)))"
    It gave the output in command prompt as:
    Importing file "/shapp001/applmgr/ODEV1/apps_st/appl/sspn/12.0.0/xml/oracle/apps/po/document/agreement/webui/SSPN_SiteRegBpaRN.xml" as "/oracle/apps/po/document/agreement/webui/SSPN_SiteRegBpaRN".
    Please let me know if tha above command is correct or not. Also the xml file should be kept in which path
    in /shapp001/applmgr/ODEV1/apps_st/comn/java/classes/sspn/oracle/apps/po/document/agreement/webui
    or
    /shapp001/applmgr/ODEV1/apps_st/appl/sspn/12.0.0/xml/oracle/apps/po/document/agreement/webui
    Edited by: 862896 on Jun 1, 2011 8:06 AM

  • MacBook Japanes keyboard issue (and very poor Apple customer service)

    I AM A BITTERLY DISAPPOINTED APPLE CUSTOMER / USER.
    Over the past 3 years I have been a loyal purchaser and user of Apple products. I have bought a PowerBook G4 17", 2 Airport Extremes, 2 Airport press, 2 Ipods, 2 Nanos, 1 Shuffle, Aperture, various accessories and more recently a black MacBook.
    I have relocated to Japan with my job in the past few month where I purchased my MacBook from an official large retailer (Yodobashi in Tokyo) because I was buying many other household items at the same time. My laptop works beautifully but is equipped with a Japanese keyboard (katakana) which is proving very confusing for all non Japanese users (incl. myself).
    I visited the Apple flagship store in Ginza (Tokyo)to share my request. I was informed that they could swap the keyboards but only for laptops purchased in the flagship store. I believe that my Apple product merits the same level of customer care as an Apple product purchased in that store.
    With this in mind, I am still seekigng a solution to my issue and would be grateful for some help. I believe that as a loyal customer and an English speaking user, I am entitled to being able to swap my keyboard (particularly as the service is provided).
    Does anyone have any useful hints as to how I get my keyboard swapped (by Apple preferably to avoid voiding the warranty).
    MacBook   Mac OS X (10.4.10)   x

    Hi desalaberry.
    Welcome to macbook forum.
    I am not to familiar with Japan authorized service center and their apple store policy, you also can check this:
    http://www.apple.com/jp/store/english/
    Keyboard and Mac OS Language
    Your Mac can be ordered with an English language (U.S.) style keyboard, or Japanese - the choice is yours. The Mac OS X operating system supplied with your Mac is multilingual so can be set up in English and a large range of international languages.
    If your macbook still returnable, just return that to the original store and order one with english layout on apple store at Ginza or other near you:
    http://www.apple.com/jp/retail/business/
    (scroll down to bottom)
    Other way is to buy wired or wireless english layout mac keyboard and connect that to your macbook.
    Hope ypu can talk it out with them.
    Good Luck

  • Install APEX 4.0 on Apple Mac

    Hi,
    Can someone please let me know if it's possible to use an Apple Mac Mini as a dedicated Oracle Apex Server?
    I'm just looking for the simplest way to install Apex on a Mac Mini
    I would ideally like to use OSX operating system but failing that I would be prepared to dual boot the Mac Mini with Windows and install Apex on that.
    Anyway, the OTN website states the following:
    Note: Oracle Application Express 4.0 is supported on all Editions (SE1, SE, EE, and XE)
    of the Oracle database, 10.2.0.3 or higher. Application Express 4.0 can also be used
    with Oracle Database 10g Express Edition. We specifically support the following platforms:
    - Mac OS X ServerThis seems good news. The thing I do not understand is can I install Oracle SE or EE on OSX? I do not believe XE is available on OSX.
    Would I need OSX Server or would OSX Leopard be enough?
    Sorry for all the questions hopefully someone can point me in the right direction.

    You need to concentrate on the steps required for installing Oracle on your Mac OS.
    If you can install Oracle you can install Apex . Apex lives inside the Oracle instance ( if i may say so ). Apex is just a small little bunch ( a few hundred thousand lines ) of pl/sql code in packages, procedures and functions .
    Just go ahead and install Oracle RDBMS, follow the Apex installation step and you will be ok and ready for more Apex "how to" posts ;-)
    Regards,

Maybe you are looking for

  • XSL and getNodeValue() problem

    I'm having a problem get an output that I expect. If I start with xml like this: <?xml version="1.0" encoding="UTF-8"?> <ROWSET> <ROW num="1"> <PUBLISH_DOCUMENT_ID>3</PUBLISH_DOCUMENT_ID> <TOPIC_ID>2</TOPIC_ID> <SECTION_ID>1</SECTION_ID> </ROWSET> An

  • Find RANGE of Data

    Hi, I have data for which i need to prepare range script. Sample data is col1 1 11 2 3 B C B12 c1 C123 c2 c3 I need to prepare a script to dispaly the data in the following manner val('1','3'); -- since 1,2,3 are in range so 1 to 3 val('11'); -- sinc

  • Pleas Help me about Crystal report problem

    How to solve this problem. The problem is some time my web application can not connect to crystal report server. And App. log was receord as below. com.crystaldecisions.sdk.occa.report.lib.ReportSDKServerException: Unable to connect to the server: cr

  • Email not loading since ios7

    I am having trouble with my email since downloading ios7. I will see a notification on my home screen that I have new emails but when I open the email app no new emails show. I have to refresh a number of times to get my new emails to show. It happen

  • How to change IP addresses of APs and WLC to the ones from different VLAN

    I'm trying to figure out what is the best practice to change IP addresses on all my access points connected/managed by the WLC. I have one WLC2504 controler and three AIR-LAP1041N access points the idea is to change management IP of the WLC from 192.