Basic question on the implementation of the Oracle trigger

For example, suppose I have this trigger code:
CREATE TRIGGER schema.trigger_name 
    BEFORE 
    DELETE OR INSERT OR UPDATE 
    ON schema.table_name 
       pl/sql_block
END trigger_name;
ALTER TRIGGER schema.trigger_name ENABLE;
commit;
The weird part is I wrote this trigger but don't know how to run it. Can someone give me the answer to these question, please?

1. How can I add this trigger on the table 'table_1 '.
2. I want the trigger to be permanent on the table_1 and not only for a particular session. How do I do that?
3. are there things I need to take care of during the execution of a trigger? Something like best practices?

I'm using Linux. So, please give your solution based on SQL more

EDIT: Also, how can I make sure that the trigger is. Is it possible to see?

Edited by: TuX4EvA January 6, 2010 03:24

1.
Replace

ON schema.table_name

by

on schema.table1

2 triggers in the table are always permanent and not for a given session.

To check this trigger is created in the database dictionary, you can use

 select owner, trigger_name from all_triggers;

For more information on triggers, please take a look at the Guide of the Oracle® Database 2 day Developer's:
http://download.Oracle.com/docs/CD/E11882_01/AppDev.112/e10766/tdddg_triggers.htm#BABIHIHH

Edited by: P. Forstmann on 6 Jan. 2010 12:28

Edited by: P. Forstmann on 6 Jan. 2010 12:31

Tags: Database

