The AUDIT command in, oracle apex (version 4.2.5.00.08), error "ORA-00911: invalid character '.

I am trying to run

"AUDIT INSERT, UPDATE, DELETE on emp BY ACCESS WHENEVER SUCCESSFUL;"

in "SQL commands" on oracle-apex (version 4.2.5.00.08).

I get the error message ' ORA-00911: invalid character '.

Can someone tell me the solution for this?

Apex environment we need to set the database AUDIT_TRAIL to TRUE for the control

"AUDIT INSERT, UPDATE, DELETE on emp BY ACCESS WHENEVER SUCCESSFUL;"  to work.

By their Summit, to be able to change the setting of database AUDIT_TRAIL we have to log-in as a DBA from the link "SQL workshop--> utilities--> on the database.

Tags: Database

Similar Questions

  • Error: ORA-00911: invalid character. Where is the character?

    Hi all

    As I wrote in the topic, I wrote the following code but I get the above error.

    Could someone tell me where are the mistakes? Mainly because the console does not specify where it is.

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

    Select case when ((select EMPRESA

    of B_LISTA_EMPLEADOS

    where USERNAME = 'ADMIN')) = 'IMASA.

    then ((select JORNADA_ANUAL

    of B_JORNADAS_Y_RATIOS

    where CATEGORY = (())

    Select the CATEGORY

    of B_LISTA_EMPLEADOS

    where USERNAME = 'ADMIN '.

    ))

    and EMPRESA = (())

    Select the EMPRESA

    of B_LISTA_EMPLEADOS

    where USERNAME = 'ADMIN '.

    ))

    and ANO = "2013"

    ))

    else 'no es UN empleado of the empresa"

    end case;


    like the Jornada

    of B_JORNADAS_Y_RATIOS

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

    Best regards

    Hello

    Is type data number JORNADA_ANUAL?


    then try to_char (JORNADA_ANUAL)

  • Error trivial Drives Me Crazy - ORA-00911: invalid character - Oracle 10 g

    I have no idea where I was wrong. I get this ORA-00911: invalid character
    I looked at the excerpt from tons of times, but could not find a glitch. Code appear nested into a TOAD
    CREATE TABLE RoomAssociates
    (
         roomAssociatesID           NUMBER(7)                                     , CONSTRAINT roomasso_roomassoid_pk                            PRIMARY KEY(roomAssociatesID)                                                         ,                                                     
         roomID                       NUMBER(7)                                        CONSTRAINT roomasso_roomid_nn                                NOT NULL                                                                                     ,
                                                                                           CONSTRAINT roomasso_roomid_fk                            FOREIGN KEY(roomID) REFERENCES Room(roomID) ON DELETE CASCADE               ,
         roomFacilityID              NUMBER(7)                                      CONSTRAINT roomasso_roomfid_nn                                NOT NULL                                                                                         ,
                                                                                           CONSTRAINT roomasso_roomfid _fk                             FOREIGN KEY(roomFacilityID) REFERENCES RoomFacility(roomFacilityID)          ,
         enSuitID                   NUMBER(7)                                         CONSTRAINT roomasso_ensuitid_nn                             NOT NULL                                                                                          ,
                                                                                           CONSTRAINT roomasso_ensuitid_fk                       FOREIGN KEY(enSuitID) REFERENCES EnSuit(enSuitID)
    );

    Now, this will work:

    CREATE TABLE RoomAssociates
    (
         roomAssociatesID           NUMBER(7)                                     , CONSTRAINT roomasso_roomassoid_pk                            PRIMARY KEY(roomAssociatesID)                                                         ,
         roomID                       NUMBER(7)                                        CONSTRAINT roomasso_roomid_nn                                NOT NULL                                                                                     ,
                                                                                           CONSTRAINT roomasso_roomid_fk                            FOREIGN KEY(roomID) REFERENCES Room(roomID) ON DELETE CASCADE               ,
         roomFacilityID              NUMBER(7)                                      CONSTRAINT roomasso_roomfid_nn                                NOT NULL                                                                                         ,
                                                                                           CONSTRAINT roomasso_roomfid_fk                             FOREIGN KEY(roomFacilityID) REFERENCES RoomFacility(roomFacilityID)          ,
         enSuitID                   NUMBER(7)                                         CONSTRAINT roomasso_ensuitid_nn                             NOT NULL                                                                                          ,
                                                                                           CONSTRAINT roomasso_ensuitid_fk                       FOREIGN KEY(enSuitID) REFERENCES EnSuit(enSuitID)
    );
    

    The error is here:

    CONSTRAINT roomasso_roomfid _fk
    

    Better formatting:

    CREATE TABLE RoomAssociates
    ( roomAssociatesID NUMBER(7), CONSTRAINT roomasso_roomassoid_pk PRIMARY KEY(roomAssociatesID),
      roomID           NUMBER(7)  CONSTRAINT roomasso_roomid_nn     NOT NULL,
                                  CONSTRAINT roomasso_roomid_fk FOREIGN KEY(roomID) REFERENCES Room(roomID) ON DELETE CASCADE,
      roomFacilityID   NUMBER(7)  CONSTRAINT roomasso_roomfid_nn NOT NULL,
                                  CONSTRAINT roomasso_roomfid_fk FOREIGN KEY(roomFacilityID) REFERENCES RoomFacility(roomFacilityID),
      enSuitID         NUMBER(7)  CONSTRAINT roomasso_ensuitid_nn     NOT NULL,
                                  CONSTRAINT roomasso_ensuitid_fk FOREIGN KEY(enSuitID) REFERENCES EnSuit(enSuitID)
    );
    

    Max
    [My Italian blog Oracle | http://oracleitalia.wordpress.com/2009/12/18/table-elimination-oppure-join-elimination-lottimizzatore-si-libera-della-zavorra/]

    Published by: Massimo Ruocchio, December 19, 2009 12:05 AM

  • How do I run the exp for the backup command in Oracle APEX 4.0

    Hello!

    I use APEX 4.0 with Oracle R11i. For the daily backup, I have to use the procedure "CMD". Is it possible to run this script "EXP" through a BUTTON or something in Oracle APEX 4.0

    Are you looking for a quick answer
    Kind regards

    The short answer is: No.
    exp is a command line (DOS) and due to browser restrictions/security, you can't run a command from a browser (malicious website would like this feature, run "format c: /" browser...).

  • If I run my query in Oracle, it runs without error, but when I run inside c# gives ORA-00911: invalid character

    I like to run below myQuery in c#, but saw the error. No idea what is the problem? If I'm running myQuery in Oracle, it runs without error. "I put all the +" before starting the myQuery line and "end of the line. but nothing changes.

    myQuery =

    with the CBC as

    (

    Select src.table_name src_table_name, src.column_name src_col_name, src.data_type src_data_type, src.data_length src_data_len, src.data_precision src_data_precision, src.data_scale src_data_scale,

    CBC. Nullable src_nullable, decode (T.Constraint_Type, 'P', 'Primary Key', 'U', 'Unique', ") as src_cons

    all_tab_columns CBC

    left join (select Cc.Column_Name, Uc.Constraint_Type

    of user_cons_columns cc, uc user_constraints

    where Cc.Constraint_Name = Uc.Constraint_Name

    and Cc.Table_Name = Uc.Table_Name) t

    on T.Column_Name = Src.Column_Name

    where table_name = 'INSTRUCTOR' and owner = "ERHAN"

    ),

    As TGT

    (

    Select tgt.table_name tgt_table_name, tgt.column_name tgt_col_name, tgt.data_type tgt_data_type, tgt.data_length tgt_data_len,

    TGT.data_precision tgt_data_precision, tgt.data_scale tgt_data_scale, tgt.nullable tgt_nullable,

    Decode (T.Constraint_Type, 'P', 'Primary Key', 'U', 'Unique', ") as tgt_cons

    from all_tab_columns tgt

    left join (select Cc.Column_Name, Uc.Constraint_Type

    of user_cons_columns cc, uc user_constraints

    where Cc.Constraint_Name = Uc.Constraint_Name

    and Cc.Table_Name = Uc.Table_Name) t

    on T.Column_Name = TGT. Column_Name

    where table_name = 'INSTRUCTOR' and owner = "SARIGUL"

    ),

    col_details as

    (

    Select src.src_table_name, nvl (tgt.tgt_table_name, first_value (tgt_table_name) more (order of nulls last tgt_table_name)) tgt_table_name;

    SRC.src_col_name, src.src_data_type, src.src_data_len, src.src_data_precision, src.src_data_scale, src.src_nullable, src_cons,

    TGT.tgt_col_name, tgt.tgt_data_type, tgt.tgt_data_len, tgt.tgt_data_precision, tgt.tgt_data_scale, tgt.tgt_nullable, tgt_cons

    the CBC

    outer join full tgt

    on)

    SRC.src_col_name = tgt.tgt_col_name

    )

    )

    Select *.

    de)

    Select the case sensitive option

    When tgt_data_type! = src_data_type or tgt_data_len! = src_data_len or tgt_data_precision! = src_data_precision or tgt_data_scale! = src_data_scale or tgt_nullable! = src_nullable

    then 'alter table ' | tgt_table_name | 'Edit ' | tgt_col_name | ' ' || src_data_type | ' ' ||

    -case when src_data_type null ('DATE') then

    on the other

    case

    When src_data_type in ('VARCHAR', 'VARCHAR2')

    then ' (' |) NVL (to_char (src_data_len), ' ') | ') '

    otherwise decode (nvl (src_data_precision-1),-1, null, nvl (to_char (src_data_precision), ' ') |) ', ' || NVL (to_char (src_data_scale), ' ') | ')')

    end

    end

    ||

    cases where tgt_nullable = 'Y' then 'null '.

    of another end 'not null '.

    || tgt_cons

    When tgt_col_name is null

    then 'alter table ' | tgt_table_name | 'Add ' | src_col_name | ' ' ||  ' ' || ' ' || src_data_type | ' ' ||

    -case when src_data_type null ('DATE') then

    on the other

    case

    When src_data_type in ('VARCHAR', 'VARCHAR2')

    then ' ('| nvl (to_char (src_data_len), ' ') |) ') '

    otherwise decode (nvl (src_data_precision-1),-1, null, nvl (to_char (src_data_precision), ' ') |) ', ' || NVL (to_char (src_data_scale), ' ') | ')')

    end

    end

    || tgt_cons

    When src_col_name is null

    then 'alter table' | tgt_table_name: ' drop '. tgt_col_name

    end alter_statement

    of col_details

    )

    where alter_statement is not null;

    using (OracleConnection conn1 = new OracleConnection (connectionString))

    {

    conn1. Open();

    Dim myQuery = "";

    using (OracleCommand = new OracleCommand (myQuery, conn1) crtCommand)

    {

    richTextBox1.AppendText (output);

    richTextBox1.AppendText (crtCommand.ExecuteNonQuery (). (ToString());

    richTextBox1.AppendText (output);

    }

    }

    VR;

    myQuery=
    @"with src as
    (
    ...
    ";
    

    That means a @ before the beginning of a string literal mean? -C# Foire - Site Home - MSDN Articles

    as an example

    OracleCommand cmd = con.CreateCommand();
    cmd.CommandText = @"begin apps.mo_global.init('SQLAP'); begin apps.fnd_global.apps_initialize(5710, 20639, 200); end; end;";
    cmd.ExecuteNonQuery();
    

    richTextBox1.AppendText (crtCommand.ExecuteNonQuery (). (ToString());                            

    is this correct? Not sure

    as example try

     using (OracleConnection conn1 = new OracleConnection(connectionString))
    {
        conn1.Open();
    
        string myQuery = "......";                  
    
        using (OracleCommand crtCommand = new OracleCommand(myQuery, conn1))
            {
                richTextBox1.AppendText(Environment.NewLine);
                // richTextBox1.AppendText(crtCommand.ExecuteNonQuery().ToString());
    
    OracleDataReader reader = crtCommand.ExecuteReader();
    while (reader.Read())
      {
        richTextBox1.AppendText(reader.GetString(0));
        // may be also
        // richTextBox1.AppendText(Environment.NewLine);
      }
    
                richTextBox1.AppendText(Environment.NewLine);
    
            reader.Dispose();
            cmd.Dispose();
            }
    
        con.Dispose();
    }
    
  • Create the Signature buffer in oracle apex 5.0

    Hello, I'm trying to create the signature buffer in oracle apex 5.0, did see some plugins for that as: https://www.enkitec.com/products/plugins/signaturepad/help can I implement the same functionality without using this plugin. What I see: 1) http://keith-wood.name/signature.html 2) https://github.com/brinley/jSignature ) 3 https://github.com/thomasjbradley/signature-pad/blob/gh-pages/documentation.md Point is to make this cushion where I sign! and also save as image in database. Don't know if I'm clear enough with my question or not. Thank you.

    Hi Pranav.shah,

    Pranav.Shah wrote:

    Hello, I'm trying to create the signature buffer in oracle apex 5.0, did see some plugins for that love: https://www.enkitec.com/products/plugins/signaturepad/help can I implement the same functionality without using this plugin. What I see: 1) http://keith-wood.name/signature.html 2) https://github.com/brinley/jSignature 3) https://github.com/thomasjbradley/signature-pad/blob/gh-pages/documentation.md Point is to make this cushion where I sign! and also save as image in database. Don't know if I'm clear enough with my question or not. Thank you.

    Use the pad of Signature plugin Enkitec. Why don't you use this plugin, but only its features.

    Also, the plug-in can save the signature to be registered as JSON CLOB or BLOB image in the database.

    Reference:

    Kind regards

    Kiran

  • Implement the GMAIL client in Oracle Apex

    Dear experts,

    I would like to implement the client GMAIL in Oracle Apex to be able to manage gmail inbox, sent mail,... the apex app etc.

    Y at - it a plugin or a tutorial to do this.

    Thanks in advance for any help you provide

    Concerning

    Mahmoud

    Mahmoud_Rabie wrote:

    What prevents the implementation of these customers in pure PL/SQL?

    Hello

    Probably nothing. In my view, the package author has used Java as it is easier to implement and provide loan APIs.

    I suppose that pure PL/SQL do not solve problem which packages you can use in apex.oracle.com.

    I'm sure that you for example utl_http is in a similar packaging that you cannot use in apex.oracle.com

    Jari

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

    My Blog: http://dbswh.webhop.net/dbswh/f?p=BLOG:HOME:0

    Twitter: http://www.twitter.com/jariolai

  • How to import the .sql file in oracle apex?

    I am new to oracle apex...

    How to import the .sql file in oracle apex?

    I have to import a table in apex...

    This script I have to write in the .sql file...

    pls help...

    Published by: 794244 on January 31, 2011 21:31

    Hi Manu

    You can import and browse workshop SQL, SQL Scripts .sql files. If you have multiple SQL statements in your script, make sure that they are separated by the / character

    Andy

  • How do for elements to create the shuttle cascading in Oracle Apex

    Can everyone please create me Articles of the shuttle in cascade in the oracle apex.

    The same way as you do that for selection only lists the condition is a little different. Here is an example of the second Shuttle in my case:

    SELECT pcat_title d, pcat_id r

    FROM (SELECT pcat_id, pcat_title, pcat_pt_code

    Of om_prod_categories

    WHERE pcat_parent_id IS NULL)

    WHERE INSTR (': ' |: p3_prod_pt_code |) ':',

    ':' || pcat_pt_code | ':') > 0

    Denes Kubicek

  • Do not get the audit trail for oracle solaris running. It starts and then stops after a few seconds. How can I set up a secure target Oracle Solaris? cure

    I have installation BSM on my solaris 10 Server. I configured BSM to be sent to syslog. I registered my target secure on the server of the AV type Oracle Solaris. Add an audit trail of pointing to the syslog file. The Audit Trail starts and stops after a few seconds. the error I get from the agent log is

    [2014 11-25 T 11: 36:38.647 + 02:00] [collfwk] [ERROR] [] [] [tid: 10] [ecid: 192.169.1.50:11353:1416908198895:0, 0] FVO-8015: initialization of the instanceCollectionController AuditEventCollector error: run: process() Exception. [[

    Instance of Error initializing AuditEventCollector

    at oracle.av.platform.agent.collfwk.impl.controller.CollectionController.initialize(CollectionController.java:322)

    at oracle.av.platform.agent.collfwk.impl.controller.CollectionController.process(CollectionController.java:402)

    at oracle.av.platform.agent.collfwk.impl.controller.CollectionController.run(CollectionController.java:350)

    at java.lang.Thread.run(Thread.java:662)

    Nested exception:

    java.lang.NumberFormatException: for input string: "invalid audit trail: / var/adm."

    at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)

    at java.lang.Integer.parseInt(Integer.java:449)

    in java.lang.Integer. < init > (Integer.java:660)

    to oracle.av.platform.common.exception.AuditException. < init > (AuditException.java:118)

    to oracle.av.platform.agent.collfwk.AuditEventCollectorException. < init > (AuditEventCollectorException.java:59)

    at com.oracle.solaris.SolarisCollector.initializeCollector(SolarisCollector.java:86)

    at oracle.av.platform.agent.collfwk.impl.controller.CollectionController.initialize(CollectionController.java:316)

    at oracle.av.platform.agent.collfwk.impl.controller.CollectionController.process(CollectionController.java:402)

    at oracle.av.platform.agent.collfwk.impl.controller.CollectionController.run(CollectionController.java:350)

    at java.lang.Thread.run(Thread.java:662)

    ]]

    [2014 11-25 T 11: 47:49.248 + 02:00] [collfwk] [ERROR] [] [] [tid: 11] [ecid: 192.169.1.50:11353:1416908869249:1, 0] FVO-8015: initialization of the instanceCollectionController AuditEventCollector error: run: process() Exception. [[

    Instance of Error initializing AuditEventCollector

    at oracle.av.platform.agent.collfwk.impl.controller.CollectionController.initialize(CollectionController.java:322)

    at oracle.av.platform.agent.collfwk.impl.controller.CollectionController.process(CollectionController.java:402)

    at oracle.av.platform.agent.collfwk.impl.controller.CollectionController.run(CollectionController.java:350)

    at java.lang.Thread.run(Thread.java:662)

    Nested exception:

    java.lang.NumberFormatException: for input string: "invalid audit trail: / var/audit.

    at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)

    at java.lang.Integer.parseInt(Integer.java:449)

    in java.lang.Integer. < init > (Integer.java:660)

    to oracle.av.platform.common.exception.AuditException. < init > (AuditException.java:118)

    to oracle.av.platform.agent.collfwk.AuditEventCollectorException. < init > (AuditEventCollectorException.java:59)

    at com.oracle.solaris.SolarisCollector.initializeCollector(SolarisCollector.java:86)

    at oracle.av.platform.agent.collfwk.impl.controller.CollectionController.initialize(CollectionController.java:316)

    at oracle.av.platform.agent.collfwk.impl.controller.CollectionController.process(CollectionController.java:402)

    at oracle.av.platform.agent.collfwk.impl.controller.CollectionController.run(CollectionController.java:350)

    at java.lang.Thread.run(Thread.java:662)

    ]]

    Can you please help with instructions/solution implementation of Oracle Solaris secure target? A beginner in Audit Vault.

    I have the installation path for the database and which works very well

    concerning

    Thanks for the pointers. After you add hostname to the location of the trail, the audit trail is running

  • has received the error ORA-44416: invalid ACL, while trying to enable network services

    Hi guys I got the ERROR ORA-44416 after the activation of services network in 11 GR 2 to send emails, so I ran this command found just as shown below in the Oracle document library

    SELECT THE ACL, PRINCIPAL

    OF NACL, XDS_ACE ACE DBA_NETWORK_ACLS

    WHERE HOST = ' *' AND LOWER_PORT IS NULL AND UPPER_PORT IS NULL AND

    NACL. ACLID = ACE. ACLID AND

    ARE NOT (SELECT NULL FROM ALL_USERS WHERE USERNAME = MAIN);

    That returned a result of

    no selected line

    What could this mean

    The installation is done on a localhost and the APEX version is 4.2.2 browser is mozilla fire fox

    ORA-44416 means that the ACL that you tried to create to refer to a valid principle - that is, the user does not exist.

    The SQL code that you included above seems to be looking for associated ACL principles which are more database users. I don't see a direct link between this request and the ORA-44416.

    What was your original script of ACL?

    Also, because it is a question of database rather APEX you might get a better answer on the forums of the database.

  • sdo_util code error ORA-01722: invalid number in Oracle 11 g R2

    Dear everyone,
    Greetings.

    Hello. As mentioned in the title, I encountered a strange problem when I was trying to extrude 2D to 3D objects. The error code says ORA-01722: invalid number. Then, to eliminate the possibility that the code would be bad, I took the code example for the ORACLE document on sdo_util.extrude
    http://download.Oracle.com/docs/CD/E11882_01/AppDev.112/e11830/sdo_util.htm#SPATL1230

    the same error appeared. However, I tried the same code through the SQLDeveloper under Linux (the 11 g R2 where) to do the same thing in my database in windows server 2008 where 11 g R1 has been installed. Works very well.

    Y at - it a particular configuration I need to do or that I did wrong. Any knows, please help. Thank you.


    Jun

    Hi, -.
    Please use without setting for output 11.2.0.1.0 'FALSE':

    SELECT SDO_UTIL. EXTRUDE)
    SDO_GEOMETRY)
    2003,
    NULL,
    NULL,
    SDO_ELEM_INFO_ARRAY (1,1003,1),
    SDO_ORDINATE_ARRAY (5, 1,8,1,8,6,5,7,5,1));
    SDO_NUMBER_ARRAY (0,0,0,0,0),
    SDO_NUMBER_ARRAY (5,10,10,5,5),
    0.005) twice;

    In 11.1.0.7 release, you must use the parameter 'FALSE ':

    SELECT SDO_UTIL. EXTRUDE)
    SDO_GEOMETRY)
    2003,
    NULL,
    NULL,
    SDO_ELEM_INFO_ARRAY (1,1003,1),
    SDO_ORDINATE_ARRAY (5, 1,8,1,8,6,5,7,5,1));
    SDO_NUMBER_ARRAY (0,0,0,0,0),
    SDO_NUMBER_ARRAY (5,10,10,5,5),
    'FALSE. '
    0.005) twice;

    We have fixed this confusion for future releases so that the two interfaces can be used
    and the 'FALSE' parameter is ignored.

    Best regards
    Baris

  • HELP-immediate execution in PL/SQL has received the error ORA-00904: invalid identifier

    What is the problem with the following codes from PL/SQL (actually it comes to Oracle Metalink Note: 313175.1):
    ===========
    declare
    cursor c1 is select * from $ semantic;
    v_statement VARCHAR2 (255);
    v_nc number (10);
    v_nt number (10);
    Start
    immediate execution
    "select count (*) from $ semantics" in v_nc;
    immediate execution
    ' select count (distinct s_table_name) of semantics$ "in v_nt;
    dbms_output.put_line
    ('Edit' | v_nc |) 'columns ' | v_nt | "tables");
    to r1 c1 loop
    v_statement: = 'ALTER TABLE ' | R1.s_owner | '.' || R1.s_table_name;
    v_statement: = v_statement | «change (' |)» R1.s_column_name | ' ';
    v_statement: = v_statement | R1.s_data_type | ' (' | r1.s_char_length;)
    v_statement: = v_statement | ' CHAR))';
    immediately run v_statement;
    end loop;
    dbms_output.put_line ('Done');
    end;
    /
    =====
    Executed once the codes as sysdba against 10gr 2 database, I got this error:
    From build to select columns to change
    Editing columns 4428 35249
    declare
    *
    ERROR on line 1:
    ORA-00904: invalid identifier
    ORA-06512: at line 22

    I see nothing wrong with the line of "immediate execution". I appreciate your help!

    Thank you.

    Hello
    Try to print the offending instruction using exception, I used small test cases by changing the pl/sql block, you may need to change to respond to all other types of data in this table.

    CREATE TABLE semantics$
    AS
       SELECT USER AS owner,
              table_name,
              data_type AS s_data_type,
              column_name,
              data_length AS s_char_length
       FROM cols
       WHERE table_name = 'MY_OBJECTS';
    
    DECLARE
       CURSOR c1
       IS
          SELECT *
          FROM semantics$;
    
       v_statement   VARCHAR2 (255);
       v_nc          NUMBER (10);
       v_nt          NUMBER (10);
    BEGIN
       EXECUTE IMMEDIATE 'select count(*) from semantics$' INTO v_nc;
    
       EXECUTE IMMEDIATE 'select count(distinct table_name) from semantics$'
          INTO v_nt;
    
       DBMS_OUTPUT.put_line(   'ALTERing '
                            || v_nc
                            || ' columns in '
                            || v_nt
                            || ' tables');
    
       FOR r1 IN c1
       LOOP
          v_statement   := 'ALTER TABLE ' || r1.owner || '.' || r1.table_name;
          v_statement   := v_statement || ' modify (' || r1.column_name || ' ';
          v_statement   :=
             v_statement || r1.s_data_type || '(' || r1.s_char_length;
    
          IF (r1.s_data_type = 'NUMBER')
          THEN
             v_statement   := v_statement || '))';
          ELSE
             v_statement   := v_statement || ' CHAR))';
          END IF;
    
          DBMS_OUTPUT.put_line (v_statement);
    
          -- EXECUTE IMMEDIATE v_statement;
       END LOOP;
    
       DBMS_OUTPUT.put_line ('Done');
    EXCEPTION
       WHEN OTHERS
       THEN
          DBMS_OUTPUT.put_line ('Statement = ' || v_statement);
          DBMS_OUTPUT.put_line (SUBSTR (SQLERRM, 1, 200));
          RAISE;
    END;
    

    _ Output

    ALTERing 13 columns in 1 tables
    ALTER TABLE MY_OBJECTS modify (OWNER VARCHAR2(30 CHAR))
    ALTER TABLE MY_OBJECTS modify (OBJECT_NAME VARCHAR2(30 CHAR))
    ALTER TABLE MY_OBJECTS modify (SUBOBJECT_NAME VARCHAR2(30 CHAR))
    ALTER TABLE MY_OBJECTS modify (OBJECT_ID NUMBER(22))
    ALTER TABLE MY_OBJECTS modify (DATA_OBJECT_ID NUMBER(22))
    ALTER TABLE MY_OBJECTS modify (OBJECT_TYPE VARCHAR2(19 CHAR))
    ALTER TABLE MY_OBJECTS modify (CREATED DATE(7 CHAR))
    ALTER TABLE MY_OBJECTS modify (LAST_DDL_TIME DATE(7 CHAR))
    ALTER TABLE MY_OBJECTS modify (TIMESTAMP VARCHAR2(19 CHAR))
    ALTER TABLE MY_OBJECTS modify (STATUS VARCHAR2(7 CHAR))
    ALTER TABLE MY_OBJECTS modify (TEMPORARY VARCHAR2(1 CHAR))
    ALTER TABLE MY_OBJECTS modify (GENERATED VARCHAR2(1 CHAR))
    ALTER TABLE MY_OBJECTS modify (SECONDARY VARCHAR2(1 CHAR))
    Done
    

    Concerning

    Published by: OrionNet on January 5, 2009 23:53

    Published by: OrionNet on January 5, 2009 23:55

  • Get the following error message when you try to create a database by using the data Cloud Service Oracle (trial version)

    I followed the video provided and online documentation:

    Commissioning service [1] attempt (off [2]) failed.

    Computing resources created for the database server...

    A expired after 120 minutes of waiting to start computing resources...

    The orchestration / Compute-yyyyyyyy/[email protected] /dbaas/AU-12 c-EA/DB/VM-1/Resources is in a State of "error" since Sun Sep 10 2015 13:41:06:000...

    OPlan [boot]: Image list or list of image - 1 entry /oracle/public/db12_15.3.3.0.0_dbcs_psu_150715 does not exist to create the boot volume / Compute-yyyyyyyy/[email protected] /dbaas/au-12 c-EA/db/vm-1/boot.

    Opening end of database Service...

    Stopped all computing resources...

    Deleting computing resources...

    Service database record complete removal...

    Attempt of commissioning service [2] (off [2]) failed.

    Computing resources created for the database server...

    A expired after 120 minutes of waiting to start computing resources...

    The orchestration/Compute-yyyyyyyy/[email protected] /dbaas/AU-12 c-EA/1/dB/VM-1/Resources is in a State of "error" since Sun Sep 10 2015 15:44:43:000...

    OPlan [boot]: Image list or list of image - 1 entry /oracle/public/db12_15.3.3.0.0_dbcs_psu_150715 does not exist to create the boot volume/Compute-yyyyyyyy/[email protected] /dbaas/au-12 c-EA/1/db/vm-1/boot.

    Opening end of database Service...

    Stopped all computing resources...

    Deleting computing resources...

    Service database record complete removal...

    Thanks for the help on this. I'm updating the community just in case someone else runs into this problem.

    It seems that I chose an option that I have not for when you ask for the trial.  So if the above happens to you, you will need to request a new trial and do not select the option of CALCULATING GROSS.

    That's all

    -Danny

  • Body of the email format in oracle Apex

    Hi Eveyone,

    I want to format my email using html tags with a paragraph alignment and text colors. can someone help me please how to format the content and use apex_mail package?

    Thank you

    Zourk

    Mariame,

    You can use the following procedure.

    p_html field parameter, you can pass the html code.

    procedure test_send_mail (p_html IN CLOB, p_to IN VARCHAR2, p_from IN VARCHAR2, p_cc IN VARCHAR2, p_bcc IN VARCHAR2, p_subj IN VARCHAR2)

    is

    l_body CLOB.

    l_body_html CLOB.

    BEGIN

    l_body: = "To view the content of this message, please use an active email HTML client." | UTL_TCP. CRLF;

    l_body_html: = '

    '|| UTL_TCP. CRLF;

    l_body_html: = l_body_html | p_html | UTL_TCP. CRLF;

    () apex_mail. Send

    p_to-online p_to-change to your email address

    P_FROM-online p_from-change for a real senders e-mail address

    p_body-online l_body,

    p_body_html-online l_body_html,

    p_subj-online p_subj,

    p_cc-online p_cc);

    END;

    I hope this helps.

    Kind regards

    Archana

Maybe you are looking for