Oracle 11g unpivot help request

Hello

I have a single line of data showing the re-entry of the duration and end dates in 2011/12. I need to convert this one line of data (containing 16 columns) in 5 rows consisting of only 4 columns (year, term, term_start term_end).

Is it possible to use just Oracle 11 g unpivot function_ to convert 16 columns of the following data:

Select * from
(select 2012 as terms_year,
1 as a T1,'05-AUG-2011' as T1_SD, October 21, 2011 "as T1_ED,
2 as T2, October 31, 2011"as T2_SD, 16 December 2011 ' as T2_ED.
3 as T3, 3 January 2012 'as T3_SD', February 10, 2012 as T3_ED.
"4 as T4, 20 February 2012 ' as T4_SD, 30 April 2012" as T4_ED.
5 as T5, 16 April 2012 'as T5_SD', June 1, 2012 as T5_ED
the double) mytable

aka
TERMS_YEAR             T1                     T1_SD       T1_ED       T2                     T2_SD       T2_ED       T3                     T3_SD       T3_ED       T4                     T4_SD       T4_ED       T5                     T5_SD       T5_ED       
---------------------- ---------------------- ----------- ----------- ---------------------- ----------- ----------- ---------------------- ----------- ----------- ---------------------- ----------- ----------- ---------------------- ----------- ----------- 
2012                   1                      05-SEP-2011 21-OCT-2011 2                      31-OCT-2011 16-DEC-2011 3                      03-JAN-2012 10-FEB-2012 4                      20-FEB-2012 30-APR-2012 5                      16-APR-2012 01-JUN-2012 
in the following 4 columns of data (year, term, term_start term_end):

Select the term, terms_year, t1_ed, t1_sd as term_start as term_end of
(select 2012 as terms_year, 1 as a term, '' 05-AUG-2011 as T1_SD, October 21, 2011 ' like T1_ED of all the double union)
"Select 2012 as terms_year, as a term, October 31, 2011 2 ' as T2_SD, 16 December 2011 ' like T2_ED of all the double union
Select 2012 as terms_year, 3 as a term, 3 January 2012 'as T3_SD', February 10, 2012 as T3_ED of all the double union
Select 2012 as terms_year, 4 as term, 20 February 2012 'as T4_SD', April 30, 2012 as T4_ED of all the double union
Select 2012 as terms_year, 5 as term, 16 April 2012 'as T5_SD', June 1, 2012 as double T5_ED) mytable

aka
TERMS_YEAR             TERM                   TERM_START  TERM_END    
---------------------- ---------------------- ----------- ----------- 
2012                   1                      05-SEP-2011 21-OCT-2011 
2012                   2                      31-OCT-2011 16-DEC-2011 
2012                   3                      03-JAN-2012 10-FEB-2012 
2012                   4                      20-FEB-2012 30-APR-2012 
2012                   5                      16-APR-2012 01-JUN-2012 
Much obliged if anyone can show me how - I can't get my head around the pivot/unpivot syntax! For example

Select *.
FROM MyTable
UNPIVOT)
unpivot_clause
unpivot_for_clause
unpivot_in_clause)

Thank you

TP.

Hello

Using SELECT... Function PIVOT:

SELECT       terms_year
,       term
,       term_start
,       term_end
FROM       mytable
UNPIVOT       (  ( term
          , term_start
          , term_end
          )     FOR num_col
             IN ( (t1, t1_sd, t1_ed)     AS 1
             , (t2, t2_sd, t2_ed)     AS 2
             , (t3, t3_sd, t3_ed)     AS 3
             , (t4, t4_sd, t4_ed)     AS 4
             , (t5, t5_sd, t5_ed)     AS 5
             )
       )
ORDER BY  terms_year     -- If needed
,            num_col
;

The basic syntax for UNPIVOTing to 1 column (more a column label) is