Similar Questions

  • Basic question on the configuration of the OVD

    Hi gurus
    I have a basic question about the configuration of the TPM. I have all the "employees" in Active Directory and 'Employees + external users' in OID. The employee user password is maintained in AD, while the same for the external user is maintained in OID.

    Query:
    I need to configure authentication for an application for the employees present in the AD and present external users in OID. I have to join the profiles of employees present in AD and OID. Even if the employees are present in the OID, I don't want to configure for authentication of the OAM.

    How can I implement this using OAM and OVD.

    I got your condition.

    You said that OID contains external users as well as employees. You manage a container separated for employees in OID. If so, you job would be easy. If there is no container separated for employees on the OID and storing all users (employees and external users) in the same container (default: cn = Users, dc = xxx, dc is com) then you can get the list of AD users only with the following ldapsearch command:

    ldapsearch h Pei d 'cn = sleep '' w sub s b '' 'objectclass = user' SamAccountName

    Create three adapters OVD:

    1 adapter used (this should point to Active Directory)

    2. users adapter (when creating this, you have to exclude users AD, just similar to find the above option).

    3 create the adapter to store as the clubs above two adapters.

    Now, OAM should talk to store adapter.

    I hope this helps.

    Thank you
    GK

    Published by: GK Goalla on October 3, 2012 12:34

  • Basic question on the client connection to the Fund with several oracle instance

    Oracle 11:

    I have just a basic question about how doing listener/customer determine how oracle instance to connect to:

    1 tnsnames.ora and listener defines the configuration of the host and the port is that how he comes to know? I'm just trying to understand if the request comes to the listener how listener knows what Oracle instance to route traffic to?

    2. when I do sqlplus / as sysdba how knows what Oracle instance to connect to?

    Look at the differences

    [oracle@srv01-18-102 trace]$ cat $ORACLE_HOME/network/admin/listener.ora
    
    cat: /u01/app/oracle/product/ 11.1.0/dbhome_1/network/admin/listener.ora: No such file or directory
    
    -- start listener
    
    [oracle@srv01-18-102 trace]$ lsnrctl start
    
    LSNRCTL for Linux: Version 11.1.0.7.0   on 09-JUN-2009 01:05:42
    
    Copyright (c) 1991, 2009, Oracle.  All rights reserved.
    
    Starting /u01/app/oracle/product/ 11.1.0/dbhome_1/bin/tnslsnr: please wait...
    
    TNSLSNR for Linux: Version 11.1.0.7.0
    Log messages written to /u01/app/oracle/diag/tnslsnr/srv01-18-102/listener/alert/log.xml
    Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=srv01-18-102.amis.local)(PORT=1521)))
    
    Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
    STATUS of the LISTENER
    ------------------------
    Alias                     LISTENER
    Version                   TNSLSNR for Linux: Version 11.1.0.7.0
    Start Date                09-JUN-2009 01:05:42
    Uptime                    0 days 0 hr. 0 min. 0 sec
    Trace Level               off
    Security                  ON: Local OS Authentication
    SNMP                      OFF
    Listener Log File         /u01/app/oracle/diag/tnslsnr/srv01-18-102/listener/alert/log.xml
    Listening Endpoints Summary...
      (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=srv01-18-102.amis.local)(PORT=1521)))
    The listener supports no services
    The command completed successfully
    
    -- startup database
    
    SQL> shutdown immediate
    Database closed.
    Database dismounted.
    ORACLE instance shut down.
    
    SQL> startup
    ORACLE instance started.
    
    Total System Global Area  849530880 bytes
    Fixed Size                  1346664 bytes
    Variable Size             725615512 bytes
    Database Buffers          117440512 bytes
    Redo Buffers                5128192 bytes
    Database mounted.
    Database opened.
    
    SQL> alter system register;
    
    System altered.
    
    -- check again after a while (or for registration via "alter system register")
    
    [oracle@srv01-18-102 trace]$ lsnrctl status
    
    LSNRCTL for Linux: Version 11.1.0.7.0    on 09-JUN-2009 01:05:50
    
    Copyright (c) 1991, 2009, Oracle.  All rights reserved.
    
    Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
    STATUS of the LISTENER
    ------------------------
    Alias                     LISTENER
    Version                   TNSLSNR for Linux: Version 11.1.0.7.0
    Start Date                09-JUN-2009 01:05:42
    Uptime                    0 days 0 hr. 0 min. 8 sec
    Trace Level               off
    Security                  ON: Local OS Authentication
    SNMP                      OFF
    Listener Log File         /u01/app/oracle/diag/tnslsnr/srv01-18-102/listener/alert/log.xml
    Listening Endpoints Summary...
      (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=srv01-18-102.amis.local)(PORT=1521)))
      (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=srv01-18-102.amis.local)(PORT=8080))(Presentation=HTTP)(Session=RAW))
      (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=srv01-18-102.amis.local)(PORT=2100))(Presentation=FTP)(Session=RAW))
    Services Summary...
    Service "DEMO" has 1 instance(s).
      Instance "DEMO", status READY, has 1 handler(s) for this service...
    Service "DEMOXDB" has 1 instance(s).
      Instance "DEMO", status READY, has 1 handler(s) for this service...
    The command completed successfully
    
    -- BEQUEATH
    
    SQL> host
    [oracle@srv01-18-102 ~]$ set ORACLE_SID=DEMO
    [oracle@srv01-18-102 ~]$ sqlplus / as sysdba
    
    SQL*Plus: Release 11.1.0.7.0   on Tue Jun 9 01:17:42 2009
    
    Copyright (c) 1982, 2009, Oracle.  All rights reserved.
    
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.1.0.7.0
    With the Partitioning, Oracle Label Security, OLAP, Data Mining,
    Oracle Database Vault and Real Application Testing options
    
    -- Query V$PROCESS
    
    SQL> desc v$process
    
     Name                                      Null?    Type
     ----------------------------------------- -------- ----------------------------
     ADDR                                               RAW(4)
     PID                                                NUMBER
     SPID                                               VARCHAR2(24)   <---
     USERNAME                                           VARCHAR2(15)
     SERIAL#                                            NUMBER
     TERMINAL                                           VARCHAR2(30)
     PROGRAM                                            VARCHAR2(48)
     TRACEID                                            VARCHAR2(255)
     TRACEFILE                                          VARCHAR2(513)
     BACKGROUND                                         VARCHAR2(1)
     LATCHWAIT                                          VARCHAR2(8)
     LATCHSPIN                                          VARCHAR2(8)
     PGA_USED_MEM                                       NUMBER
     PGA_ALLOC_MEM                                      NUMBER
     PGA_FREEABLE_MEM                                   NUMBER
     PGA_MAX_MEM                                        NUMBER
    
    SQL> select * from v$process where program like '%(TNS V1-V3)%';
    
    52ACC7FC         19 26000                    oracle                   2
    UNKNOWN                        [email protected] (TNS V1-V3)
    
    /u01/app/oracle/diag/rdbms/DEMO/DEMO/trace/DEMO_ora_26000.trc
                                                               1286124       2699092
             1048576     4616664
    
    1 row selected.
    
    -- "Jump to OS"
    
    SQL> host ps -ef|grep 26000
    
    oracle   26000 14346  0 01:09 ?        00:00:01 oracleDEMO (DESCRIPTION=(LOCAL=YES)(ADDRESS=(PROTOCOL=beq)))
    oracle   27040 14346  0 01:16 pts/1    00:00:00 /bin/bash -c  ps -ef|grep 26000
    oracle   27042 27040  0 01:16 pts/1    00:00:00 grep 26000
    
    -- Connect via listener to the database
    
    -- content off tnsnames.ora
    
    [oracle@srv01-18-102 trace]$ cat $ORACLE_HOME/network/admin/tnsnames.ora
    # tnsnames.ora Network Configuration File: /u01/app/oracle/product/ 11.1.0/dbhome_1/network/admin/tnsnames.ora
    # Generated by Oracle configuration tools.
    
    DEMO =
      (DESCRIPTION =
        (ADDRESS = (PROTOCOL = TCP)(HOST = srv01-18-102.amis.local)(PORT = 1521))
        (CONNECT_DATA =
          (SERVER = DEDICATED)
          (SERVICE_NAME = DEMO)
        )
      )
    
    [oracle@srv01-18-102 ~]$ sqlplus otn/otn@DEMO
    
    SQL*Plus: Release 11.1.0.7.0   on Tue Jun 9 01:28:52 2009
    
    Copyright (c) 1982, 2009, Oracle.  All rights reserved.
    
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.1.0.7.0
    With the Partitioning, Oracle Label Security, OLAP, Data Mining,
    Oracle Database Vault and Real Application Testing options
    
    SQL> set head off feed on
    
    SQL> desc v$process
    
     Name                                      Null?    Type
     ----------------------------------------- -------- ----------------------------
     ADDR                                               RAW(4)
     PID                                                NUMBER
     SPID                                               VARCHAR2(24)   <---
     USERNAME                                           VARCHAR2(15)
     SERIAL#                                            NUMBER
     TERMINAL                                           VARCHAR2(30)
     PROGRAM                                            VARCHAR2(48)
     TRACEID                                            VARCHAR2(255)
     TRACEFILE                                          VARCHAR2(513)
     BACKGROUND                                         VARCHAR2(1)
     LATCHWAIT                                          VARCHAR2(8)
     LATCHSPIN                                          VARCHAR2(8)
     PGA_USED_MEM                                       NUMBER
     PGA_ALLOC_MEM                                      NUMBER
     PGA_FREEABLE_MEM                                   NUMBER
     PGA_MAX_MEM                                        NUMBER
    
    SQL> select * from v$process where spid in (27372);
    
    52ACC7FC         19 27372                    oracle                   4
    UNKNOWN                        [email protected]
    
    /u01/app/oracle/diag/rdbms/DEMO/DEMO/trace/DEMO_ora_27372.trc
                                                                705064        938372
                   0      938372
    
    -- Use info off v$process to join with v$session
    
    SQL> select * from v$session where paddr = '52ACC7FC';
    
    52112690        170          9     107441 52ACC7FC         93
    OTN                                     3 2147483644
                             ACTIVE   DEDICATED         93
    OTN                            oracle
    27370
    srv01-18-102.amis.local
    pts/1                          [email protected] (TNS V1-V3)
    USER       4C83D838     1817844678 4qpuh5jq5n6y6                0
    09-JUN-09             16777216 4C83443C      1421292656 b1vt3u9abfd3h
                    0 09-JUN-09              16777216
    
    SQL*Plus                                          3669949024
                                               0
    
                    8244            -1              0               0             0
    09-JUN-09                     0 NO  NONE          NONE       NO
    OTHER_GROUPS                     DISABLED ENABLED  ENABLED
                         0
                                                                     NOT IN WAIT
                                               41        322
    SQL*Net message to client
    driver id                                                        1413697536
    0000000054435000
    #bytes                                                                    1
    0000000000000001
                                                                              0
    
    00                  2000153315           7
    Network                                                                  -1
                  0 WAITED SHORT TIME                14
                          3730
    DEMO                                                            DISABLED FALSE
    FALSE FIRST EXEC                100 52ACC7FC               4
    
    -- Use info off V$process to look pid on OS
    
    SQL> host ps -ef | grep 27372
    
    oracle   27372     1  0 01:30 ?        00:00:00 oracleDEMO (LOCAL=NO)
    oracle   27413 27380  0 01:30 pts/1    00:00:00 /bin/bash -c  ps -ef|grep 27372
    oracle   27415 27413  0 01:30 pts/1    00:00:00 grep 27372
    
  • Very basic question :) in the forum

    :)

    I don't know her like a basic question, but struggling to get this straight all in detachment.
    I just wanted to know the steps to connect the text into a hyperlink when validating responses...

    If someone can solve the example: here_ "go-ahead" should be a hypertext link and the link should point to google.com

    See you soon,.
    Manik.

    Something like this:

    [url http://oracle.com] Oracle

    How to write on it?

    [url http://oracle.com]Oracle[/url]
    
  • Basic questions about the port of Vsphere mirror

    I set up a lightweight VM that would deal with inter-VM traffic. To do this, I want to activate the duplication of port between virtual machines.


    I have ESXi 5.5 Update 1 installed, use the Vsphere (no webclient) client. I see no duplication of port capacity on my Vsphere Client

    vsphere_esxi5.5_sc1.png

    I have some very basic questions:

    (1) all documentation I've read involving 'Port mirror' is done via web Vsphere client. Vsphere is provided with Vcenter (please, correct me if I'm wrong)

    (2) only functions with "Distributed Virtual Switch", not "switch vSphere Standard" port mirroring. How can I activate "Distributed Virtual Switch"? What products can I download/install and try (suppose I go to the user a license for 60 days)

    (3) exist what API to enable/disable/setup Port mirroring?

    (1) all documentation I've read involving 'Port mirror' is done via web Vsphere client. Vsphere is provided with Vcenter (please, correct me if I'm wrong)

    Because the mirror of port requires a distributed switch, you will need to vCenter Server and once in vCenter Server, you can the vSphere Web Client of the user or the vSphere Client (c# version).

    (2) only functions with "Distributed Virtual Switch", not "switch vSphere Standard" port mirroring. How can I activate "Distributed Virtual Switch"? What products can I download/install and try (suppose I go to the user a license for 60 days)

    You can download the server vCenter Server (60 day trial) and you'll have an Enterprise Plus version for your ESXi host vSphere.

    (3) exist what API to enable/disable/setup Port mirroring?

    Check the comments of this blog: http://blogs.vmware.com/vsphere/2013/01/vsphere-5-1-vds-feature-enhancements-port-mirroring-part-1.html

  • Basic questions about the installation of ASM

    I can't find definitive answers to the following. Let me try here. I want to build a server Linux, RDBMS 11.2.0.3, running with the ASM. It's just the prototype server, in our conversion of Oracle 11 g on AIX without ASM on Oracle 11 g on Linux with the ASM.

    I have an Oracle VM already running cluster and built a number of virtual machines in models, and everything works fine. Now I am installing DSO, have failed repeatedly. Maybe I'm doing something fundamentally wrong. Here are two questions:

    1. is it true that the only (reasonable) to install DSO is to install the product called "grid Infrastructure? As far as I know, the answer is 'yes '. But GI seems to be so much more than ASM, although I don't think I want or need. Is there an easier way to get ASM?

    2. the matrix certification swear that grid 11.2.0.3 Infrastructure is certified on Oracle Linux 6. (1) I can still see a lot of posts on OTN and elsewhere on the net that say it is NOT supported and that there are has mant problems in get the installation works, and (2) I have tried to install it on OEL 6 and can't get the installer to finish. Specifically, the root.sh script fails with "ohasd failed to start... '. ». Before further my installation problems, I want to just make sure: If this installation of OEL 6?

    Terry Phelps wrote:
    I can't find definitive answers to the following. Let me try here. I want to build a server Linux, RDBMS 11.2.0.3, running with the ASM. It's just the prototype server, in our conversion of Oracle 11 g on AIX without ASM on Oracle 11 g on Linux with the ASM.

    I have an Oracle VM already running cluster and built a number of virtual machines in models, and everything works fine. Now I am installing DSO, have failed repeatedly. Maybe I'm doing something fundamentally wrong. Here are two questions:

    1. is it true that the only (reasonable) to install DSO is to install the product called "grid Infrastructure? As far as I know, the answer is 'yes '. But GI seems to be so much more than ASM, although I don't think I want or need. Is there an easier way to get ASM?

    ASM is a feature of the Oracle Grid infrastructure Installation. So you will need to install IM using ASM.

    There is a GI installation which can be installed and configured in two different directions. For a Cluster or for a standalone.

    This option must be selected during installation.

    The installation of GI for a standalone is called Oracle Restart.

    GI for a Cluster installation is called Oracle Clusterware.

    The two options above have the particularity of the DSO.

    2. the matrix certification swear that grid 11.2.0.3 Infrastructure is certified on Oracle Linux 6. (1) I can still see a lot of posts on OTN and elsewhere on the net that say it is NOT supported and that there are has mant problems in get the installation works, and (2) I have tried to install it on OEL 6 and can't get the installer to finish. Specifically, the root.sh script fails with "ohasd failed to start... '. ». Before further my installation problems, I want to just make sure: If this installation of OEL 6?

    A lot of users here OTN tried installing Grid Infrastructure on RHEL6/OEL6 when it is not certified. Many questions appear.

    When it has been certified by Oracle, it remains several notes on MOS that will help you follow the main steps for a successful installation.

    I think you should use OEL 6, since Oracle Linux 6 has been certified by Oracle Corporation, you have all the support on this product.

    Start with this note: * master Note Linux OS requirements for database server [851598.1 ID] *.

    * Customer database or the server installation of database on Red Hat Enterprise Linux 6 (RHEL6) or Oracle Linux 6 [ID 1350000.1] *.

    http://levipereira.WordPress.com/2012/04/18/certification-of-the-Oracle-database-on-Oracle-Linux-6-and-Red-Hat-Enterprise-Linux-6/

  • Newbie question for the Oracle application server

    Hi Master,
    a DBA I am interesting to broaden my skill with learning on the application server.
    I knew that in the past before Weblogic bought by Oracle, Oracle, always using Oracle application server.
    Now with the Weblogic gaining more popularity on the market, which is the product the value of learning and get certified.

    Is it still useful to take Application Server 10 g or go with Weblogic. in certification path, Weblogic 10 g.
    WebLogic now replaces the Oracle application server, average abandoned Oracle Application Server?

    Please enlighten me and thank you for your help

    Lie

    Question if I go for Oracle WebLogic Server 10 g Administrator Certified Expert System it will be good to work with 11g thus?

    Make it part of the same system (now). Like WebLogic is the portal and the Jukebox, forms etc. are the records.

    What book other than the documentation that you have found the right one for learning.

    Yet to find one, Oracle documentation was OK.

    Is it better to learn the Linux or Windows version?

    Both are very well, choose the operating system you know better.

    Best regards

    mseberg

    I built my Middleware on Linux 64-bit test. Note that the 32-bit version allows to run Forms and Reports Developer.

    Beware of pre-installation tasks

    Install the Oracle database
    Linux RCU (repository creation utility)

    Database

    Use an existing database. (And it worked)

    My test was divided into four main parts: (in this order)

    Installation of the regional coordination unit
    WebLogic Server Install
    Install JRocket
    Forms and reports Install

    According to me, it took me two or three times to do things. (or at least work)

    I found myself with these URLs in the end:

    Administration Server Console http://Host/console 7001
    Enterprise Manager Console http://Host/em 7002
    Enterprise Manager Agent http://Host/emd/main
    Oracle Forms http://Host/formes/frmservlet 9001
    Oracle reports http://Host/rapports/rwservlet 9002

    So far, I have only an addition to my Web Page:

    http://www.Visi.com/~mseberg/compile_forms_on_wl.html

    As always this work orders:

    ./opmnctl status
    

    I was able to add PHP after you apply the hotfix 9292625.

    Note of Oracle that I found useful

    854117.1

    Published by: mseberg on May 20, 2011 14:16

  • Question about the Oracle Client software

    Good afternoon

    The following statement appears in the day 2 DBA OBE for Chapter 4:

    >
    You must first install the Oracle database client software, which includes the Oracle Net software.
    >

    I downloaded the instant client, installed and everything works fine. However, the instant client does not include the Oracle Net software. I searched for a 'no snapshot' customer ;) he would understand, but did not find these clients. I tried to start the complete installation (downloaded from the Oracle site) and there is no option to install the client only.

    Question: There is another client that includes the Oracle Net software as described in the OBE? If Yes, where is it?

    Thank you for your help,

    John.

    Yes, the "full" client package is available in the downloads / database and has a name like this:

    Oracle Database 11 g Release 2 (11.2.0.1.0) Client for Microsoft Windows (32-bit)

    (and of course is available for different platforms)

  • Question about the Oracle database resource management

    Good evening
    I have a question about Oracle database Resource Management (DRM) for Oracle Database 10 g. I had an incident which, in a development/UAT environment (different instances, same box, don't ask), a developer wrote a wrong SQL statement that consumed 99% of the CPU. Currently, there is no limit of resources on two cases of db, and the developers don't want limits. However, my manager wants a method to prevent something like this does not happen. If I use the Oracle database resources management, create a consumer group (called "DevEnv") at 40% CPU usage, what will happen if a user of DevEnv runs a bad SQL statement that normally consumes 90% CPU again? Anyone would take a different approach? Thank you.

    Sincerely,
    Sho Fukamachi

    782718 wrote:
    If users in the case of "db_uat" use 60% CPU would be users who belongs to DevEnv pending 'db_test' cannot be used more than 40% CPU, so their queries become slower at their end? I would like to know if this behavior works the same in an environment of multiple instances. Thank you.

    Yes, because the available processor would be 40%, they use more, while.

  • Basic questions about the PL/SQL web services and data source names

    Hello

    I've successfully generated a web service for a procedure from PL/SQL packaged JDeveloper 11.1.1.3.0).

    The following code was generated in the base class for web services:
     __dataSource = (javax.sql.DataSource) __initCtx.lookup("java:comp/env/jdbc/dbconnectionDS");
    However in the weblogic server, the data source name is jdbc/Gisele for deployment fails in a first time.

    What is the recommended procedure to solve this problem? The obvious solution is to manually change the source - that's what I did and it worked fine. However if I re - generate the web service I won't lose my change. Is there a better way to do it?

    Another question - in the web.xml file that is generated, there is a resource-ref to the data source. I was hoping that change the data source name it would help, but it didn't work. What is - it used to in this context?

    Thank you
    Luis

    I forgot to add, so in case some time later and you want to update the connection to your service details, all you have to do is to add the following entry in your weblogic.xml:
    .

    JDBC/ref_name_from_web. XML
    JDBC/new_jndi_name

    .
    And in this way, you will not have to change any code level to point your web service to another connection.

    Vishal-

  • A question about the Oracle SQL Developer Oracle instance connection

    Hi all

    I would be grateful if you could kindly give me a helping hand.

    Recently, I installed the Oracle 11 g on Linux (ubuntu 8.10) database. I not create startup scripts. So here's how I start the server: (my linux user name is "dariyoosh", but in order to start the server I have connection on the terminal shell as user 'oracle')
    dariyoosh@alborz:~$ su oracle
    Password: 
    oracle@alborz:/home/dariyoosh$ cd
    oracle@alborz:~$ ORACLE_SID=database01
    oracle@alborz:~$ . oraenv
    ORACLE_SID = [database01] ? 
    The Oracle base for ORACLE_HOME=/u01/app/oracle/product/11.1.0/db_1 is /u01/app/oracle
    oracle@alborz:~$ sqlplus '/as sysdba'
    ...
    SQL> STARTUP NOMOUNT
    ORACLE instance started.
    ...
    SQL> ALTER DATABASE MOUNT;
    ...
    SQL> ALTER DATABASE OPEN;
    
    Database altered.
    Then I can work without any problems with my database and everything works pretty well. Today, I decided to install Oracle SQL Developer IDE as it makes it easier to modify the SQL code. My problem is that after reading the tutorial Oracle online, that I am still able to connect to my database. Firstly according to the method that I wrote, I have set up the Oracle instance. But then when I run Oracle SQL Developer I don't know what to choose for the user name and password? because since SQL * Plus shell as you can see I always write: "sqlplus 'virtue sysdba' and it does not prompt me for any password, I can access the database directly." Any idea? What password? What user name? for Oracle SQL Developer?

    Thanks in advance.

    When you connect "/ as sysdba", you actually connect as the user named SYS from the privileges of your operating system. SYS is the owner of the database and a privileged user. You really want to use this username for the day to day operations, but only for what can do only SYS. If you need a different user name. Several Oracle databases have a user named SCOTT who has a number of tables for use tutorial. By default, the password for SCOTT's "Tiger." You may also have other demo users, such as "HR". I admit that I forgot what is the password of the HR, but it doesn't really matter because SYS can change with this command:

    ALTER USER hr IDENTIFIED BY whateveryouwant;
    

    This command:

    SELECT USERNAME FROM ALL_USERS;
    

    lists all the users in your database. Understand that many of these users are there as owners of objects such as stored procedures and tables for Application Express, or TYPEs for Oracle Locator, not for general use. When you are ready to create your own objects, ask SYS create a username for them with

    CREATE USER myusername IDENTIFIED BY mypassword;
    

    and grant that user the privileges as necessary. You'll want to read before you get too far - I think that the developer of the Application Guide is a good starting point.

  • The Oracle trigger

    I'm new with triggers. I am creating an oracle trigger to update another table, a column in the tables an updated. Here's my trigger:

    CREATE TRIGGER TR_UPDATE_CENSUS_TRIGGER
    BEFORE THE UPDATE ON RECONCILIATION_CONFLICT
    FOR EACH LINE
    WHEN (NEW. RESOLVED = 'Y')
    BEGIN
    UPDATE SET SUBMISSION_STATUS_ID = 4 CENSUS
    WHERE APPLICATION_ID = OLD. APPLICATION_ID
    AND MEMBER_ID = OLD. MEMBER_ID
    END

    When the FIXED table RECONCILIATION_CONFLICT column is set to 'Y', I want to update the table of census based on the APPLICATION_ID and MEMBER_ID. When I update a RESOLVED in the table RECONCILIATION_CONFLICT I get the following error:

    An error, save the changes to the table HIS. "" RECONCILIATION_CONFLICT ":
    Rank 3: ORA-04098: trigger "HERS.TR_UPDATE_CENSUS_TRIGGER" is not valid and does not re-validation

    I don't know how to find out why my trigger is not valid. Can anyone help?

    Try this please

    CREATE TRIGGER tr_update_census_trigger
      AFTER UPDATE ON reconciliation_conflict
      FOR each ROW
    BEGIN
    
     IF (:NEW.resolved = 'Y') THEN 
    
         UPDATE census c
              SET    c.submission_status_id = 4
          WHERE  c.application_id = :OLD.application_id
               AND c.member_id = :OLD.member_id;
     END IF;
    
    END;  
    

    Published by: Mahir M. Quluzade, May 13, 2011 15:09

  • basic questions about the Bigdata, NOSQL, and Hadoop


    Hello

    I have fundamental questions related to Bigdata. (I have Googled it but still want to confirm with experts)

    Please correct me if I'm wrong on below.

    (1) as far as I know data large are the collection of unstructured data. We can even store relational data as well.

    (2) NOSQL is a product of Oracle to manage bigdata (UN structured data and relational data as well)

    (3) Hadoop is the only framework that is available on the market to manage the bigdata.

    What are the other systems of database that we have in the market to manage the bigdata.

    See you soon,.

    Suri

    Suri,

    NoSQL is a distributed (with indexing and schematics) database. From a database point of view, NoSQL is a good place to start you off. Hadoop is a framework for distributed processing, rather than a database. If you are looking to take advantage of your database skills, then I suggest starting with NoSQL.

    Oracle Press has recently published "Oracle Big Data Handbook," which is an overview of the suite of large data Oracle technology products. I would start there. You can find the book on Oracle Press or Amazon , Barnes & Noble.

    I hope this helps.

    Kind regards

    Dave

  • Basic question on the Data Guard environment

    Friends, please excuse me for this easy question because I am very new to the Dataguard technology, what will be ideal start-up and sequences of stop primary and standby db provided is the version of DB Oracle 11 g R2 and we also have active dataguard broker.

    Any help will be much appreciated.

    Thanks in advance.

    918868 wrote:
    Friends, please excuse me for this easy question because I am very new to the Dataguard technology, what will be ideal start-up and sequences of stop primary and standby db provided is the version of DB Oracle 11 g R2 and we also have active dataguard broker.

    Any help will be much appreciated.

    Thanks in advance.

    (1) standby: DGMGRL > SET STATE of MODIFICATION of DATABASE "Standby_DB_UNIQUE_NAME" = "APPLY-OFF."
    (2) primary: DGMGRL > EDIT DATABASE 'Standby_DB_UNIQUE_NAME' PROPERTY SET LogShipping = OFF;
    (3) standby: stop
    (4) primary stop.

    At startup:

    (1) primary starting
    (2) standby: start [if ADG], otherwise then starting in the State
    (3) primary: DGMGRL > EDIT DATABASE 'Standby_DB_UNIQUE_NAME' PROPERTY SET LogShipping = ON;

    No need to start MRP waiting, because whenever the broker started, MRP will be initiated.

    HTH.

    Published by: CKPT on February 22, 2013 15:18

  • Basic question on the import/export of movies

    Hi all! I'm a complete novice with Flash (and implementation). I used many years ago, but have not used in a time very, very long time. Flash may even not be the program I need... so let me know if this is the case.

    Basically, I shot a video with my camera. It is a .mov file. I imported into iMovie and edited. Then I exported it as a .mov file. I want to embed the video in a web page. As far as I know, in Dreamweaver, it must be a .swf file. But I don't think that I can export a SWF of iMovie. Then I read online I could convert my file using Flash.

    I followed the instructions, I found online, but rather it seems to work... it's not. Here's what I did:

    I open a new file in Flash. I used the default type. I clicked on the timeline and went to file > import > Import film (using all the default choices).

    I have broused find the .mov file. I clicked Next.

    I chose a skin which is the default value (minimal flat Custom Color play back to see CounterV...). Clicking next. Clicked on Finish.

    A small movie actor is now on the screen of my Flash.

    I started to add frames (F5). I see images are added in the timeline panel.

    But... when I go to play the film... He DOES not play... but the screen is black.

    I see that I CAN export it as a swf file... but since I can't see the movie when I play, I'm guessing that's not working (the tutorial I used says that I should be able to see it at this point).

    Then I'm go about how completely wrong? Why it does not work? Please help out me.

    Julie

    PS I use Flash Professional CC c 13.0.0.759 on an iMac.

    It is installed with flash pro.  Search your computer, it is already installed if you have flash pro is installed.

Maybe you are looking for