AFTER ALTER ON SCHEMA TRIGGER + all_tab_columns

Hi everybody,
I'm trying to get the column name of any column added to the table "TEST", So I create a trigger to ensure that job.
My problem is that the view "all_tab_columns" doesn't contain the column "column_test " yet when the trigger audit_ddl_trg is executed.
Please Help me to resolve this problem
CREATE TABLE TEST(id varchar2(10));
-- add a column to the Table "TEST"
alter table TEST add column_test varchar2(10);
-- column_test not detected !!?
CREATE OR REPLACE TRIGGER audit_ddl_trg AFTER ALTER ON SCHEMA
DECLARE
col_name varchar2(30);
BEGIN
IF (ORA_DICT_OBJ_TYPE = 'TABLE' AND ora_dict_obj_owner = 'OP' AND ORA_DICT_OBJ_NAME = 'TEST') THEN
FOR col_name IN (SELECT column_name FROM all_tab_columns WHERE owner = 'OP') LOOP
DBMS_OUTPUT.PUT_LINE('Column : ' || col_name);
END LOOP;
END IF;
END;
Thanks In Advance ;)
Edited by: 909366 on Jan 26, 2012 1:22 AM
Edited by: 909366 on Jan 26, 2012 1:57 AM

True, you can declare PROC_REPLACE_TRIGGER as an autonomous transaction. That would allow you to commit. But then your autonomous transaction won't be able to see any of the changes being made in the triggering transaction, including the new column.
As has been said before, you really only have one option. Your schema trigger needs to use DBMS_JOB to schedule a job. That job would call PROC_REPLACE_TRIGGER some time shortly after the triggering DDL transaction commits. You would not want to declare PROC_REPLACE_TRIGGER as an autonomous transaction in that approach.
I still have reservations about the architecture that would require something like this. If you're doing DDL, presumably it's part of a build. The call to PROC_REPLACE_TRIGGER should be part of the build script (assuming it really makes sense to recreate triggers dynamically), not something that is called by a trigger.
Justin