UNPIVOT (    outcol
     FOR  label     IN ( incol_1  AS label_val_1
                       , incol_2  AS label_val_2
                  ...
                  , incol_n  AS label_val_n
                       )
     )

where
outcol is the output column pivoting, which contain values from the original table.
label is a column of the label, which will contain values hardcoded in the application,
incol_1, incol_2,..., incol_n are the columns of the table of origianl to be no dynamic crossroads
label_val_1, label_val_2,..., label_val_n are hard-coded values that will go into the label column.

The syntax for pivot of columns of m (m > 1) is how to rotate the 1 column, but
instead of outcol, you give a list separated by commas of outcols m, surrounded by parentheses, and
instead of incol_1, incol_2,... incol_n, you give a list separated by commas of the columns m, between brackets.

In addition, store dates in VARCHAR2 columns is not a very good idea. Use the DATE columns.

Published by: Frank Kulash, 16 July 2012 18:11

Tags: Database

Similar Questions

  • Oracle 11g memory usage request

    Hi guys,.

    Version: 11.0.2.4

    Platform: HP - UX

    I have a server with 10 GB physical memory game and Memory_Target and Memory_Max to 2g.

    Understand that this memory_target consists of SGA and PGA.

    With memory_target set to 2 GB, Oracle may use the > 2 GB?

    In my view, it is possible to use 2 GB > PGA is not a strict limit.

    If this is the case, how to find the total memory (sga + pga) used by the Oracle database?

    Thank you

    Vinod Nagpure wrote:

    Oracle cannot exceed MEMORY_MAX_TARGET. Your target max is 2 GB, so it can use more than 2 GB. This is a combined limit for SGA + PGA.

    Kind regards

    Vinod

    We have NO control on no tunable pga memory, then Yes, you can exceed MEMORY_MAX_TARGET

    Take a look on: https://asktom.oracle.com/pls/asktom/f?p=100:11:0:P11_QUESTION_ID:2054116400346220697

    @1037975 if this is the case, how can I find the total memory (sga + pga) used by the Oracle database?

    You can use the following queries:

    Total memory occupied by Instance (SGA + PGA)

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

    Select sum (bytes) / 1024/1024 MB of (select bytes from v$ sgastat union select v byte value $ s sesstat, v$ statname n where n.STATISTIC # = s.STATISTIC # and n.name = "pga session in memory");

    Process memory (memory of individual processes)

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

    Select a.sid, value /(1024*1024), program v session $ a, v$ sesstat b where a.sid = select and b.statistic #= ("select statistic # v $ statname where name = ' pga session in memory");

    Kind regards

    Suntrupth

  • Help me! Impossible to install oracle 11g on ubuntu

    Hello I am a student, I am a student of oracle database 11g, but I encountered a bug like
    http://Nguy-Hiem.co.cc/12.PNG

    I try to fix it and I start fixup.sh, but

    root@hieukenpro-virtual-machine:/tmp/CVU_11.2.0.1.0_oracle#./runfixup.sh
    Answer file used is:./fixup.response
    Activate used file is:./fixup.enable
    Location of the log file:./orarun.log
    *. ' / fixup.response: line 11: Unexpected EOF while looking for matching ' ' ' *.
    *. / fixup.response: line 12: syntax error: unexpected end of file *.
    *. / fixup.response: line 12: warning: syntax errors in. or eval will cause future versions of the shell to abandon as Posix requires *.
    Definition of parameters of the kernel... *.
    * uid = 1001 (Oracle) gid = 1001 (oinstall) groups = 1001 (oinstall), 1002 (dba) *.
    * oracle hard nproc 16383 *.
    * Couldn't find /etc/security/limits.conf or answer fichier.* MAX_PROCESSES_HARDLIMIT
    * oracle hard nofile 65535 *.
    * Couldn't find /etc/security/limits.conf or answer fichier.* FILE_OPEN_MAX_HARDLIMIT
    * oracle soft nofile 1023 *.
    * Couldn't find /etc/security/limits.conf or answer fichier.* FILE_OPEN_MAX_SOFTLIMIT

    so, what should I do?
    Thank you!

    Published by: 837251 at 16/02/2011 05:14

    Published by: 837251 at 05:17 16/02/2011

    Oracle 11g does not support Ubuntu. It can be installed, but it requires around Word:

    Re: Installing Oracle 11g R2 on Howto Ubuntu 10

  • use of temporary space in oracle 11g rac

    Hello

    Oracle version: oracle 11g r2

    OS: linux

    storage: asm on exadata

    Please help us understand the use of the temp

    {code}

    SQL > set linesize 1000
    SQL > set pagesize 1000
    SQL > col USERNAME format a20
    SQL > col SPID format a10
    SQL > col MODULE format a30
    SQL > col PROGRAM format a30
    SQL > SELECT s.sid, s.serial #, s.username
    2, p.spid, s.module, p.program
    3, SUM (su.blocks) * tbsp.block_size/1024/1024 mb_used
    4, su.tablespace
    5. FROM v$ sort_usage su
    6, v$ session s
    dba_tablespaces tbsp
    7, $v 8 p process
    9 WHERE su.session_addr = s.saddr
    10 AND su.tablespace = tbsp.tablespace_name
    11 AND s.paddr = p.addr
    GROUP 12 OF
    13 s.sid, s.serial #, s.username, s.osuser, p.spid, s.module,.
    14 p.program, tbsp.block_size, su.tablespace
    15 ORDER BY s.sid;

    USERNAME SID SERIAL # SPID MODULE PROGRAM MB_USED TABLESPACE
    ---------- ---------- -------------------- ---------- ------------------------------ ------------------------------ ---------- -------------------------------
    11 2092 DBSNMP 2861 emagent_SQL_oracle_database Oracle @ [email protected] 8 TMP4

    SQL > select * from v$ temp_space_header;

    FILE_ID BYTES_USED, BYTES_FREE BLOCKS_FREE RELATIVE_FNO BLOCKS_USED NOM_TABLESPACE
    ------------------------------ ---------- ---------- ----------- ---------- ----------- ------------
    TMP1 2 + 12 222274816 33554432 2048 1024 3.6418E
    TMP3 4 + 11 19283968 75497472 4608 1024 3.1595E
    TMP4 5 + 11 19687936 0 0 1024 3.2257E
    TMP5 6 + 13 688638464 0 0 1024 1.1283E

    {code}

    Why isn't bytes_used reclaim as only 8 MB is currently using

    Thank you

    PMP

    I wanted to tell temp is never off allocated. So, if a 'bad' query explodes temp. the only thing you can do is to create a new and drop the old one.

    11 GB temp is clearly ridiculous. Usually, this is caused by the merge join Cartesian paths in your instructions.

    -----------

    Sybrand Bakker

    Senior Oracle DBA

  • How interrogate a user affected temp and tableapce default tablespace in oracle 11g?

    I have this SUNNY user on my DB. Now, I want to know how to query an affected user temp and tableapce default tablespace in oracle 11g?

    I tried Google, but no luck. can anyone help?

    Select the name of user, USER_USERS, temporary_tablespace from dba_users where username = "SUNNY";

    or

    Select the name of user, USER_USERS, temporary_tablespace from user_users where username = "SUNNY";

  • Is it possible to get the data in the dump views in oracle 11g file?

    Hi all

    I am using oracle 11G with developer PLSQL .is there a way to get the dump file views data. I saw there is an option in the tool to export the table data in the dumpster, but here, I'm not able to see the view names get extracted. If anyone can help me with that?

    Best regards

    GK

    View has no data. View is just a stored SELECT statement.

  • Parametric roles in Oracle 11g BPM

    Hi all!

    To us all who asked how the parametric roles in Oracle 11g BPM, here´s how do, hope this helps.

    Kind regards!

    Z3uV4k

    https://docs.Google.com/file/d/0B7YrnfO7h717M2U1MTlmMmEtZjI3Mi00ZTNhLWFhNTQtYzkyZjc5OGI5Y2I4/edit?PLI=1

    Can also focus on a blog post that I wrote based on an idea with arun Pareek came.  (click here)

    The differences are (1) that allows you to assign parametric groups roles or application rather than individual users roles, which makes them easier to maintain and IMO (2) it is much easier to do it using this technique.

    Dan

  • Change the default value of some columns in an oracle 11g table

    I have a table called cust_file, its table consists of a large number of columns (one of these columns called cus_tax) and have a lot of data.

    I use oracle 11g, I want to change the default value of the column cus_tax is equal 1.

    I wrote

    ALTER TABLE cust_file MODIFY (1 by DEFAULT cus_tax).


    Table changed


    but after I inserted new data to test the operation, I found that the new record has a value = null for the column cus_tax


    then I tested it using the following query


    Select data_default in the all_tab_columns where table_name = 'CUST_FILE' and column_name = 'CUS_TAX ';

    no selected line


    so please help me to change the default value of the cus_tax column.



    Thanks for any help.



    > but after I inserted new data to test the operation, I found that the new record has a value = null for the column cus_tax

    If the INSERT included a NULL value for the column, the GET of a NULL inserted by default substitution.

    SQL > create table hkc_test_10 (id_column number, data_col_1 varchar2 (5), data_col_2 varchar (5));

    Table created.

    SQL > insert into hkc_test_10 values (1, 'First', 'F');

    1 line of creation.

    SQL > select * from hkc_test_10 by 1.

    ID_COLUMN DATA_ DATA_
    ---------- ----- -----
    1 first F

    1 selected line.

    SQL > alter table hkc_test_10 change (data_col_2 default 'TRUE');

    Modified table.

    SQL > insert into hkc_test_10 values (2, 'Second', NULL);

    1 line of creation.

    SQL > select * from hkc_test_10 by 1.

    ID_COLUMN DATA_ DATA_
    ---------- ----- -----
    1 first F
    2 second

    2 selected lines.

    SQL > insert into hkc_test_10 (id_column, data_col_1) values (3, 'Third');

    1 line of creation.

    SQL > select * from hkc_test_10 by 1.

    ID_COLUMN DATA_ DATA_
    ---------- ----- -----
    1 first F
    2 second
    3 third TRUE

    3 selected lines.

    SQL >

    Hemant K Collette

  • Installing oracle 11g (RAC) on RHEL 6

    Dear all,


    Me and my team will install oracle 11g (RAC) on RHEL 6.
    About mention above I have little doubt it please help me out in this matter.

    In the network section.

    Requirement of intellectual property:

    1 public IP address
    2 private IP
    3. virtual IP address

    Suppose we have two interfaces in each server, eth0 and eth1.

    I put the public IP address in eth0 192.9.25.100 and private 10.79.1.100 eth1 IP address
    Now where put the virtual IP address and what is the procedure.

    Please help me to set the virtual IP address


    Thanks and greetings
    Yvon Das
    S/n, Guwahati

    Published by: Yvon on 23 May 2013 23:44

    Hello

    See the message below:

    http://www.Oracle-base.com/articles/11g/Oracle-DB-11gr2-RAC-installation-on-Oracle-Linux-6-using-VirtualBox.php

    If you need clarification update here.

    Thank you
    A H E E R X

  • Import of XML in the oracle 11g database

    I have some difficulty parsing of an XML file in the oracle 11g database.

    Currently using Oracle 11 g Express Edition (XE)

    Here's how my XML file looks like this:


    <? XML version = "1.0" encoding = "UTF-8" standalone = "yes"? >
    -< AccountMap xmlns: xsi = "http://www.w3.org/2001/XMLSchema-instance" >
    -< account >
    -< AccountMapping >
    < AccountID > 0000000000000 - 000 < / AccountID >
    < AccountName > XLS < / AccountName >
    Excel < AccountType > < / AccountType >
    < AccountOwner > system < / AccountOwner >
    < / AccountMapping >
    -< AccountMapping >
    < AccountID > 0000000000000 - 001 < / AccountID >
    < AccountName > XLSS < / AccountName >
    Excel2 < AccountType > < / AccountType >
    System2 < AccountOwner > < / AccountOwner >
    < / AccountMapping >
    -< AccountMapping >

    and so now the file continues... I have the xml file that is saved on my hard drive

    I created a package in SQL Developer

    create or replace
    PACKAGE XML_FILEHANDLER AS

    type TRecord is (record
    Account_ID varchar2 (100)
    , Varchar2 (100) AccountName
    , Varchar2 (30) AccountType
    , AccountOwner varchar2 (100)
    );

    type TRecordTable is table of the TRecord;

    getRows function (p_directory in varchar2, p_filename in varchar2) return TRecordTable pipeline;

    END XML_FILEHANDLER;

    -BODY

    create or replace
    PACKAGE BODY XML_FILEHANDLER AS

    getRows function (p_directory in varchar2, p_filename in varchar2) return TRecordTable AS pipeline

    nb_rec NUMBER: = 1;
    tmp_xml CLOB.
    tmp_file CLOB.
    REC TRecord;

    BEGIN

    DBMS_LOB.CREATETEMPORARY (tmp_file, true);
    tmp_file: = dbms_xslprocessor.read2clob (p_directory, p_filename);

    recomm. Account_ID: = regexp_replace (tmp_file, '. * <>(. *) Account_ID < / Account_ID >. *', '\1', 1, 1, 'n');
    recomm. AccountName: = regexp_replace (tmp_file, '. * < AccountName >(.*) < / AccountName >. *', '\1', 1, 1, 'n');
    recomm. AccountType: = regexp_replace (tmp_file, '. * < AccountType >(.*) < / AccountType >. *', '\1', 1, 1, 'n');
    recomm. AccountOwner: = regexp_replace (tmp_file, '. * < AccountOwner >(.*) < / AccountOwner >. *', '\1', 1, 1, 'n');

    loop

    -This regexp is instance (s) of this model: "<? XML...? ' > < root_tag >... < / root_tag >.
    tmp_xml: = regexp_substr ([tmp_file, ' < \?xml[^?] +------? > \s+ < ([^ >] +) >. *? < / \1 > ', 1, nb_rec, 'n');
    When the output length (tmp_xml) = 0;
    -dbms_output.put_line (tmp_rec);
    nb_rec: = nb_rec + 1;

    SELECT Account_ID AccountName, AccountType, AccountOwner
    in rec. Account_ID, rec. AccountName, AccountType rec. rec. AccountOwner
    from xmltable)
    "Accounts/AccountMapping" in the way of xmltype (tmp_xml) columns
    Path of varchar2 (100) Account_ID 'Account_ID '.
    , Path of varchar2 (100) AccountName "AccountName".
    , AccountType varchar2 (30) path 'AccountType '.
    , Path of varchar2 (100) AccountOwner "AccountOwner.
    );

    line (CRE);

    end loop;

    DBMS_LOB.freeTemporary (tmp_file);

    GetRows END;

    END XML_FILEHANDLER;

    -I call my function using the following sql query

    Select * from table (XML_FileHandler.getRows ("XML", "test.xml"));

    Here is the error I get

    ORA-29283: invalid file operation
    ORA-06512: at "SYS." UTL_FILE", line 536
    ORA-29283: invalid file operation
    ORA-06512: at "XDB". DBMS_XSLPROCESSOR', line 265
    ORA-06512: at "user. XML_FILEHANDLER', line 13
    29283 00000 - "invalid file operation.
    * Cause: An attempt was made to read from a file or a directory which is
    not exist, or the file or directory access was denied by the
    Operating system.
    * Action: Check access privileges to the file and directory on the file system
    and if reading, check that the file exists.

    I did the following

    -Provided appropriate access to the user (read, write), including directory access rights
    -ensure that the directory exists
    -to ensure the existence of the file

    I have searched all over google and metalink but am unable to get this to run... Help, please!

    >
    SELECT Account_ID AccountName, AccountType, AccountOwner
    in rec. Account_ID, rec. AccountName, AccountType rec. rec. AccountOwner
    from xmltable)
    "Accounts/AccountMapping" in the way of xmltype (tmp_xml) columns
    Path of varchar2 (100) Account_ID 'Account_ID '.
    , Path of varchar2 (100) AccountName "AccountName".
    , AccountType varchar2 (30) path 'AccountType '.
    , Path of varchar2 (100) AccountOwner "AccountOwner.
    );
    >
    implement

    SELECT Account_ID, AccountName, AccountType, AccountOwner
    into rec.Account_ID, rec.AccountName, rec.AccountType, rec.AccountOwner
    from xmltable(
    'AccountMap/Accounts/AccountMapping' passing xmltype(tmp_xml) columns
    Account_ID varchar2(100) path 'Account_ID'
    , AccountName varchar2(100) path 'AccountName'
    , AccountType varchar2(30) path 'AccountType'
    , AccountOwner varchar2(100) path 'AccountOwner'
    );
    
    SQL> SELECT Account_ID, AccountName, AccountType, AccountOwner
      2  --into rec.Account_ID, rec.AccountName, rec.AccountType, rec.AccountOwner
      3  from xmltable(
      4  'AccountMap/Accounts/AccountMapping' passing
      5  xmltype('
      6  
      7  
      8  
      9  0000000000000-000
     10  XLS
     11  Excel
     12  System
     13  
     14  
     15  0000000000000-001
     16  XLSS
     17  Excel2
     18  System2
     19  
     20  
     21  ')
     22  columns
     23  Account_ID varchar2(100) path 'Account_ID'
     24  , AccountName varchar2(100) path 'AccountName'
     25  , AccountType varchar2(30) path 'AccountType'
     26  , AccountOwner varchar2(100) path 'AccountOwner'
     27  );
    
    ACCOUNT_ID                                                                       ACCOUNTNAME                                                                      ACCOUNTTYPE                    ACCOUNTOWNER
    -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- ------------------------------ --------------------------------------------------------------------------------
                                                                                     XLS                                                                              Excel                          System
                                                                                     XLSS                                                                             Excel2                         System2
    
    SQL> 
    

    AccountID use AccountID not Account_ID

    Account_ID varchar2(100) path 'AccountID'
    

    Published by: Alexandr on August 9, 2012 12:35 AM

  • Migrating oracle 9i to oracle 11g but now dblink is no work

    First of all, sorry for my English.
    Achieved an export from the old to the new db_links and now do not work.

    Oracle 9i - work

    13:52:45 card > @banco
    Mostra user, instance, e start time host - pressure enter para continue
    E the USER 'SYSTEM '.

    INSTANCE_NAME HOST_NAME STATUS STARTUP_TIME
    ---------------- ---------------------------------------------------------------- ------------ --------------
    atlas1 card OPEN 01/23/12 17:53

    Decorrido: 00:00:00.03

    BANNER
    ----------------------------------------------------------------------------------------------------
    Oracle9i Enterprise Edition Release 9.2.0.8.0 - Production
    PL/SQL Release 9.2.0.8.0 - Production
    CORE Production 9.2.0.8.0
    AMT for Linux: Version 9.2.0.8.0 - Production
    NLSRTL Version 9.2.0.8.0 - Production

    Decorrido: 00:00:00.03
    13:52:46 card >

    13:52:59 card > @dblink
    Informed o valor para db_link: scapr

    OWNER, DB_LINK CREATED USERNAME HOST
    -------------------- ------------------------------ -------------------- ------------------------------ --------------
    SCAPROD.PANVEL.COM.BR PUBLIC LINK SCA 17/11/11 14:35

    Decorrido: 00:00:00.03
    13:53:03 card > desc dual@scaprod
    Nome
    -------------------------------------------------------------------------------------------------------------------------
    MODEL

    13:53:07 card > desc [email protected]
    Nome
    -------------------------------------------------------------------------------------------------------------------------
    MODEL

    13:53:16 card >

    13:53:16 card > show the global setting

    VALUE OF TYPE NAME
    ------------------------------------ ----------- -------------
    global_context_pool_size string
    global_names boolean FALSE
    13:53:40 card >



    Oracle 11g - does not, a little work with the full name of the db_link:

    13:53:57 nouveaute11 > @banco
    Mostra user, instance, e start time host - pressure enter para continue
    E the USER 'SYSTEM '.

    INSTANCE_NAME HOST_NAME STATUS STARTUP_TIME
    ---------------- ---------------------------------------------------------------- ------------ -----
    aquarius card OPEN 01/26/12-13:42

    Decorrido: 00:00:00.01

    BANNER
    ----------------------------------------------------------------------------------------------------
    Oracle Database 11 g Enterprise Edition Release 11.2.0.3.0 - 64 bit Production
    PL/SQL Release 11.2.0.3.0 - Production
    CORE Production 11.2.0.3.0
    AMT for Linux: Version 11.2.0.3.0 - Production
    NLSRTL Version 11.2.0.3.0 - Production

    Decorrido: 00:00:00.04
    13:53:58 nouveaute11 >

    13:54:12 nouveaute11 > @dblink
    Informed o valor para db_link: scapr

    OWNER, DB_LINK CREATED USERNAME HOST
    -------------------- ------------------------------ -------------------- ---------------------------
    SCAPROD.PANVEL.COM.BR PUBLIC LINK SCA 26/01/12 13:02

    Decorrido: 00:00:00.03
    13:54:16 nouveaute11 > desc [email protected]
    Nome
    ---------------------------------------------------------------------------------------------------
    MODEL

    13:54:23 nouveaute11 > desc dual@scaprod
    ERROR:
    ORA-02019: description of conexao para o banco dados não localizada remote


    13:54:26 nouveaute11 >

    13:54:41 nouveaute11 > display the global setting

    VALUE OF TYPE NAME
    ------------------------------------ ----------- ------------------
    global_context_pool_size string
    global_names boolean FALSE
    global_txn_processes integer 1
    13:54:45 nouveaute11 >


    Any help? :)
    Thank you!

    vitorjr81 wrote:
    As you can see the db_link is functional, but just with the name and surname:

    13:54:16 nouveaute11 > desc [email protected]
    Name MODEL

    13:54:23 nouveaute11 > dual@scaprod desc
    ERROR:
    ORA-02019: description of conexao para o banco dados não localizada remote

    13:54:26 nouveaute11 >

    13:54:41 nouveaute11 > display the global setting

    VALUE OF TYPE NAME
    -chain global_context_pool_size
    global_names boolean FALSE
    global_txn_processes integer 1

    Do as below and post the results here

    SQL> select global_name from global_name;
    
    GLOBAL_NAME
    --------------------------------------------------------------------------------
    V112
    
    SQL> 
    
  • How to create the new database in oracle 11g

    Hello
    I m new in oracle 11g, I downloaded oracle 11g and with the help of the guide of the developer-2 days, I learned all the SQL queries, but I worked with human resources database.
    Now, I want to create my own database with the required tables. Can anyone help me how I can make my own database in oracle 11g.

    Thank you
    Manna

    870692 wrote:
    Hello
    I m new in oracle 11g, I downloaded oracle 11g and with the help of the guide of the developer-2 days, I learned all the SQL queries, but I worked with human resources database.
    Now, I want to create my own database with the required tables. Can anyone help me how I can make my own database in oracle 11g.

    Thank you
    Manna

    Be sure to distinguish between the terms and the database schema. Other products, make them bad. It would be a HR diagram (or a user, which is the same in Oracle). If you do not need to use the database Wizard, unless you are working with a new host with no database.

    A simple way would be to get the DDL to create the HR schema and modify it for your own. It can be extracted from your database in several ways, or you can copy the hr_cre.sql to your own script and change. The two ways are educational, and you can google for instructions.

  • Oracle 11g no network client machine connects.

    Oracle 11g was installed on windows server 2003.

    ORA-12514: TNS:listener is not currently of service requested in connect descriptor . _

    We receive oracle above except when you give the following command:

    LSNRCTL > services oracle11g_listener
    Connection to (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP) (HOST = CBR-SRV-HPORA. CIBER-INDIA. (IN) (PORT = 1522)))
    _ The listener supports no services
    The command completed successfully.

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


    C:\Documents and Settings\oracle > sqlplus scott/tiger@oracle11g_netservice

    SQL * more: Production release 11.2.0.1.0 Wed Jul 28 18:10:40 2010

    Copyright (c) 1982, 2010, Oracle. All rights reserved.

    ERROR:
    ORA-12514: TNS:listener is not currently of service requested in connect
    descriptor of

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

    Please advice what could be the problem.

    Thank you.

    Your Lstener knows nothing about services. You must configure the dynamic record of service in your database, for example

    ALTER system set local_listener = "(DESCRIPTION = (ADDRESS =(PROTOCOL=TCP) (HOST = CBR-SRV-HPORA. CIBER-INDIA. IN) (PORT = 1522))) ';

    (for permanent fixing forget pfile or spfile)

    After the database records the address und thie services you will see the service when you ask "srvctl services oracle11g_listener.

    Kind regards
    Dojo

  • How clearup unsuccessful installing oracle 11g R2 on redhat linux 5

    Hello world

    Try to install oracle 11g R2 on the test server Red Hat linux 5 (according to the quick installation guide), I did the following tests:

    trial (1): failed by giving the file not found error. I discovered that I need to I have unzipped the source files in a dir.
    (2) trial: failed because there is no static IP address
    trial (3): failed because that/etc/hosts was not set correctly.

    the installation was supposed to be in default dir/home/oracle/app
    the problem is that before every test I just renamed app app_old and once again the new installation with the default settings.

    I have now to clearup this whole mess, I know this isn't simply deleting the directory created, because I need to free the RAM memory reserved for the crteated of databases in all previous installations.

    Help please,
    Thanks for your time

    Hi Alain;

    Similar topic discussed here before. Please check:

    Uninstall db Oracle 11 g r1 OS linux 5
    Uninstall db Oracle 11 g r1 OS linux 5

    How do I uninstall datbase 11g
    How do I uninstall datbase 11g

    Respect of
    HELIOS

  • Oracle 11g remote connection problem

    When I try to connect to the Oracle database using SQLPlus or SQLDeveloper remotely I get the following error.

    ORA-01017: INVALID USERNAME/PASSWORD; logon denied.

    Server details:
    Oracle 11g on Linux Enterprise 4
    I can connect to the server using SQLPlus.
    SQLCASE SHOW is MIXED

    Customer details:
    Windows Server 2003 enterprise Edition
    Oracle 11g Client.
    Remote computer my TNSPING to this server works perfectly.

    For the same connection string, I can't connect to the client. I don't know that I type wrong password.

    Any thoughts on this will be helpful.

    Thank you
    Smith

    If it's a sys user you will need to set the password file to connect to the database as sysdba user remotely. and we do not need to check if the privilege to connect is given to the sys user or not. adding to this remote_login_password check = EXCLUSIVE lock

    Published by: sshafiulla on February 16, 2010 23:17

Maybe you are looking for