Line of Oracle data object with a statement select column entry.

create table mainTable)

Offer number,

emp_name VARCHAR2 (15)

);

Insert in mainTable values(1,'ifti');

CREATE or REPLACE TYPE table1_objtyp () AS OBJECT

Offer number,

emp_name VARCHAR2 (15)

);

create table historical table

{

number of TID,

empObj table1_objtyp

};

I want to insert mainTable recode in field empObj historical table with a select as below.

Insert Into table values history (1, (Select * from mainTable where bid = 1));

How can I achieve this?

insert into the historical table SELECT 1, table1_objtyp (IDB, emp_name) OF MAINTABLE.

Tags: Database

Similar Questions

  • Object with several States and slider in the "folio" are pixelated, settings seem correct.

    I can't keep an object with several States to be rasterized text, as well as a slider which is also dithering.

    I read that you are supposed to adjust the folio, and article up to be .pdf and the cursor should have the possibility of vector chosen.

    I have not found anything to object state multi for these parameters.

    What happens is when I exit the folio to Adobe Content Viewer, only the text of these items is rasterized. All other texts to be crispy. Tested on Mini iPad and iPad retina and both are blurred.

    Is there a way to force the vector option? It seems even with the selected options it is still screening test in interactive elements.

    Thank you!

    I don't know if I missed something, but it seems to work now. Maybe the v26 option (I deleted the old folio and recreated, and it works as expected now.)

    Can you send me a link to information about the scrolling content and the position of the document? The method I used the frame was from an article of Adobe, although it could be old.

    Thanks for your help!

  • Oracle Data Guard with EBS R12

    Dear gurus,

    I want to know about Oracle Data Guard with Oracle EBS Release 12, claims we separate license with Oracle E-Business Suite R12 of application Data Guard? (i.e. separate premises, same place).


    Please me advice in this regard.


    -Mickaël

    AFAIK, you don't need to have a separate license for Data Guard. However, I would say that you call your Oracle representative.

  • Export schema through Oracle data pump with question database Vault enabled

    Hello

    I installed and configured Vault database on an Oracle 11 g - r2 - 11.2.0.3 to protect a specific schema (SCHEMA_NAME) via a Kingdom. I followed the following doc:
    http://www.Oracle.com/technetwork/database/security/TWP-databasevault-DBA-BestPractices-199882.PDF
    to ensure that the system and the network user has sufficient rights to complete a schedule pump data Oracle export operation.

    I.e. I gave sys and system the following:
    execute dvsys.dbms_macadm.authorize_scheduler_user ('sys', 'SCHEMA_NAME');
    execute dvsys.dbms_macadm.authorize_scheduler_user ('system', 'SCHEMA_NAME');

    execute dvsys.dbms_macadm.authorize_datapump_user ('sys', 'SCHEMA_NAME');
    execute dvsys.dbms_macadm.authorize_datapump_user ('system', 'SCHEMA_NAME');

    I also create a second domain on the same schema (SCHEMA_NAME) to allow sys and system to manage indexes for the actual tables protected, in order to allow a system to manage indexes for the tables of protected area and sys. This separate realm was created for all types of indexes: Index, Partition of Index and Indextype, sys and system were allowed as the OWNER of this Kingdom.

    However, when I try and complete an operation of Oracle Data Pump export on the schematic, I get two errors directly after the following line appears in the export log:

    Processing object type SCHEMA_EXPORT/TABLE/INDEX/DOMAIN_INDEX/INDEX:
    ORA-39127: unexpected error of the call to export_string: = SYS. DBMS_TRANSFORM_EXIMP. INSTANCE_INFO_EXP('AQ$_MGMT_NOTIFY_QTABLE_S','SYSMAN',1,1,'11.02.00.00.00',newBlock)
    ORA-01031: insufficient privileges
    ORA-06512: at "SYS." DBMS_TRANSFORM_EXIMP', line 197
    ORA-06512: at line 1
    ORA-06512: at "SYS." Dbms_metadata", line 9081
    ORA-39127: unexpected error of the call to export_string: = SYS. DBMS_TRANSFORM_EXIMP. INSTANCE_INFO_EXP('AQ$_MGMT_LOADER_QTABLE_S','SYSMAN',1,1,'11.02.00.00.00',newBlock)
    ORA-01031: insufficient privileges
    ORA-06512: at "SYS." DBMS_TRANSFORM_EXIMP', line 197
    ORA-06512: at line 1
    ORA-06512: at "SYS." Dbms_metadata", line 9081

    The export is completed, but this error.

    Any help, pointers, suggestions, etc. in fact no matter what will be very welcome at this stage.

    Thank you

    I moved the forum thread on the "database - security. If the document does not help, pl open an SR with Support

    HTH
    Srini

  • Create the update with joint statement / select

    OK, so here is the real project far East:

    Update (select oci.identifier_type
    vhb.offender_id_display
    oci.comment_text
    vhb.offender_book_id
    oci.offender_book_id
    of OIC, HBV v_header_block offender_case_identifiers
    where
    OCI.offender_book_id = vhb.offender_book_id
    and vhb.offender_id_display =: ppid
    and oci.case_id <>: Pärn
    and oci.identifier_type = 'ARN')
    Set offender_case_identifiers.identifier_type = 'ARN2;

    below to get accurate data I need to change (checked work):

    (select oci.identifier_type
    vhb.offender_id_display
    oci.comment_text
    vhb.offender_book_id
    oci.offender_book_id
    of OIC, HBV v_header_block offender_case_identifiers
    where
    OCI.offender_book_id = vhb.offender_book_id
    and vhb.offender_id_display =: ppid
    and oci.case_id <>: Pärn
    and oci.identifier_type = 'ARN')

    So Im trying in the 1st example to change the column above oci.identifier_type = "ARN2", but I get the following error: "ORA-0904: 'OFFENDER_CASE_IDENTIFIERS'. '. "IDENTIFIER_TYPE": invalid identifier.

    Published by: 969659 on November 6, 2012 09:53

    msullyguy wrote:
    Initially, to display data before, I run:

    Select *
    from offender_case_identifiers oci
    where offender_book_id = :pobi
    and oci.identifier_type like '%ARN%';
    

    and it returns:

    OFFENDER_BOOK_ID     IDENTIFIER_TYPE COMMENT_TEXT CASE_ID
    * 1 035 481 * DNA * 01554156 * 1 713 565
    * 1 035 481 * DNA * 01554156 * 1 713 566
    * 1 035 481 * DNA * 01554369 * 1 714 912
    * 1 035 481 * DNA * 01554369 * 1 714 913

    After executing your script suggested:

    update offender_case_identifiers ociq
    set Identifier_type = 'ARN2'
    where ociq.offender_book_id in
    (select offender_book_id from v_header_block
    where offender_id_display = :ppid)
    and ociq.case_id != :parn
    AND ociq.identifier_type = 'ARN'
    

    and using the +: ppid = 0000421337 + and +: parn = 01554156 + it changes all identifier_type in "ARN2 '... Here is the result:

    OFFENDER_BOOK_ID     IDENTIFIER_TYPE COMMENT_TEXT CASE_ID
    * 1 035 481 * ARN2 * 01554156 * 1 713 565
    * 1 035 481 * ARN2 * 01554156 * 1 713 566
    * 1 035 481 * ARN2 * 01554369 * 1 714 912
    * 1 035 481 * ARN2 * 01554369 * 1 714 913

    I need to change only the identifier_type in "ARN2" on records that do not have the same value as the entry: Pärn

    I think that we are on the right track, but still can not wrap my head around the solution... once again, I thank you all for the continued support.

    What you have here, so it seems that 01554156 is the comment_text, not the case_id. change what I wrote to

    and ociq.comment_text != :parn
    
  • BatchUpdate lines affected Oracle JDBC is always - 2 (Statement.SUCCESS_NO_INFO)

    I have a batch process that performs the Bulk UPDATE statement.


    After the lot via Spring JDBC helper 4.1.6 Oracle Jdbc Driver (ojdbc7 and ucp), the number of records affected for update requests (in the lot) is always recovered as -2 (Statement.SUCCESS_NO_INFO).


    Is it possible to know the lines for individual cases, I have to repeat the same argument with an INSERT statement after that. Technically trying to develop it as a UPSERT implementation


    I tried this update in batches of three different ways, and in the three methods, the results are same--(il me dit juste déclaration. ) SUCCESS_NO_INFO-(2))


    Method 1 - connection direct UCP and PreparedStatement

    connectionPoolMgr.startConnectionPool ("mgr_pool");

    Connection connection = pds.getConnection ();

    PreparedStatement pstmt = connection.prepareStatement (dmlSQL);

    pstmt.setInt (1, pkId);

    pstmt.setInt (2, idx * 10);

    pstmt.addBatch ();

    EACH ELEMENT in THIS ARRAY IS ALWAYS returned as -2

    int updatedRows [] = pstmt.executeBatch ();

    Method 2 - Spring JdbcTemplate and batchUpdate()

         MapSqlParameterSource[] paramsArray = getSqlParameterList().toArray(new MapSqlParameterSource[0]);


    EACH ELEMENT in THIS ARRAY IS ALWAYS returned as -2

         int[] batchUpdateResult = getNamedParameterJdbcTemplate().batchUpdate(sqlStatement, paramsArray);  


    Method 3 - implementation of spring BatchSqlUpdate


    BatchInsert batchInsert = new BatchInsert (dataSource);

    for (int i = 0; i < count; i ++) {}

    MapSqlParameterSource param = new MapSqlParameterSource();

    param.addValue ("ID", i + 100);

    param.addValue ("Name", "Name" + i);

    batchInsert.updateByNamedParam (param.getValues ());

    }

    batchInsert.flush ();

    int rowsAffected [] = batchInsert.getRowsAffected ();


    class BatchInsert extends BatchSqlUpdate {}

    private public static final String SQL = "(UPDATE t_customer_test SET prenom =: prenom) ' WHERE id =: ID"; "

    BatchInsert (DataSource dataSource) {}

    Super (data source, SQL);

    declareParameter (new SqlParameter (Types.VARCHAR));

    declareParameter (new SqlParameter (Types.INTEGER));

    setBatchSize (100);

    Compile();

    }

    }

    I have a batch process that performs the Bulk UPDATE statement.

    After the lot via Spring JDBC helper 4.1.6 Oracle Jdbc Driver (ojdbc7 and ucp), the number of records affected for update requests (in the lot) is always recovered as -2 (Statement.SUCCESS_NO_INFO).

    Is it possible to know the lines for individual cases, I have to repeat the same argument with an INSERT statement after that. Technically trying to develop it as a UPSERT implementation

    Yes--but it's an improvement for 12 c. See the JDBC Dev guide for 12 c:

    https://docs.Oracle.com/database/121/JJDBC/oraperf.htm

    Number of rows per table LMD iteration

    From database Oracle 12 c Release 1 (12.1), the executeBatch method has been improved so that it returns an array of int size which is the same as the number of records in the batch and each element of the returned array is the number of rows in the database affected by the corresponding batch record. For example, if the batch size is 5, then the executeBatch method returns an array of size 5. Error between the execution of the batch, the executeBatch method cannot return a value, instead, it throws a BatchUpdateException . In this case, the exception itself has a table size int n its form, where n is the number of successful Records executions. For example, if the batch is size 5 and the error occurs at the 4th record, then the BatchUpdateException has an array of size 3 (3 disks properly executed) and each element of represents it table how many rows were affected by each of them.

    Oracle MERGE statement allows you to "upserts". You will need to check with Spring or Hibernate to see if they support this statement.

    http://docs.Oracle.com/CD/B28359_01/server.111/b28286/statements_9016.htm

    Use of the MERGE statement to select rows in one or more sources for the update or insertion into a table or view. You can specify conditions to determine whether to update or insert into the target table or view.

    This statement is a convenient way to combine several operations. It allows you to avoid the multiple INSERT , UPDATE , and DELETE the DML statements.

  • Failure of the load of the inventory... OPatch failed to load the inventory for the Home.OPatch Oracle data failed with the error code = 73

    Hello

    I will apply patch bundle and my oracle database 11.2.0.2 and Microsoft Windows x 86 platform. As read the file Readme Oracle recommends to use OPatch utility version 11.2.0.1.3 or later. To check the inventory availability I use the command lsinventory % ORACLE_HOME%/OPatch/opatch.

    It ended to give details below.

    Citing O 11.2 patch .0.1.1

    OPatch could not create/open history for writing file: * my home oracle path***\cfgtoollogs\opatch\opatch_history.txt

    **ORACLE_HOME***\cfgtoollogs\opatch\opatch_history.txt (access is denied)

    Setup Oracle interim Patch version 11.2.0.1.1

    Copyright (c) 2009, Oracle Corporation.  All rights reserved.

    OPatch could open the log file, the recording is not possible

    Home Oracle: *.

    Inventory Center: C:\Program Files\Oracle\Inventory

    from: n/a

    OPatch version: 11.2.0.1.1

    YES version: 11.2.0.2.0

    YES location: * ORACLE_HOME * \oui

    Location of the log file: **ORACLE_HOME**\cfgtoollogs\opatch\opatch2015-04-09_16-27-49PM.log

    History of patch file: **ORACLE_HOME**\cfgtoollogs\opatch\opatch_history.txt

    Failure of the load of the inventory... OPatch failed to load the inventory for the given Oracle Home.

    LsInventorySession failed: LsInventory failed to create the log directory * ORACLE_HOME * \cfgtoollogs\opatch\lsinv\lsinventory2015-04 -.

    09_16-27 - 49 PM .txt

    OPatch failed with error code = 73

    Can someone please help me solve this problem?

    Do I need to install the last opatch utility?

    Hello

    This error message " LsInventorySession failed: LsInventory failed to create the log directory * ORACLE_HOME * \cfgtoollogs\opatch\lsinv\lsinventory2015-04 - .

    09_16-27 - 49 PM .txt "

    indicates that you have a permission problem with your file systems: cfgtoollogs/ORACLE_HOME/opatch

    Check the owner of this file system.

    Kind regards

  • a drawing space on a simple IF statement with the statement Select

    Hello

    I'm writing an IF statements as such

    Val1 IF (select x from tbla) then
    to do this
    on the other
    do this
    end if ';

    Is it possible to have a select line on the IF condition?

    Version 11.1.0.7

    The Gunners wrote:
    Hello

    I'm writing an IF statements as such

    Val1 IF (select x from tbla) then
    to do this
    on the other
    do this
    end if ';

    Is it possible to have a select line on the IF condition?

    Version 11.1.0.7

    No, but you can do something like that as easily.

    declare
       l_count  number(1);
    begin
    
       select
          count(*)
       into
          l_count
       from
          dual
       where exists
       (
          select
             null
          from
             table_name
          where col_name = val
       );
    
       if l_count > 0
       then
          ....
       else
          ...
       end if;
    
    end;
    /
    
  • problem with the statement select

    I want to view records that start with the letter D for a particular ID of a table called THE. To do this, I wrote the select statement with as operator.but when duplicates were found in the table it would not display. for eaxample
    create table tea(id number(40),f_name varchar2(150));
    
    INSERT INTO tea ( ID, F_NAME ) VALUES ( 
    832, 'Magnolia St. #12'); 
    INSERT INTO tea ( ID, F_NAME ) VALUES ( 
    832, 'Magnolia St. #10'); 
    INSERT INTO tea ( ID, F_NAME ) VALUES ( 
    1909, ' Delaware Ave.'); 
    INSERT INTO tea ( ID, F_NAME ) VALUES ( 
    1909, 'Delaware St.'); 
    INSERT INTO tea ( ID, F_NAME ) VALUES ( 
    832, 'Mangolia'); 
    INSERT INTO tea ( ID, F_NAME ) VALUES ( 
    832, 'Monolia'); 
    INSERT INTO tea ( ID, F_NAME ) VALUES ( 
    1909, 'Delaware'); 
    INSERT INTO tea ( ID, F_NAME ) VALUES ( 
    1909, 'Mandea'); 
    commit;
    
    select * from tea order by id;
    
        ID F_NAME
    ------ ------------------------------
       832 Magnolia St. #12
       832 Magnolia St. #10
       832 Mangolia
       832 Monolia
      1909  Delaware Ave.
      1909 Delaware St.
      1909 Delaware
      1909 Mandea
    
     now when i try with letter 'M' for 832 it is displaying the all the records starting with M
    select f_name from tea where upper(f_name) like upper('m%') and id=832;
    
    F_NAME
    ----------------------------
    Magnolia St. #12
    Magnolia St. #10
    Mangolia
    Monolia
    
    but when i tried with D it is not displaying  Delaware Ave.
    
    select f_name from tea where upper(f_name) like upper('d%') and id=1909;
    
    F_NAME
    -------------
    Delaware St.
    Delaware
    I'm unable to display folder Delaware Ave. , for the id of 1909. I need display this folder also.
    What could be the reason it is display for "M" and showing not "d".
    any suggestions please?
    I use 9i

    Because there is a space character before Delaware Ave
    Watch your insert statement

    INSERT INTO tea ( ID, F_NAME ) VALUES (
    1909, ' Delaware Ave.'); 
    

    To take

    INSERT INTO tea ( ID, F_NAME ) VALUES (
    1909, 'Delaware Ave.'); 
    

    And it should work

    - - - - - - - - - - - - - - - - - - - - -
    Kamran Agayev a. (10g OCP)
    http://kamranagayev.WordPress.com

  • Select with case statement and a formula of the IIR

    Hi, I was looking to get help regarding a statement writing box with a statement select statement all. I tried to reproduce a formula IIf access well that just wanted to check that the query I wrote is correct, any advice would be appreciated.

    [code]

    Select *.

    Of

    (

    Select name, month, duration, volume, time_spent, date1, date2,.

    -case when 'date' > = 'date1' then '1' other '0' end as departure,.

    -case when 'date' < = "date2" then '1' other '0' as end ending

    Of

    (

    Select *.

    of call_1 cd

    inner join call_2 ON cd.name = cl.queue cl

    )

    )

    ;

    [/ code]

    I want to know is where I have my ' select name, etc, I would change that to select * to make it easier instead of typing all the field_names outside, but I don't know how to do and also what follows is 2 IIF formulas from an access database for the start of the final case statements so I just wanted check I wrote it correctly.

    [code]

    departure: IIf ([date] > = [date1], 1, 0)

    [/ code]

    [code]

    ending: IIf ([date] < = [date2], 1, 0)

    [/ code]

    Any advice would be appreciated.

    Hello

    Whenever you have any questions, post a small example of data (CREATE TABLE and only relevant columns, INSERT statements) for all of the tables involved and the results desired from these data.
    Explain, using specific examples, how you get these results from these data.

    If the output depends on what anyone outside the application itself (for example, when it is run) and then include a few different examples and the results you want of each given the same sample data. For example, "if I run on November 19, 2013, while the results should be... because... but if I run between November 21 and November 27, then the results should be... because...". »
    Always say what version of Oracle you are using (for example, 11.2.0.2.0).

    See the FAQ forum: https://forums.oracle.com/message/9362002

    318f20b8-a3d0-4FB4-bb0f-73785250b7d4 wrote:

    Hi, I was looking to get help regarding a statement writing box with a statement select statement all. I tried to reproduce a formula IIf access well that just wanted to check that the query I wrote is correct, any advice would be appreciated.

    [code]

    Select *.

    Of

    (

    Select name, month, duration, volume, time_spent, date1, date2,.

    -case when 'date' > = 'date1' then '1' other '0' end as departure,.

    -case when "date."<= 'date2'="" then="" '1'="" else="" '0'="" end="" as="">

    Of

    (

    Select *.

    of call_1 cd

    inner join call_2 ON cd.name = cl.queue cl

    )

    )

    ;

    [/ code]

    I want to know is where I have my ' select name, etc, I would change that to select * to make it easier instead of typing all the field_names outside, but I don't know how to do and also what follows is 2 IIF formulas from an access database for the start of the final case statements so I just wanted check I wrote it correctly.

    [code]

    departure: IIf([date]>=[date1],1,0)

    [/ code]

    [code]

    ending: IIf ([date]<>

    [/ code]

    Any advice would be appreciated.

    DATE is not a function of Oracle; in fact, it's a terrible name for a column or function, because it blends with the DATE data type.

    In Oracle, the function SYSDATE returns the date and time, according to the clock on the database server.  So, SYSDATE can return a value as November 19, 2013 06:33:15.   If you want to midnight the same day (i.e., November 19, 2013 00:00:00) and then use TRUNC (SYSDATE).

    String literals (for example the string which consists 5 characters d, a, t, e, and 1) go inside the single quotes. Numbers and the names of columns only.

    If you want to include all the columns, more some calculated values, in a SELECT clause, then you must use a name table or alias before the *.  (See select_2 below.  To do this, assign the alias j to display online.)

    Maybe you wanted to say something like:

    Select *-it's select_1

    de)

    Select j. *-it's select_2

    , case when SYSDATE > = date1 then 1 or 0 end as departure

    , case when SYSDATE<= date2="" then="" 1="" else="" 0="" end="" as="">

    de)

    Select *-it's select_3

    of call_1 cd

    inner join call_2 ON cd.name = cl.queue cl

    ) j

    )

    ;

    As mentioned in a previous answer, you should be careful about the use of "SELECT *" in production code.

    In select_3, it would be better if you explicitly listed the columns you need.  It can improve efficiency and maintenance.  In this request, queue and the name will be always the same, so you probably don't want to include both of them in the result set, in any case.

    In select_1 and select_2, it is acceptable to use "SELECT *", assuming that select_3 is fixed.

    Moreover, there is no point in using subqueries here.  You can get the same results simply in a single query, without any subqueries.

  • How to create several timestamps fileds in EDS data object?

    Hi all


    I am creating BAM BOF EDS data objects. I have provided information for the connections of the DB, during the recording of the data objects its not allowing the fields of timestamps.
    is there a workaround solution and please let me know the possibilities.

    Thank you.
    Swamy

    Hello

    Here is the SNA for this oracle docs question.from
    Note:

    Only the tables owned by the user are displayed when a data object is created on an EDS.

    Creating a data object with multiple fields of time on an EDS stamp is not supported.

    http://docs.Oracle.com/CD/E15586_01/integration.1111/e10224/bam_data_objects.htm#BABCEHBB

    http://docs.Oracle.com/CD/E15586_01/integration.1111/e10224/bam_extl_data_sources.htm

    Thank you
    Siva

  • Boxes and custom data objects

    I am creating a form with a list of checkboxes based on interests of customers - there are 8 in total and they can select several options.

    What I want to do is to create shared lists for each option which will serve as a member of segment for future mailings.

    I also need to store data for that person together so if I never, I can go and say ' well, Joe Bloggs here is interested in X, Y and Z, so I'll put him in the countryside, A and B'.

    Are the data objects custom the way forward? I had a go at creating and mapping it, but I don't know what to do with these boxes!

    Thank you!!

    For the shared list, simply use the step "Add to shared Contact list" of your form and make it to the condition that the box is checked. You will need 8 of these steps, one for each option.

    To preserve the data, I would like to use a custom data object. Create a new CDO set with an address field of the email and one for each of your boxes (and any other information you want, of course.) And then use the processing stage of 'Update Custom Data object - With Custom Values'. You can define this step to add a 'yes' or 'on' or whatever you want to the appropriate field in the ORDER. Yet once, make this step on the box being checked in your form. Yet once, you need to create 8 of these steps, but once you get the first fact, others should go faster.

    PS, I kept typing "from" instead of "form". Argh.

  • Using Dataguard Oracle 10 g with Oracle EBS

    Hello

    I work on Linux with Oracle Database 10g and Oracle EBS R12 and try to configure Oracle Data Guard with Oracle EBS. I read My Oracle support Document (Business Continuity for Oracle E-Business release 12 using Oracle 11 g Physical Standby Database [1070033.1 ID]).

    Please let me know of any other useful document. It will also help if anyone could share experiences in real time.

    Thank you.

    Hello

    See this one

    Continuity of Oracle Applications Release 12 on exit 10 gr 2 - Single Instance database and RAC [ID 452056.1]

    Concerning
    SANAE

  • calling a package with in a select statement

    Hi all..

    I created two packages and pack8 called tabpack8 package... two different ways...
    There is an error with this statement
    Select the name MyName rab8 where place = tabpack8.test2 (myplace, 10);

    so... How can I call a package with in a select...


    CREATE or REPLACE PACKAGE tabpack8 authid current_user as
    procedure test1 (place out varchar2, myid number);
    function return number (place in varchar2, myid number) test2;
    end;
    /


    create or replace package body tabpack8 as
    procedure test1 (place out varchar2, myid number) is
    Start
    SELECT place of rab8 where id = myid;
    end Test1;
    function test2 (place in varchar2, myid number) return number is
    number of l_num;
    Start
    Select place in l_num rab8 where id = myid;
    Return l_num;
    end test2;
    END tabpack8;
    /

    CREATE or REPLACE PACKAGE pack8 authid current_user as
    operative;
    end;


    create or replace package body like pack8
    operation is
    MyPlace varchar2 (20);
    MyName varchar2 (20);
    Start
    tabpack8.test1(MyPlace,10);
    Select the name MyName rab8 where place = myplace;
    dbms_output.put_line ('Res-' | myname);

    Select the name MyName rab8 where place = tabpack8.test2 (myplace, 10);
    dbms_output.put_line ('Res-' | myname);
    end test;
    END pack8;
    /

    Thanks in advance
    gud day

    Try this and let us know.

    function test2(place in varchar2,myid in number ) return varchar2
    is
         l_var tab8.place%type;
    begin
         select place into l_var from tab8 where id = myid;
         return l_var;
    end test2;
    

    Thank you
    Knani.

  • How can I add data file to an existing table on Oracle RAC ASM with no OMF? Thank you!

    How can I add data file to an existing table on Oracle RAC ASM with no OMF? Thank you!

    Hello

    So I guess you have some files in ASM, see your first existing file structure

    Select file_name

    from dba_data_files;

    and to add to an existing table, the example below (even if you're better sticking with OMFs!)-is that what you are looking for?

    SQL > create tablespace TEST1

    2 datafile '+ DATA' size 1 M;

    Created tablespace.

    SQL > select file_name in dba_data_files;

    FILE_NAME

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

    +Data/orcl2/datafile/users.259.859820983

    +Data/orcl2/datafile/undotbs1.258.859820983

    +Data/orcl2/datafile/SYSAUX.257.859820983

    +Data/orcl2/datafile/system.256.859820981

    +Data/orcl2/datafile/example.269.859821049

    +Data/orcl2/datafile/Test1.271.859843053

    6 selected lines.

    SQL > alter tablespace TEST1

    2 Add datafile ' + DATA / mynewfile01.dbf ' size 2 m;

    Tablespace altered.

    SQL > select file_name in dba_data_files;

    FILE_NAME

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

    +Data/orcl2/datafile/users.259.859820983

    +Data/orcl2/datafile/undotbs1.258.859820983

    +Data/orcl2/datafile/SYSAUX.257.859820983

    +Data/orcl2/datafile/system.256.859820981

    +Data/orcl2/datafile/example.269.859821049

    +Data/orcl2/datafile/Test1.271.859843053

    + DATA / mynewfile01.dbf

    Thank you

Maybe you are looking for

  • Storage

    I have increased my Icloud storage space, but I am unable to get library Icloud in storage management (settings, general, storage and use of Icloud) which means that my photos are not saved in Icloud. We have another Iphone belonging to the family wh

  • clicking file Adobe Acrobat opens Microsoft fax viewer

    I want to view an Acrobat file to my online investment fund and when I click on the icon of the file Adobe, Microsoft Viewer and fax window and I can't view the file. How to get back the function by which my software Adobe reader opens the display of

  • No available boot device?

    Unlike so many others on this site, after you receive the message "No boot device - insert boot disk and press any key", I don't then enter my mac no matter what buttons I press. I have a macbook air 11 inches, but I do not know the details because o

  • Satellite A350: How to change the size of the partitions on the HARD drive?

    Hello I have a Satalite A350 with a 250 G, but for some reason hard drive any, that it has been partitioned with 114 for the C drive and a huge 114 for drive E g which is simply the recovery disc. I'm now at 20 g on the C, but still have a Virgin 100

  • print sent from emails

    I am not able to print the emails I sent.  I can print emails I received.