After starting on the database

Hi all

For my needs, I need to create a startup after the outbreak of the database, the database, there are 2 diagrams, within each schema a procedure must be executed in the database trigger body.

Is it possible to create such a release.

Thank you
Rambeau

Raghu Hi, Hi user2361373

The user2361373 solution is basically correct.
However, it will review procedures schema1.proc and schema2.proc are passed as the owner of the trigger to start, possibly SYS. Maybe it's that it's ok, but it may be also that you want to perform the procedures as long as the user schema.

This isn't a real problem. You can create basically AFTER STARTUP ON DATABASE triggers for each user, i.e. also for users schema1 and schema2. then, each trigger will be executed separately as user schema1 and schema2.
To create such a release, you must have extended privileges (DBA or such), ordinary users normally do not have these. However, you can temporarily grant DBA to these users and revoke, when the triggers were created. Or you can let a user with DBA privileges create the trigger for users schema1 and schema2.

To run these triggers, no privileges are required.

Concerning
Christoph

Tags: Database

Similar Questions

  • Stop and start BECAUSE the database with standby

    Hi all


    Oracle 10.2.0

    I am new to Oracle RAC.

    Is there any order or the way I shlould follow when stopping or starting up a database cluster with database pending.

    I don't know the format. Which is in a way even as single instance Oracle.

    1 depress the standby database.
    2 knock the lsnrctl to standby.
    3 stop primary database.
    4 depress the lsnrctl for primary education.

    Please advice...

    TIA,

    Published by: ORCLDB on March 21, 2009 09:05

    Hello

    First make sure that both nodes are running, usually clusterware returns automatically after the reboot, but you can handle manually to help. Also use cluvfy for validation test after the interview.

    crsctl stop crs
    
    crsctl start crs
    
    srvctl start listener -n mynode1
    
    srvctl start database -d db_name
    
    srvctl start service -d db_name
    
    crs_stat -t to verify which services are offline or online
    

    Concerning

  • User passwords do not work at the level of the application after updating of the database

    Hello

    Working on the updating of the database user passwords do not work for front end users but the same passwords work at the db level.

    We backup before refresh and restraint after the update, but if the user tries to connect to db, they receive the error invalid password/username.

    but passwords are working at the level of the DB if reset us the password then it works fine, but we cannot do this for all users of all time. can someone share the knowledge or solution for this problem.

    DB version: 11.2.0.3

    operating system: AIX

    Thank you

    892574 wrote:

    Yes, the process is correct.

    We are capture passwords user via display SYS. USER$

    I didn't see any errors in the logs I see only out put modified user.

    Thank you

    Do you mean that you update the column SPARE4 of $ USER (which is a table, not a view)? I don't think it will work, because the password is salted with a random string that will be different in the two databases. It might work if you return to the use of passwords for 10g, which are salty with the user name. See here, the 10 GB hash stored in the PASSWORD column is the same in the two databases, but the 11g in SPARE4 hash is different:

    orclz >

    orclz > conn sys/oracle@orclz as sysdba

    Connected.

    orclz > create user fred identified by Ginger;

    Created by the user.

    orclz > select password, spare4 of user$ where name = 'FRED ';

    PASSWORD

    ------------------------------------------------------------------------------------------------------

    SPARE4

    ------------------------------------------------------------------------------------------------------

    9C592D45D54D1FB2

    S:DF5BEC6914DFF48B39261EAA4DCF5746A309E50E791F6F90FBF2F33A8CD5; H:22E34131E43CC3DF07440A0DC2A45F22

    orclz > conn sys/oracle@orcla as sysdba

    Connected.

    orcla > create user fred identified by Ginger;

    Created by the user.

    orcla > select password, spare4 of user$ where name = 'FRED ';

    PASSWORD

    ------------------------------------------------------------------------------------------------------

    SPARE4

    ------------------------------------------------------------------------------------------------------

    9C592D45D54D1FB2

    S:4FE5925E671719B9CA5904C42AAD965753CAC4891C31F1BA9B9DA83D3255; H:22E34131E43CC3DF07440A0DC2A45F22

    orcla >

  • Need help to configure Auto-start for the database

    Hello

    DB version: 11.2
    OS: RHEL 5

    Please help me
    I want to configure the database and listener in auto-start during the startup process of the operating system.

    Concerning

    Step 1 of the oracle user

    CD $ORACLE_HOME/bin
    VI dbstart
    VI dbshut

    changed the

    LISTENER_ORACLE_HOME = $1

    TO

    LISTENER_ORACLE_HOME = $ORACLE_HOME

    Step-2 of the root user

    VI /etc/init.d/dbora

    #! / bin/sh

    Oracle # these scripts runs the listner and Oracle database server.
    #
    # chkconfig: 345 81 81
    Description #: this is the Oracle
    #

    # Define ORA_HOME as equivalent to the ORACLE_HOME
    # from which you want to run dbstart and
    # dbshut
    # the value ORA_OWNER to the userid of the owner of the
    # Oracle in ORA_HOME Server

    ORACLE_HOME=/U01/app/Oracle/product/10.2.0/Db_1
    ORA_OWNER = oracle

    If [! f $ORACLE_HOME/bin/dbstart]
    then
    echo "Oracle startup: cannot start.
    Output 1
    FI

    case '$1' in
    'Start')

    # Run Oracle databases:
    # The following command assumes that the oracle connection will encourage not the
    user # all values

    known - $ORA_OWNER - c "start ORACLE_HOME/bin/lsnrctl $".
    Su - $ORA_OWNER-c "$ORACLE_HOME/bin/dbstart.
    ;;
    'stop')

    # Stop the Oracle databases:
    # The following command assumes that the oracle connection will encourage not the
    user # all values

    known - $ORA_OWNER - c "judgment of $ORACLE_HOME/bin/lsnrctl.
    Su - $ORA_OWNER-c "$ORACLE_HOME/bin/dbshut.
    ;;
    ESAC

    Exit 0

    Note: Please check your ORACLE_HOME

    Step-3 of the root user

    chmod 755 released
    chkconfig released on

    VI/etc/oratab
    ORCL:/U01/app/Oracle/product/10.2.0/Db_1:Y

    Step 4 Test the automatic start of the root user

    stop /etc/init.d/Dbora
    stop /etc/init.d/Dbora

    Or

    Restart the server

    You can also view
    http://www.Oracle-base.com/articles/Linux/automating-database-startup-and-shutdown-on-Linux.php
    http://docs.Oracle.com/CD/E11882_01/server.112/e10839/strt_stp.htm#BABGDGHF

  • Check if the automatic start of the database is enabled or not?

    Grid Infra RDBMS/Version: 11.2.0.4
    Platform: Oracle Linux 6.3

    Disable us automatic restart with the CRS database by using the following command.

    $ srvctl disable the database < name of comics > d

    How can I check if the auto restart DB is enabled or disabled?

    Add the - a switch to the command of srvctl config database. (of 11.2.0.3 GI + RDBMS):

    [oracle@s600986sc0sl01 ~] $ srvctl disable the d SC01000 database

    [oracle@s600986sc0sl01 ~] $ srvctl config database-d SC01000 - a

    Unique name of database: SC01000

    Name of the database: SC01000

    ...

    Database is disabled

    Database is managed administrator

    [oracle@s600986sc0sl01 ~] $ srvctl activate database d SC01000

    [oracle@s600986sc0sl01 ~] $ srvctl config database-d SC01000 - a

    ...

    Database is enabled

    Database is managed administrator

  • Unable to start the virtual Center after removal of the database

    Hello

    I've migrated my database of vc sql200O for sql 2008.

    The migration went smooth without error (I followed the vmware 7960893 kb). I changed the dsn system on the new server name.

    But when I try to start the virtual Center service that it fails.

    I get this error in the log:

    VDB::connection:TestConnection SQLExecute failed: S 42 02:208

    VDB::LockRepositoryHelper Missing table Vpx_dual

    Could not initialize the VMware VirtualCenter. Closing...

    Force the closure of VMware VirtualCenter now

    Someone at - it an idea?

    New server is win2008 64 bit thanks

    If anyone can confirm this?

    then of course, you have tested the connection, but you have not read the manual?

    NO, this is NOT supported, there is your problem.

  • A few minutes after starting windows, the laptop crashes

    I use a Toshiba laptop model: ppm81e, with windows Vista professional.
    Last night it was working fine, but when I woke up this morning, I found that the notebook is turned off. Apparently, for three hours, there was no electricity in our region and which caused the closing down.

    When I turn on the laptop, all load pretty normal as before. However, 4 to 7 minutes after the start, computer crashes laptop all at once. I can't disconnect, I can't restart, I can not load the Task Manager, and same taskbar are locked. At the beginning of the process hangs, I can switch between the windows using Alt + Tab but it is useless and will not help anything...

    I tried to use system restore, but unfortunately it says there is no restore point previous (I guess it is disabled).
    So I tried to use the repair using Recovery DVD that I did the first time I turned on the laptop.

    So, I inserted the recovery disc 1 DVD and boot from the DVD.
    Now he's stuck in a scene where says:
    ' Waiting for ODD vacancies...
    STRANGE drive f: loan.
    Check for support in the F: drive... »

    And it is about 30 to 40 minutes, that's all there is...

    Here is the screenshot:
    Screenshot 1
    Screenshot 2

    I don't know why the laptop is suspended without no reason that I can think of and I don't know how to get out of this mess, especially when my last shot (DVD release) adds another problem to the equation, instead of solving a.

    Please guide me.

    Hi Jean did.

    I suggest that you contact Toshiba support for help with the recovery process.

    http://www.CSD.Toshiba.com/cgi-bin/TAIS/support/JSP/home.jsp

    If you are able to solve the problem of recovery process and the laptop still crashes at startup, then it is possible that some third-party programs installed on the computer is causing the problem.

    I suggest that you put the computer in a clean boot state and check.

    To help resolve the error and other messages, you can start Windows Vista or Windows 7 by using a minimal set of drivers and startup programs. This type of boot is known as a "clean boot". A clean boot helps eliminate software conflicts.

    See the link below to learn more about how to clean boot.

    How to troubleshoot a problem by performing a clean boot in Windows Vista or in Windows 7

    http://support.Microsoft.com/kb/929135

    Reset the computer to start as usual

    When you are finished troubleshooting, follow these steps to reset the computer to start as usual:

    (a) click Start, type msconfig in the search box and press ENTER.

    (b) If you are prompted for an administrator password or for confirmation, type your password or click on continue.

    (c) under the general tab, click the Normal startup option, and then click OK.

    (d) when you are prompted to restart the computer, click on restart.

  • Automatic start of the database, authentication at the start of the OS failure

    Hello world

    We have installed the oracle 11g on OEL 6.4 database, and we tried to start follow these automaticlly this source

    http://docs.Oracle.com/CD/B28359_01/server.111/b32009/strt_stp.htm#UNXAR172

    but instead to use rsh, we try to use ssh to do we create public keys and test our script from root and starting databases successfully. But when we reboot OS it sends this:

    Permission denied (publickey, gssapi-keyex, gssapi-with-mic)

    Kind regards

    René.

    A: one of the approaches is to use dbstart and dbshut by init.d scripts

    Another way is to create your own script. To do this, create your own 'freed' in the directory /etc/init.d/ script

    # touch /etc/init.d/dbora

    -------------------------------------------------------------------------------------

    #! / bin/sh

    # chkconfig: 345 99 10

    Description #: Oracle automatic start-stop script.

    # Applies to the Orcle/10 / 11g

    #

    # Set ORA_HOME

    # Set ORA_OWNER

    ORA_HOME=/DBServer/app/Oracle/product/11.2.0/dbhome_1

    ORA_OWNER = oracle

    If [! f $ORA_HOME/bin/dbstart]

    then

    echo "" Oracle startup: error $ORA_HOME/bin/dbstart does not exist, cannot start ".

    output

    FI

    case '$1' in

    'Start')

    # Run Oracle databases:

    # The following command assumes that the oracle connection

    # will not prompt the user for all values

    Su - $ORA_OWNER-c "$ORA_HOME/bin/dbstart $ORA_HOME.

    touch/var/lock/subsys/Ben

    ;;

    'stop')

    # Stop the Oracle databases:

    Su - $ORA_OWNER-c "$ORA_HOME/bin/dbshut $ORA_HOME.

    RM-f/var/lock/subsys/Ben

    ;;

    ESAC

    ----------------------------------------------------------------------------------------------------------------

    #Edit the file "/ etc/oratab" and put the flag of the desired instance started to 'Y '.

    #MYDB1:/u01/app/oracle/product/10.2.0:Y

    #Add released in init.d

    [#[root@host ~] # chkconfig--add released

    #Set the right permissions

    750 /etc/init.d/dbora #chmod

    [root@dba ~] # service released stop

    log file /dbserver/app/oracle/product/11.2.0/dbhome_1/shutdown.log

    [root@dba ~] # start service released

    log file /dbserver/app/oracle/product/11.2.0/dbhome_1/startup.log

  • Run a view after validation of the database

    Hi all

    I am a beginner with ADF 11 g.

    I have a database view that makes some calculation based on the tables in the db. I have let down on the top of my template. Using this model, I create other pages with tables, and now I want to rerun this view after the transaction to commit on any table in my application. How can I do?

    Any help will be appreciated.

    Kind regards
    Wojtek.

    Hello

    a way to handle this use case would be to define a managed bean and create a JSF component binding (using the table binding property) for the table. To do this, you go to the table in the model, select the binding of the table property, then click the right arrow. Choose Edit from the context menu, and then create a managed bean (for example you named the managed bean "templateBean" and the bean class name is "TemplateBean") and a name for the set/get methods that are created and referenced by EL (say that you named the 'templateTable1' table property). This creates a bean managed in the config.xml file by default adfc, this bean is in the scope of the request.

    Create a method in the same managed bean

    public void refreshTemplateTable(){
    
      RichTable table = this.getTemplateTable1();
      CollectionModel model = (CollectionModel) table.getValue();
      JUCtrlHierBinding adfTableBinding = (JUCtrlHierBinding) table.getWrappedData();
      //re-execute the View Object (iterator) displaying in the table in the template
      DCIteratorBinding iter = adfTableBinding.getDCIteratorBinding();
      iter.execute();
      //PPR the table in the UI
      AdfFacesContext.getCurrentInstance().addPartialTarget(table);
    
    }
    

    Now, whenever you need to update the table in the model - for example when a user validates data - you dial the following code

          FacesContext fctx = FacesContext.getCurrentInstance();
          ELContext elctx = fctx.getELContext();
          ExpressionFactory efactory = fctx.getApplication().getExpressionFactory();
          //get access to the managed bean that is referenced by the table in the template
          ValueExpression ve = efactory.createValueExpression(elctx, "#{templateBean}", Object.class);
          TemplateBean templateBean = (TemplateBean) ve.getValue(elctx);
          //re-execute the query for the table in the template
          templateBean.refreshTemplateTable();
    

    This solution gives you explicit control when the iterator must be refreshed (which can also be useful in other cases of use)

    Note: If the template is used on stubborn workflows, so make sure that you explicitly create the definition of bean managed in the configuration of the workflow of the stubborn workflow

    Frank

  • Configure the application server after you change the database

    Dear all,

    We use ORACLE EBS R.12.1.2. Database: 11.1.0.7. 2 RedHat linux servers.

    We are validating failover scenarios keep oracle database data.

    Scenarios is that; We fail on the primary database and primary database role has opted for sleep.

    Should what changes we make on the Application Server?

    Should we change configuration of application server to connect to the new database (name, address of db server... etc). and how?

    Thanks in advance,

    Shareef

    PL see Section 6 in MOS Doc 1545920.1

  • Update Manager error after migration of the database to a different instance.

    Hey everybody,

    I've migrated the SQL Express databases to the named instance of SQL Standard.  It's all 2008 R2.  The three migrated databases were VCenter, VirtualManagerDB and VSphereUpdateManager.  Domain in SQL accounts have been migrated to the new instance of the box.

    Now, I get this error when trying to open VSphere:

    Call 'ServiceDirectory.QueryServiceEndpointList' of object "ServiceDirectory" on vCenter Server '192.168.123.160' failed.

    Can someone help me understand this?  This is an installation VCenter 5.0 on a Windows 2008R2 server that is also running SQL Server 2008 R2 standard with an Express instance and a named instance.  I've migrated from the express instance in order to overcome the 4 GB limit on the explicit instance.

    Thank you

    Joe

    UPD Bishop uses a 32-bit DSN, so you'll need to use C:\Windows\SysWOW64\odbcad32.exe to access/view/edit the correct DSN on Win2k8

    -KjB

  • After you rename the data file, cannot start database

    Oracle 11 g 2
    OEL 5 (ASM)
    Network infrastructure (cluster install) - no CARS yet

    Something interesting happened. Perhaps this question might be more suited to the "ASM" section, but that's.

    I gave a data in ASM file an alias with the following command (the ASM instance):
    SQL> alter diskgroup DATA add alias '+DATA/oradb/datafile/users01.dbf' for '+DATA/oradb/datafile/users.253.795630487';
    
    Diskgroup altered.
    Then, as mentioned in Note: 564993.1, we need to update the database as well with the new alias. However, when I went to the stopping and starting of the database, I received the following:
    SQL> shutdown immediate;
    Database closed.
    Database dismounted.
    ORACLE instance shut down.
    SQL> startup mount;
    ORA-12514: TNS:listener does not currently know of service requested in connect descriptor
    It's strange. Nothing has changed except the alias being added to the data file. This is all before operation. That's happened?

    I think that it may have to do with the different ASMOPER, ASMADMIN, ASMDBA groups that have been installed as part of the installation of the grid Infrastructure. In addition, the listener is running out of the GI home.

    All my variables environment (e.g. ORACLE_SID, ORACLE_HOME, etc.) are defined.

    Any ideas?

    Thank you.

    Hello
    When you connect with tnsnames alias while the database is down the listner did not know the service, so you must start the database on the server database with sqlplus / as sysdba. After starting the registry of data base with the listener and your connection works again.
    Alternativ you can add a service to your listener.ora to connect with him while he is arrested, as long as you do not have it you must use local connect which means sqlplus / as sysdba.

    concerning
    Peter

  • Satellite Pro C650, boots OK, after Windows starts to the top of the screen becomes white

    Hello

    I have a Satellite Pro C650.
    It starts very well.
    I see Windows commissioning - after start-up - the screen goes completely white.

    Has anyone seen this?

    Am geussing there could be a loose view link - but I have the screen displays the start-up and initial windows startup sequence.

    Kind regards
    eeiddne

    Hello

    I put t think that your display is faulty.
    What happens if you access the BIOS at the beginning?
    To access the BIOS F2 press and turn the device on/off.

    Access the BIOS and let it run for a few minutes and check if the display starts at White.

    In addition its recommended to connect an external monitor and generate the display 2. If the 2nd screen is not OK, then the graphics chip could be the troublemaker.

  • Stop instances of database and restart the server without the databases to start.

    We run Oracle database-10 enterprise edition release 10.2.0.4.0 Server 64 bit pl/sql release 10.2.0.4.0 production.

    How can I restart the servet without restarting eks f. databases using enterprise manager.

    I think that you need to do is go into the oratab file and mark each database defined to be launched automatically at startup may not be set to auto-start. When does do what you do now, you need to reset the indicator to Y. I don't think that you would do this through EM.

    We all have our value database no automatic start and have our own startup scripts that run a series of startup scripts for action. This was to our system administrators who did not want the Oracle in the way when they apply the patches or required physical changes than re-boot and start loading action scripts and PIN large objects in the shared pool before getting started as the database is used by applications.

    HTH - Mark D Powell.

  • PS Installation: Engine command line Application error - could not sign the database &lt; SID &gt; PS user

    Hi all

    I have this problem, tried all means but couldn't solve it. I'm installing peoplesoft on my laptop. PS HCM 9.2 and peopletools 8.53.

    I followed all the procedures explained in the installation guide 8.53 (little missed - such as running app engine after creation of the database). I installed the application server, process schdueler, Web server for my instance and successfully connected to PIA. But I see errors from the compiler Peoplecode as first thing after the connection. Analyzed and found that this is due to lack of a few steps after the creation of the database such as the importation of PPLTLS84CUR, PPLTLS84CURDEL and race engines of demand and the additional dms scripts given in table of installation. (Please correct me if I'm wrong!)

    So I loaded PPLTLS84CUR, PPLTLS84CURDEL, PT84TBLSPC built the project, ran grant.dms and rarest dms as stated in the guide, started with the drivers of demand. I gave order below:

    ETAS - CD PSHCM CT - ORACLE - CO PS - CP PS R INSTALL - I UPGPT850PTFP

    It gives me below error:

    D:\PT8.53\bin\server\WINX86 > ETA - CD PSHCM - CT ORACLE - PS - CP PS r INSTALL CO

    HAVE UPGPT850PTFP

    Failure of LoadLibraryA() in pscompat.dll to 'PSORA64.dll': reason = 193

    Error sign on

    Type of database: 7 (ORACLE)

    The database name: PSHCM

    Name of the server:

    OperID: PS

    ConnectID: people

    The process instance: 0

    Reason: Could not sign database PSHCM with PS user

    But with the same credentials PS/PS given in psprcs.cfg I can start the process schduler, login in the application, or same PIA Designer.

    Please let me know if I'm missing something here. Even tried with SYSADM, but no luck.

    Thank you

    RK

    My bad. Actually I'm supposed to run record. I was running it from the server folder.

    It's real record where I suppose to run AE:

    D:\PT8.53\bin\client\winx86

    Thank you

    RK

Maybe you are looking for