Similar Messages

  • How to fire a schema trigger from outside the schema

    A user is using an ad hoc tool similar to SQL Developer called PeopleSoft Application Designer.
    He creates a connection to the db, then issues an alter session set current_schema = 'restricted_schema'. The connected user does not have direct privileges on the "restricted_schema" which they call SYSADM.
    After changing the schema context in that manner he creates objects in SYSADM. A schema trigger is then fired and grants privileges on the new objects created in SYSADM. Doing the same in either SQL Plus or SQL Developer does not fire the schema trigger.
    I think SQL Plus and SQL Dev are working as they should. Altering the session like that does not change your identity - just the schema context. But, when you examine v_$session, the connection with this other tool looks exactly the same as one from SQL Plus or SQL Dev when changing the schema context in the session.
    Instead of trying to figure out what this other tool is doing, is there any way for that schema trigger to fire when using this process from one of our tools?

    >
    A user is using an ad hoc tool similar to SQL Developer called PeopleSoft Application Designer.
    He creates a connection to the db, then issues an alter session set current_schema = 'restricted_schema'. The connected user does not have direct privileges on the "restricted_schema" which they call SYSADM.
    After changing the schema context in that manner he creates objects in SYSADM. A schema trigger is then fired and grants privileges on the new objects created in SYSADM. Doing the same in either SQL Plus or SQL Developer does not fire the schema trigger.
    >
    The user CANNOT create objects in any schema without the proper privileges.
    Setting the current_schema parameter does not confer ANY additional privileges to a user. See ALTER SESSION in the SQL language doc
    http://docs.oracle.com/cd/E14072_01/server.112/e10592/statements_2013.htm
    >
    CURRENT_SCHEMA
    Syntax:
    CURRENT_SCHEMA = schema
    The CURRENT_SCHEMA parameter changes the current schema of the session to the specified schema. Subsequent unqualified references to schema objects during the session will resolve to objects in the specified schema. The setting persists for the duration of the session or until you issue another ALTER SESSION SET CURRENT_SCHEMA statement.
    This setting offers a convenient way to perform operations on objects in a schema other than that of the current user without having to qualify the objects with the schema name. This setting changes the current schema, but it does not change the session user or the current user, nor does it give the session user any additional system or object privileges for the session.
    >
    If the user connects and sets SYSADM as the current schema and creates objects in SYSADM the user already had privileges to create objects in the SYSADM schema; setting the current schema has nothing to do with it.
    So your issue is that the user has privileges to create objects in the SYSADM schema; you need to revoke those privilges (or the role that grants them) to solve your problem.

  • Schema Trigger not firing except for the schema's user

    Hi. I've created this schema level trigger. The schema is TTMS and the user I created the trigger with is named TTMS. The trigger is designed to alert me by email when someone alters a schema object.
    My problem is that the trigger only fires when I'm logged in as the schema owner (TTMS). When I'm logged in as TTMS and add a column to a table in this schema I get the email alert as expected. But if I log in as my own individual username (SSBUECHL) the trigger doesn't fire.
    Is there a privilege that the TTMS user needs to grant to my user so that this trigger will fire when I'm logged in as SSBUECHL? Any help would be greatly appreciated.
    CREATE OR REPLACE TRIGGER TTMS.altered_ttms_tabs_trigger
    AFTER ALTER ON ttms.SCHEMA
    DECLARE
      PSENDER VARCHAR2(200);
      PRECIPIENT VARCHAR2(200);
      P_CC_RECIPIENT VARCHAR2(200);
      P_BCC_RECIPIENT VARCHAR2(200);
      PSUBJECT VARCHAR2(200);
      PMESSAGE VARCHAR2(6000);
      auditTable_ind varchar2(1);
      BEGIN
        select nvl(count(table_name),0)
        into auditTable_ind
        from all_triggers
        where substr(trigger_name,1,9) = upper('tr_audit#')
        and table_name=ora_dict_obj_name;
        if auditTable_ind > 0 then
          INSERT INTO altered_tabs
          VALUES
          (ora_dict_obj_type, ora_dict_obj_name, SYSDATE, user);
          PSENDER := '[email protected]';
          PRECIPIENT := '[email protected]';
          P_CC_RECIPIENT := '[email protected]';
          P_BCC_RECIPIENT := '[email protected]';
          PSUBJECT := 'TTMS Audit - Altered Audit Table Alert - Action Required';
          PMESSAGE := ora_dict_obj_name||' was altered on '||sysdate||' by '||user||'.  Please rebuild the audit index immediately.';
          TTMS.SEND_MAIL ( PSENDER, PRECIPIENT, P_CC_RECIPIENT, P_BCC_RECIPIENT, PSUBJECT, PMESSAGE );
        end if;
      END;
    /

    No, but I've alter the code as such and it still only fires for the TTMS user:
    CREATE OR REPLACE TRIGGER TTMS.altered_ttms_tabs_trigger
    AFTER ALTER ON ttms.SCHEMA
    DECLARE
      PSENDER VARCHAR2(200);
      PRECIPIENT VARCHAR2(200);
      P_CC_RECIPIENT VARCHAR2(200);
      P_BCC_RECIPIENT VARCHAR2(200);
      PSUBJECT VARCHAR2(200);
      PMESSAGE VARCHAR2(6000);
      auditTable_ind varchar2(1);
      BEGIN
        select nvl(count(table_name),0)
        into auditTable_ind
        from all_triggers
        where substr(trigger_name,1,9) = upper('tr_audit#')
        and table_name=ora_dict_obj_name;
        if auditTable_ind > 0 then
    */      INSERT INTO altered_tabs
          VALUES
          (ora_dict_obj_type, ora_dict_obj_name, SYSDATE, user);
          PSENDER := '[email protected]';
          PRECIPIENT := '[email protected]';
          P_CC_RECIPIENT := '[email protected]';
          P_BCC_RECIPIENT := '[email protected]';
          PSUBJECT := 'TTMS Audit - Altered Audit Table Alert - Action Required';
          PMESSAGE := ora_dict_obj_name||' was altered on '||sysdate||' by '||user||'.  Please rebuild the audit index immediately.';
          TTMS.SEND_MAIL ( PSENDER, PRECIPIENT, P_CC_RECIPIENT, P_BCC_RECIPIENT, PSUBJECT, PMESSAGE );
    --   end if;
      END;
    /Edited by: sharpe on Jun 9, 2011 3:39 PM

  • AFTER ALTER ON DATABASE gives the old password value in Oracle

    I am writing a trigger to fetch the 'password' value when 'sys.users$' table gets updated.
    CREATE OR REPLACE
    TRIGGER Sys_User_Nm_Trg AFTER ALTER ON DATABASE
    WHEN (ora_dict_obj_type = 'USER')
    DECLARE
    CURSOR get_pw IS
    SELECT password
    FROM sys.user$
    WHERE name = ora_dict_obj_name;
    user_pw_ VARCHAR2(100);
    BEGIN
    IF (ora_dict_obj_name != 'SYS' AND ora_dict_obj_name != 'SYSTEM') THEN
    IF (ora_des_encrypted_password IS NOT NULL) THEN
    OPEN get_pw;
    FETCH get_pw INTO user_pw_;
    CLOSE get_pw;
    END IF;
    END IF;
    END;
    But this cursor gives the old 'password' not the changed 'password' value. But if I run
    SELECT password
    FROM sys.user$
    WHERE name = ora_dict_obj_name;
    in a separate transaction it gives the correct changed value. Is there something that I should change in the trigger to fetch the updated value for the password?
    Thanks in advance!
    Edited by: 986412 on Feb 7, 2013 12:11 AM
    Edited by: 986412 on Feb 7, 2013 3:17 AM

    What is the purpose of the trigger ?

  • Refreshing Entity Objects after Altering the table

    Hi,
    My Entity Object is based on a table... and View Objects on the Entity Objects. Now if I alter the table (just changing the width of the column), that change is not visible on the Entity Object. Is there any way I can automatically refresh the Entity Objects after altering the table(only column width is changed).
    (Changes made to Entity Objects manually are reflected in the View Object correctly.)
    Regards
    Faiyaz

    'changing the width of the column' means changing the size of the column in the table description in the database. For e.g.. In the original table I had a column OIL_KEY NUMBER(6). Now I change the column to be of size 12 i.e. OIL_KEY NUMBER(12). This does not get refreshed in the Entity Object.

  • Problem in Insertion into table through After Report Parameter form trigger

    Hi All,
    I am getting problem in inserting some data into temp table through Report.
    My requirement is like that, I have to do a calculation based on user parameters, and then insert the data into the temp table. I wanted to do this into After Report Parameter form trigger function. I have done all the calculation and wrote all the insert statement in that function. There is no problem in compilation. then I am taking value from this temp table in my formula columns.
    When I run this report, it hangs, don't understand what is the problem.Can anybody help me out in this.
    Thanks,
    Nidhi

    The code is as follows:
    function AfterPForm return boolean is
    CURSOR CUR_RECEIPT(RECEIPT_NUM_FROM NUMBER, RECEIPT_NUM_TO NUMBER) IS
    SELECT DISTINCT receipt, item_no FROM xxeeg.xxeeg_1229_sp_putaway WHERE RECEIPT BETWEEN
    RECEIPT_NUM_FROM AND RECEIPT_NUM_TO ;
    V_CUR_RECEIPT CUR_RECEIPT%ROWTYPE;
    begin
    OPEN CUR_RECEIPT(:RECEIPT_NUM_FROM, :RECEIPT_NUM_TO);
    FETCH CUR_RECEIPT
    INTO V_CUR_RECEIPT;
    LOOP
    EXIT WHEN CUR_RECEIPT%NOTFOUND;
    IF V_CUR_RECEIPT.ITEM_NO = 'TEST1' AND V_CUR_RECEIPT.RECEIPT = '12' THEN
    INSERT INTO SP_TEMP
    (RECEIPT, ITEM_NO, LOCATION1)
    VALUES
    (V_CUR_RECEIPT.RECEIPT, V_CUR_RECEIPT.ITEM_NO, 10);
    UPDATE SP_TEMP
    SET LOCATION2 = 12
    WHERE RECEIPT = V_CUR_RECEIPT.RECEIPT AND ITEM_NO = V_CUR_RECEIPT.ITEM_NO;
    UPDATE SP_TEMP
    SET LOCATION3 = 13
    WHERE RECEIPT = V_CUR_RECEIPT.RECEIPT AND ITEM_NO = V_CUR_RECEIPT.ITEM_NO;
    UPDATE SP_TEMP
    SET LOCATION4 = 14
    WHERE RECEIPT = V_CUR_RECEIPT.RECEIPT AND ITEM_NO = V_CUR_RECEIPT.ITEM_NO;
    ELSE
    IF V_CUR_RECEIPT.ITEM_NO = 'TEST2' AND V_CUR_RECEIPT.RECEIPT = '12' THEN
    INSERT INTO SP_TEMP
    (RECEIPT, ITEM_NO, LOCATION1)
    VALUES
    (V_CUR_RECEIPT.RECEIPT, V_CUR_RECEIPT.ITEM_NO, 10);
    UPDATE SP_TEMP
    SET LOCATION2 = 16
    WHERE RECEIPT = V_CUR_RECEIPT.RECEIPT AND ITEM_NO = V_CUR_RECEIPT.ITEM_NO;
    UPDATE SP_TEMP
    SET LOCATION3 = 17
    WHERE RECEIPT = V_CUR_RECEIPT.RECEIPT AND ITEM_NO =V_CUR_RECEIPT.ITEM_NO;
    UPDATE SP_TEMP
    SET LOCATION4 = 18
    WHERE RECEIPT = V_CUR_RECEIPT.RECEIPT AND ITEM_NO = V_CUR_RECEIPT.ITEM_NO;
    ELSE
    INSERT INTO SP_TEMP
    (RECEIPT, ITEM_NO, LOCATION1)
    VALUES
    (V_CUR_RECEIPT.RECEIPT, V_CUR_RECEIPT.ITEM_NO, 10);
    UPDATE SP_TEMP
    SET LOCATION2 = 19
    WHERE RECEIPT = V_CUR_RECEIPT.RECEIPT AND ITEM_NO = V_CUR_RECEIPT.ITEM_NO;
    UPDATE SP_TEMP
    SET LOCATION3 = 20
    WHERE RECEIPT = V_CUR_RECEIPT.RECEIPT AND ITEM_NO =V_CUR_RECEIPT.ITEM_NO;
    UPDATE SP_TEMP
    SET LOCATION4 = 21
    WHERE RECEIPT = V_CUR_RECEIPT.RECEIPT AND ITEM_NO = V_CUR_RECEIPT.ITEM_NO;
    END IF;
    END IF;
    END LOOP;
    COMMIT;
    CLOSE CUR_RECEIPT;
    return(TRUE);
    end;
    .....................................................................................................................

  • Service not working after altering Model provider class

    Dear all,
    I have created a OData service and consumed it successfully. I was able to post data to it. Now after altering the "model class" i.e., adding one property and changing ABAP Dictionary type. After doing these changes but i couldn;t consume the service and get "500 Internal server".
    Did anyone experience this problem? Please note i didnt use Service builder(SEGW) to create a project instead i did all manually using Model and Data provider classes.
    Please suggest. Your help is appreciated.
    Points will be awarded to helpful answers.
    Regards
    Prabaharan

    Hello Prabaharan,
    This is a generic error at client side and there can be multiple reasons for it. This error is from the hub system and only way to check this error is to look into error log and application log in hub system.
    Common Problems: property type errors (date, decimal/precision etc.)
    But looking at the problem you are facing like Ron suggested you might get 500 internal server error because properties like data and time need to be defined nullable and you might have missed that.
    Kindly check and mark fields as nullable if properties you are sending in the payload are null values.
    lo_property->set_nullable( ).
    Cache clean up is required only when you have done some changes to your model.
    See the metadata and confirm if the new property added by you is present. if you are not able to see then do the following.
        Try Clearing the cache using /n/iwbep/cache_cleanup and /n/iwfnd/cache_cleanup t-code.
        Also clear server cache using /nsmicm t-code as shown below.
    Regards,
    Ashwin

  • After Logon on Database Trigger Not Working From Client Terminal

    Hi Every One
    I Have a Problem, I'am Using Oracle 10g R2, I'd Written After Logon on Database Trigger, I'd Written The Trigger Under The Under The User With DBA Privileges, and it is work Fine, but it is work only when i Logon On The Database from The Server Terminal with any user, and If Logon From any Other Terminal It Is Not Work,
    Can any One Know The Reason, Please Help me
    Yasser Mokhtar

    Please post the trigger code.

  • Invoke execute_query after an on-update trigger

    Hi there,
    i try to do an execute_query after an on-update trigger.
    The trigger can't do this. When, and with wich trigger can i make the block to 'refresh'??
    Thanx in advance.
    Edwin Smal

    Hello,
    ON-UPDATE trigger fires in the validation process (commit)
    put the execute_query after the commit_form (which is placed in a KEY-COMMIT trigger)
    Francois

  • Performance is slow after running Gather Schema Statistic

    Performance is slow after running Gather Schema Statistic. Reports are taking long time to complete than earlier.
    R12 Application and 10.2.0.4 is the database version.

    Hi;
    Please review:
    gather schema stats conc. program taking too long time
    Re: gather schema stats conc. program taking too long time
    Regard
    Helios

  • After altering the "Processes" list in Task manager, almost all of my programs show the iTunes icon, and when I click on, for example, Firefox, iTunes will load. Uninstalling iTunes restores the normal loading of other programs, but re-installation of iT

    After altering the "Processes" list in Task manager, almost all of my programs show the iTunes icon, and when I click on, for example, Firefox, iTunes will load. Uninstalling iTunes restores the normal loading of other programs, but re-installation of iTunes makes the problem recur. Any answers?

    First I'd set up a System Restore point. Then try applying the LNK registry fix from the following document:
    File Association Fixes for Windows 7
    Does that get your icons back to normal?

  • Alter another schema procedures packages

    Hi,
    how to alter another schema stored procedure.. except alter any procedure privillege
    SQL> alter procedure oe.getDBUSERByUserId compile;
    alter procedure oe.getDBUSERByUserId compile
    ERROR at line 1:
    ORA-01031: insufficient privileges
    Thanks

    user2017273 wrote:
    Hi,
    how to alter another schema stored procedure.. except alter any procedure privillege
    SQL> alter procedure oe.getDBUSERByUserId compile;
    alter procedure oe.getDBUSERByUserId compile
    ERROR at line 1:
    ORA-01031: insufficient privileges
    Thanksyou do not do so.

  • BEFORE/AFTER CREATE ON SCHEMA

    All,
    I have a schema ORA and i have 60 tables and i have a audit table(stats_log)... but i have to eliminate 8 tables
    from audit (DDL,DML) operations...
    CREATE TABLE stats_log (
    operation VARCHAR2(30),
    obj_owner VARCHAR2(30),
    object_name VARCHAR2(30),
    sql_text VARCHAR2(64),
    attempt_by VARCHAR2(30),
    attempt_dt DATE);
    I have used BEFORE CREATE OR ALTER OR DROP ON SCHEMA(working fine), but the trigger action includes all the tables in the ORA Schema..
    Do i need to create individual trigger for each table?
    Regards,
    ~ORA

    Hi all,
    CREATE OR REPLACE TRIGGER ddl_log_trigger
    BEFORE CREATE
    ON SCHEMA
    DECLARE
    sql_text ora_name_list_t;
    i PLS_INTEGER;
    BEGIN
    i := ora_sql_txt(sql_text);
    IF NOT IN('EMP') THEN
    INSERT INTO stats
    SELECT sys_context('USERENV','SESSIONID'),
    sys_context('USERENV','HOST'),
    ora_sysevent,
    ora_dict_obj_owner,
    ora_dict_obj_name,
    sql_text(1),
    USER,
    SYSDATE
    FROM dual;
    END IF;
    END ddl_log_trigger;
    Warning: Trigger created with compilation errors.
    SQL> sho errors;
    Errors for TRIGGER DDL_LOG_TRIGGER:
    LINE/COL ERROR
    6/14 PLS-00103: Encountered the symbol "IN" when expecting one of the
    following:
    ( - + case mod new null <an identifier>
    <a double-quoted delimited-identifier> <a bind variable> avg
    count current exists max min prior sql stddev sum variance
    execute forall merge time timestamp interval date
    <a string literal with character set specification>
    <a number> <a single-quoted SQL string> pipe
    <an alternatively-quoted string literal with character set
    specification>
    <an alternatively-quoted SQL
    LINE/COL ERROR
    Any IDeas?

  • Error after installing scheduler schema in BI Publisher

    Hi,
    I am using BI publisher for generating a custom report for OIM users. After installing the schedular schema via admin-> Scheduler Configuration -> Install Schema, am getting below error. Please let me the way to resolve if anyone faced this issue.
    I have commons-dbcp-1.1.jar in lib of xmlpserver. Also tried with placing the below jars.
    commons-dbcp-20030818.201141.jar
    commons-dbcp-all-1.3.jar
    commons-dbcp-all-1.3-r699049.jar
    weblogic.application.ModuleException: [HTTP:101216]Servlet: "QuartzInitializer" failed to preload on startup in Web
    application: "xmlpserver".
    java.lang.NoClassDefFoundError: org/apache/commons/dbcp/BasicDataSource
    at org.quartz.utils.PoolingConnectionProvider.initialize(PoolingConnectionProvider.java:173)
    at org.quartz.utils.PoolingConnectionProvider.<init>(PoolingConnectionProvider.java:102)
    at org.quartz.impl.StdSchedulerFactory.instantiate(StdSchedulerFactory.java:960)
    at org.quartz.impl.StdSchedulerFactory.getScheduler(StdSchedulerFactory.java:1376)
    at org.quartz.ee.servlet.QuartzInitializerServlet.init(QuartzInitializerServlet.java:160)
    at
    oracle.apps.xdo.servlet.scheduler.quartz.ExtendedQuartzInitializerServlet.init(ExtendedQuartzInitializerServlet.java:124)
    at weblogic.servlet.internal.StubSecurityHelper$ServletInitAction.run(StubSecurityHelper.java:283)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
    at weblogic.servlet.internal.StubSecurityHelper.createServlet(StubSecurityHelper.java:64)
    at weblogic.servlet.internal.StubLifecycleHelper.createOneInstance(StubLifecycleHelper.java:58)
    at weblogic.servlet.internal.StubLifecycleHelper.<init>(StubLifecycleHelper.java:48)
    at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:539)
    at weblogic.servlet.internal.WebAppServletContext.preloadServlet(WebAppServletContext.java:1976)
    at weblogic.servlet.internal.WebAppServletContext.loadServletsOnStartup(WebAppServletContext.java:1950)
    at weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppServletContext.java:1869)
    at weblogic.servlet.internal.WebAppServletContext.start(WebAppServletContext.java:3126)
    at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:1512)
    at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:486)
    at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:425)
    at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:41)
    at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:119)
    at weblogic.application.internal.flow.ScopedModuleDriver.start(ScopedModuleDriver.java:200)
    at weblogic.application.internal.flow.ModuleListenerInvoker.start(ModuleListenerInvoker.java:247)
    at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:425)
    at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:41)
    at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:119)
    at weblogic.application.internal.flow.StartModulesFlow.activate(StartModulesFlow.java:27)
    at weblogic.application.internal.BaseDeployment$2.next(BaseDeployment.java:1267)
    at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:41)
    at weblogic.application.internal.BaseDeployment.activate(BaseDeployment.java:409)
    at weblogic.application.internal.SingleModuleDeployment.activate(SingleModuleDeployment.java:43)
    at weblogic.application.internal.DeploymentStateChecker.activate(DeploymentStateChecker.java:161)
    at weblogic.deploy.internal.targetserver.AppContainerInvoker.activate(AppContainerInvoker.java:79)
    at weblogic.deploy.internal.targetserver.BasicDeployment.activate(BasicDeployment.java:184)
    at weblogic.deploy.internal.targetserver.BasicDeployment.activateFromServerLifecycle(BasicDeployment.java:361)
    at weblogic.management.deploy.internal.DeploymentAdapter$1.doActivate(DeploymentAdapter.java:51)
    at weblogic.management.deploy.internal.DeploymentAdapter.activate(DeploymentAdapter.java:200)
    at weblogic.management.deploy.internal.AppTransition$2.transitionApp(AppTransition.java:30)
    at weblogic.management.deploy.internal.ConfiguredDeployments.transitionApps(ConfiguredDeployments.java:240)
    at weblogic.management.deploy.internal.ConfiguredDeployments.activate(ConfiguredDeployments.java:169)
    at weblogic.management.deploy.internal.ConfiguredDeployments.deploy(ConfiguredDeployments.java:123)
    at weblogic.management.deploy.internal.DeploymentServerService.resume(DeploymentServerService.java:180)
    at weblogic.management.deploy.internal.DeploymentServerService.start(DeploymentServerService.java:96)
    at weblogic.t3.srvr.SubsystemRequest.run(SubsystemRequest.java:64)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:1514)
    at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:486)
    at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:425)
    at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:41)
    at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:119)
    at weblogic.application.internal.flow.ScopedModuleDriver.start(ScopedModuleDriver.java:200)
    at weblogic.application.internal.flow.ModuleListenerInvoker.start(ModuleListenerInvoker.java:247)
    at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:425)
    at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:41)
    at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:119)
    at weblogic.application.internal.flow.StartModulesFlow.activate(StartModulesFlow.java:27)
    at weblogic.application.internal.BaseDeployment$2.next(BaseDeployment.java:1267)
    at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:41)
    at weblogic.application.internal.BaseDeployment.activate(BaseDeployment.java:409)
    at weblogic.application.internal.SingleModuleDeployment.activate(SingleModuleDeployment.java:43)
    at weblogic.application.internal.DeploymentStateChecker.activate(DeploymentStateChecker.java:161)
    at weblogic.deploy.internal.targetserver.AppContainerInvoker.activate(AppContainerInvoker.java:79)
    at weblogic.deploy.internal.targetserver.BasicDeployment.activate(BasicDeployment.java:184)
    at weblogic.deploy.internal.targetserver.BasicDeployment.activateFromServerLifecycle(BasicDeployment.java:361)
    at weblogic.management.deploy.internal.DeploymentAdapter$1.doActivate(DeploymentAdapter.java:51)
    at weblogic.management.deploy.internal.DeploymentAdapter.activate(DeploymentAdapter.java:200)
    at weblogic.management.deploy.internal.AppTransition$2.transitionApp(AppTransition.java:30)
    at weblogic.management.deploy.internal.ConfiguredDeployments.transitionApps(ConfiguredDeployments.java:240)
    at weblogic.management.deploy.internal.ConfiguredDeployments.activate(ConfiguredDeployments.java:169)
    at weblogic.management.deploy.internal.ConfiguredDeployments.deploy(ConfiguredDeployments.java:123)
    at weblogic.management.deploy.internal.DeploymentServerService.resume(DeploymentServerService.java:180)
    at weblogic.management.deploy.internal.DeploymentServerService.start(DeploymentServerService.java:96)
    at weblogic.t3.srvr.SubsystemRequest.run(SubsystemRequest.java:64)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    Edited by: 856226 on May 24, 2011 5:43 AM

    - Which release of BIP are you using?
    - Did you use the BI Publisher installer for BIP or did you install it manually?
    - In 10g BIP the prerequisite to install the scheduler schema is to have an existing schema and deploy it there.
    - What documentation did you follow?
    Thanks
    Jorge

  • Azure Website doesn't recognize my Database's Table after changing the Schema

    I have a Microsoft Azure Website running and working with an Azure SQL Database for the sole purpose of storing and retrieving user accounts. However I needed a mobile client as well there fore according to numerous tutorials online such as [THIS][1],
    I had to change the 'schema' of the database from 'dbo' to my mobile service's name which is 'usermobileservice'. 
    This was done using the SQL query:
    CREATE SCHEMA usermobileservice;    ALTER SCHEMA usermobileserviceTRANSFER dbo.usertable;
    This did the trick and I was able to connect to the Database using my mobile applications BUT now I can't access the database using my Azure Website! Gives me this error:
    Server Error in '/' Application.
    Invalid object name 'UserTable'.
    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 
    Exception Details: System.Data.SqlClient.SqlException: Invalid object name 'UserTable'.
    I believe the ASP.NET Web Application cannot find the Database Table anymore since I changed the schema? What is the right way of sharing the data between a Website and a Mobile Service?

    Hi,
    Thank you for your post.
    I am trying to involve someone familiar with this topic to further look at this issue.
    In the meantime, please have a check on the below link and check if it helps.
    https://social.msdn.microsoft.com/Forums/azure/en-US/60764eb6-17d0-4395-a887-2a793b44ce88/connect-mobile-service-to-an-existing-database?forum=azuremobile
    Regards,
    Mekh.

Maybe you are looking for

  • How do I transfer my iTunes account to a new computer?

    I'm trying to use Home Sharing to transfer my iTunes account from one computer to another. Home Sharing is turned "on" on both computers, but I cannot find any way to import my account on the new computer. How is this done? Thanks!!

  • Unable to write text in safari

    Since the last update I've been noticing that many times when I'm typing on a web page (pages that I've visited for years) safari, atomic, and chrome browsers will stop allowing me to edit or create text within boxes made to type out text. I've tried

  • Mail: no entry for mailbox id 2 in the cache; this should never happen

    My system log is full of thousands of errors from Mail: 3/20/15 5:26:50.009 PM Mail[7303]: no entry for mailbox id 2 in the cache; this should never happen It appears to generate a few hundred of these entries every time I launch Mail, check for new

  • How do you stretch the webpage not maximum, but a little bit?

    I go to the edge and see the arrows where it should stretch but using a tap or two and dragging doesn't do anything... how does it work? I'm seeing if I can transition from the macbook pro to the desktop but the tapping and selecting processes don't

  • Optimal settings for Export to Web

    My source video is 1280 x 720, coming from a Canon SD780 camera. The video creation process goes fine until I get to the point where I need to export the video to the web. Here's what I do and what happens for a 1 minute video: 1) Export to Quick Tim