Sqlplus formattin issue

Hi,
my database version is:
BANNER                                                                         
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production         
PL/SQL Release 11.2.0.1.0 - Production                                         
CORE     11.2.0.1.0     Production                                                     
TNS for 32-bit Windows: Version 11.2.0.1.0 - Production                        
NLSRTL Version 11.2.0.1.0 - Production                                          I execute the following statements in sqlplus:
set serveroutput on size unlimited
set linesize 100
col lvl format 9999
col txt format a80
set pagesize 9999
select level lvl
      , rpad ('*', level * 20, 'The quick brown fox jumps over the lazy dog') txt
   from dual
connect by level <= 10;The col keyword instruct sqlplus to keep the width of column txt to 80. This is causing word wrapping when column is longer than 80:
Output:
  LVL TXT
    1 *The quick brown fox
    2 *The quick brown fox jumps over the lazy
    3 *The quick brown fox jumps over the lazy dogThe quick brown
    4 *The quick brown fox jumps over the lazy dogThe quick brown fox jumps over the l
    5 *The quick brown fox jumps over the lazy dogThe quick brown fox jumps over the l
      azy dogThe quick bro
    6 *The quick brown fox jumps over the lazy dogThe quick brown fox jumps over the l
      azy dogThe quick brown fox jumps over th
    7 *The quick brown fox jumps over the lazy dogThe quick brown fox jumps over the l
      azy dogThe quick brown fox jumps over the lazy dogThe quick
    8 *The quick brown fox jumps over the lazy dogThe quick brown fox jumps over the l
      azy dogThe quick brown fox jumps over the lazy dogThe quick brown fox jumps over
    9 *The quick brown fox jumps over the lazy dogThe quick brown fox jumps over the l
      azy dogThe quick brown fox jumps over the lazy dogThe quick brown fox jumps over
       the lazy dogThe qui
   10 *The quick brown fox jumps over the lazy dogThe quick brown fox jumps over the l
      azy dogThe quick brown fox jumps over the lazy dogThe quick brown fox jumps over
       the lazy dogThe quick brown fox jumps oAny time the column is exceeding 80 character, after word wrapping is also adding a blank line (from id 5 onwards).
This is not a big issue but is there any way to avoid this blank line?
Regards.
Al

Hi, Al,
SET     RECSEP  OFFeliminates the extra lines.
The way to un-do that command is, unintuitively:
SET     RECSEP  WRAPPED

Similar Messages

  • SQLPlus Output issue

    Running mutiple versions of SQLPlus with the same issue : 11.1.0.6.0, 11.1.0.7.0, 11.2.0.1.0 connecting to an external suppliers 9.2.0.8 database
    Batch file calls a number of sql scripts and creates and then appends the output to a file like this :
    sqlplus -s user@server @SQLStatement.sql >> %FILENAME%.TMP
    Within the SQL Statment we've got the following set statements then the select :
    set pagesize 0
    set heading off
    set echo off
    set verify off
    set linesize 3999
    set long 1000000
    select lots of XMLELEMENTs Where .......
    Within the output there are single space's, when the end of the line should be a space it actually drops the space and has the next line just after the last character.
    Changing the linesize has no effect other than decressing the number of times it happens by having a less rows by having a larger number.
    Is there a way to get the missing space back within Oracle or will I need to modify the tmp file with something like sed ?
    Many Thanks

    ... But honestly I wasn't facing to any problem with the older version.Neither I, but who knows... Here is a list of add-ons and bugs fixed since version 0.24. The list is extracted from rlwrap's "NEWS" file.
    0.28 rlwrap bug that caused termcap problems on Fedora Core 6
    fixed (thanks Tung Nguyen)
    0.27 when stdin is not a terminal, rlwrap will now exec() the
    specified command instead of complaining
    when stdout or stderr is not a terminal, rlwrap will re-open
    it to /dev/tty (the users terminal) after forking off the
    specified command (so "rlwrap cat > file" will work as a
    quick and dirty line editor)
    rlwrap now remembers inputs of length 1
    -D option to tell rlwrap how agressively it should weed out
    duplicate history entries
    -H option added (history format string)
    Added temporary fix for termcap weirdness on Fedora Core 6
    new -t option for a quick check of terminal capabilities
    (requires configuration with --enable-debug)
    rlwrap -s 0 <command> will now zap <commands> history
    fixed broken reporting of unrecognised options
    0.26 configure on FreeBSD 6.0 still didn't find libutil
    some files were unnecessarily kept open (thanks Stephan Springl)
    on each platform, rlwrap -h now accurately reflects whether
    rlwrap can use long options or optional arguments
    0.25 rlwrap would print input twice when in vi-mode
    rlwrap under FreeBSD 6.0 now uses openpty() from libutil (config
    script fixed)
    -P option added (one-shot rlwrap with pre-given prompt)
    Until now, whem the underlying command was killed by a signal,
    rlwrap would just exit with exit code 0. Now rlwrap will
    cleanup, reset its signal handlers and then send the same signal
    to itself - so that rlwraps parent (usually a shell) doesn't see
    the difference with an un-rlwrapped command
    Regards
    N.J.

  • Sqlplus Client issue

    We're running Linux RH5 x86-64 server with Oracle 11.2 EE Server (64 bit) for a local database and Oracle Client 11.2 (32 Bit) for db connectionss using the SQR (EPMS) reporting program. When attempting a sqlnet connection to a database through the 32 bit Client environment using SQR or Sqlplus (or even tnsping), the unix prompt just returns with no errors or messagess. It doesn't even reach the point of validating the username/password. Basically it just returns nothing. However, Sqlplus connections (or even tnsping) through the 64bit environment work fine. The end result is we're unable to establish connection to any database either by sqlplus or sqr successfully under the 32bit environment. The SQR application is currently not supported under a 64 bit oracle installation, hence the Oracle Client 32Bit instalaation.

    Anand wrote:
    We're running Linux RH5 x86-64 server with Oracle 11.2 EE Server (64 bit) for a local database and Oracle Client 11.2 (32 Bit) for db connectionss using the SQR (EPMS) reporting program. When attempting a sqlnet connection to a database through the 32 bit Client environment using SQR or Sqlplus (or even tnsping), the unix prompt just returns with no errors or messagess. It doesn't even reach the point of validating the username/password. Basically it just returns nothing. However, Sqlplus connections (or even tnsping) through the 64bit environment work fine. The end result is we're unable to establish connection to any database either by sqlplus or sqr successfully under the 32bit environment. The SQR application is currently not supported under a 64 bit oracle installation, hence the Oracle Client 32Bit instalaation.I suspect environmental variable problem (actually error of omission)
    ORACLE_HOME & PATH need to support the 32-bit executables.

  • Sqlplus query issue:customerID column appear twice

    I have tried in several ways to display a query where shows customer who have made more than 3 rentals from 01Nov to 31 Dec. However, for some reason the customerID column appear twice.
    ** I'm using 3 tables to get this result:
    select RentalAgreement.membershipcardid as "MCardID",
    customer.customerid,customer.cname,customer.address,
    membershipcard.customerid,invoice.rentc,RentalAgreement.DateAndTimeOfIssue,
    count(RentalAgreement.membershipcardid) as "NOfRents" from RentalAgreement,customer,membershipcard,invoice
    where rentalAgreement.membershipcardid=MembershipCard.MembershipCardID
    and customer.customerid = membershipcard.customerid
    and RentalAgreement.DateAndTimeOfIssue between '01-Nov-2012' and '31-Dec-2012'
    group by rentalAgreement.membershipcardid,MembershipCard.
    customerid,customer.cname,customer.address,invoice.rentc,customer.customerid,RentalAgreement.DateAndTimeOfIssue;
    MCardID CUSTOMERID CNAME ADDRES CUSTOMERID RENTC DATEANDTI
    NOfRents
    107 27 EDuois N151AS 27 60 11-NOV-12
    5
    108 28 WDuois N151AS 28 60 19-NOV-12
    5
    101 22 ALuois N193AS 22 60 22-NOV-12
    5
    MCardID CUSTOMERID CNAME ADDRES CUSTOMERID RENTC DATEANDTI
    NOfRents
    101 22 ALuois N193AS 22 60 21-NOV-12
    5
    101 22 ALuois N193AS 22 60 20-NOV-12
    5
    101 22 ALuois N193AS 22 60 24-NOV-12
    5
    MCardID CUSTOMERID CNAME ADDRES CUSTOMERID RENTC DATEANDTI
    NOfRents
    109 30 ADDuis N151AS 30 60 03-DEC-12
    5
    Thanks for your time.
    Im not sure if this query seems to be logic, I would appreciate any online guide for pl/sql

    Hi,
    978308 wrote:
    Hi
    Thank you for your answer. (I'm suing Oracle you're using (e.g. 11.2.0.1.0).
    sorry my question it wasnt not clear since I didn't attached my tables .
    As you suggested It is not necessary to use plsql, I tried to use the logic of algebra and old sql to solve query number 2: /* query No2
    produce a list of customers who have made more than three scotter rentals in the past 2 months
    show appropiate customer and rental agreement details*/
    However, I found many errors maybe because I my class diagram wasnt properly completed, So I decided to used plsql to get the result.
    It is true my query is incomplete because first of all I wanted to delete duplicate columns then I will work on number of ocurrences.
    If I delete and customer.customerid = membershipcard.customerid , sql will show 500 customers, the repetition is even higher. The condition "customer.customerid = membershipcard.customerid" in the WHERE clause looks right; you don't have to change that part.
    The SELECT clause determines what columns appear in the result set. If you only want customerid to appear in one column, then only include one customerid column in the SELECT clause. There need not be any connection between the SELECT clause and the WHERE clause; it's perfectly okay to use a column in the SELECT clause but not the WHERE clause, and it's perfectly okay to use a column in the WHERE clause but not the SELECT clause.
    /* query No2
    produce a list of customers who have made more than three scotter rentals in the past 2 months
    show appropiate customer and rental agreement details*/Once again, please format your code, and use \ tags when you post it here to preserve the spacing.  It's hard to read informatted queries like this, and therefore it's hard to debug them.
    See the forum FAQ {message:id=9360002}
    select RentalAgreement.membershipcardid as "MemberID",
    customer.customerid,
    customer.cname,
    customer.address,
    membershipcard.customerid,
    RentalAgreement.DateAndTimeOfIssue,
    RentalAgreement.EScotterID,
    count(RentalAgreement.membershipcardid) as "NumberOfRent"
    from RentalAgreement,customer,membershipcard
    where rentalAgreement.membershipcardid=MembershipCard.MembershipCardID
    and customer.customerid = membershipcard.customerid
    and RentalAgreement.DateAndTimeOfIssue between '01-Nov-2012' and '31-Dec-2012'Once again, don't compare a DATE (such as RentalAgreement.DateAndTimeOfIssue) to a VARCHAR2 (such as '01-Nov-2012').  You're using TO_DATE correctly in your INSERT statements; use TO_DATE in the query, too.
    group by rentalAgreement.membershipcardid,
    MembershipCard.customerid,
    customer.cname,customer.address,
    RentalAgreement.EScotterID,
    customer.customerid,
    RentalAgreement.DateAndTimeOfIssue;"GROUP BY a, b, c, d" means that each row of output will represent a distinct combination of columns a, b, c and d, and aggregate functions will operate on the whole group.  In the query above, that means count(RentalAgreement.membershipcardid) will show the number of rows that had a value for membershipcardid for each combination of the 6 columns listed in the GROUP BY clause, including custiomerid and dateandtimeofissue.  That means that rentals for each customer *and date* will be counted separately.  Look at the output you're getting from query 2:Member CUSTOMER CUSTOMER DATEANDTIME ESCOTTER Number
    ID ID CNAME ADDRES ID OFISSUE ID OfRent
    102 23 BLuois N113AS 23 11-Nov-2012 1 1
    101 22 ALuois N193AS 22 21-Nov-2012 1 1
    101 22 ALuois N193AS 22 24-Nov-2012 5 1
    101 22 ALuois N193AS 22 20-Nov-2012 2 1
    101 22 ALuois N193AS 22 22-Nov-2012 4 1
    101 22 ALuois N193AS 22 19-Nov-2012 2 1
    The count is always 1.  That is, customer 22 did have 5 rentals, but only 1 rental per day.
    You haven't posted the results you want from the same data.  I'm guessing you want something like this:Member CUSTOMER DATEANDTIME ESCOTTER Number
    ID ID CNAME ADDRES OFISSUE ID OfRent
    101 22 ALuois N193AS 19-Nov-2012 2 5
    101 22 ALuois N193AS 20-Nov-2012 2 5
    101 22 ALuois N193AS 21-Nov-2012 1 5
    101 22 ALuois N193AS 22-Nov-2012 4 5
    101 22 ALuois N193AS 24-Nov-2012 5 5
    showing that that customer 22 had 5 rentals in the period of interest.  That is, you *do* want to combine all rows for a customer when COUNTing, but you *don't* want to combine the rows when displaying.  The aggregate GROUP BY combines the rows, so how can you still get the details (such as date and scooter ID) for each separate rental?  One way is to do a GROUP BY just to get the customerid and COUNT, and use that in an IN subquery (or maybe a join), where the main query does not use GROUP BY.
    If this is a school assignment, I don't want to ruin it for you, so I'll use an example with the scott.dept and emp tables.  Say we want to find which departments have mor than 1 CLERK working in them.  One way to do that is:SELECT     *
    FROM     scott.dept
    WHERE     deptno     IN (
              SELECT deptno
              FROM      scott.emp
              WHERE      job     = 'CLERK'
              GROUP BY     deptno
              HAVING     COUNT (*)     > 1
    Output:DEPTNO DNAME LOC
    20 RESEARCH DALLAS
    Another, com pletely different way would be to use the analytic COUNT function, not the aggregate function.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Isqlplus VS sqlplus

    After I issued an UPDATE statement in isqlplus, I issued a SELECT statement (also in isqlplus) to confirm the changes has been made.
    But when I try connect to sqlplus and issued the same SELECT statement, I noticed that the changes did not updated.
    Then I try issued another UPDATE and SELECT statement to update and confirm the changes, but this time in sqlplus. The changes updated.
    But when I try view the changes back in isqlplus, it never change. It seems like changes in isqlplus canot be read in sqlplus ? and vice versa ? Why is it so ?
    Thanks

    Most likely, you are not issuing a commit statement from either application. Until you explicitly commit, changes will not be visible to any other session and will not be permanently applied to the database.
    Justin
    Distributed Database Consulting, Inc.
    http://www.ddbcinc.com/askDDBC

  • How to create a database for sample code from Tutorial/Book?

    I want to try out the sample code from [http://shop.oreilly.com/product/0636920013471.do] for the book SQL Pocket Guide 3rd Ed.
    I have downloaded the oracle vm/appliance for oracle 11g2 and I have started sqlplus as sysdba.
    I'm feeling overwhelmed with these links describing how to create a database:
    [http://www.adp-gmbh.ch/ora/admin/creatingdbmanually.html]
    [http://tldp.org/HOWTO/Oracle-7-HOWTO-3.html]
    [http://www.adp-gmbh.ch/ora/admin/creatingdbmanually.html]
    (1) What is the command to list the existing databases?
    (2) What is the command to delete an existing database?
    (3) When creating a new database with the create database command, is it necessary to specify the logfile, character set, national character set, datafile, sysaux datafile, undo tablespace, temp table space? Do these have reasonable defaults? I'm not sure what proper directories are to specify for Linux and the examples are for windows.
    Can someone give me a simplified create database command to create a database called 3rdEdPocketGuide? Should I follow the example at [http://tldp.org/HOWTO/Oracle-7-HOWTO-3.html] and instead of orcl use 3rdEdPocketGuide?
    (4) What command do I use to execute the script that comes with the book SQL Pocket Guide 3rd Ed? This is the script that has all the drop table, create table and insert commands in it.
    (5) What command do I use in sqlplus to set the current default database prior to running this script? Perhaps this is the connect command? I don't want my script to create tables in the system database.
    (6) I tried the command "connect 3rdEdPocketGuide" and it prompted for a password! Yikes! What password? Do I need to specify a password when I create a database? I cannot tell if I have successfully created such a database or it is just prompting me for a password to thwart malicious users. Is it is possible to create databases which don't require a password or maybe a zero length password?
    Thanks
    Siegfried
    Edited by: user8816970 on Sep 26, 2012 12:01 PM
    Edited by: user8816970 on Sep 26, 2012 12:18 PM

    user8816970 wrote:
    Paul,
    Thanks! I tried changing my profile name to siegfried but I'm not seeing the change...
    Anyway, I'm trying your suggestion to use SQL Developer which was already installed in the virtual box appliance and I cannot figure out how to get a connection.
    When I use the defaults of sid=xe, port=1521, hostname=localhost and specify
    username=sysdba
    password=
    I get status: failure - test failed: listener refursed connection with the following error: ORA 12505, TNS: listener does not current know of sid given.
    So I try sid=orcl and that works better: status: failure - test failed: ORA-01017: invalid username/passowrd; login denied
    OK, sqlplus let me in with out a password, why does not this work?
    So I try checking the box for "OS Authentication" and I get the same error!
    Hoek: I tried searching the documentation and found "3 Exploring Oracle Database with SQL Developer" at http://docs.oracle.com/cd/E11882_01/appdev.112/e10766/toc.htm but following those directions did not help. Can you be more specific? The directions were for a tutorial and I need to know what the passwords are for the database set up with [http://www.oracle.com/technetwork/database/enterprise-edition/databaseappdev-vm-161299.html|http://www.oracle.com/technetwork/database/enterprise-edition/databaseappdev-vm-161299.html] . I also found [http://docs.oracle.com/cd/E11882_01/appdev.112/e10766/tdddg_connecting.htm#CEGHFHIG|http://docs.oracle.com/cd/E11882_01/appdev.112/e10766/tdddg_connecting.htm#CEGHFHIG] but that did not help either.
    Everyone:
    Do I need to create a user using SQL*Plus first so I can login with "Oracle SQL Developer" so I create my database called? What would be the "create user" command I would execute?
    OK, so I run sqlplus and issue these commands
    create user siegfried identified by abc ;
    grant connect to siegfried ;
    connect siegfried/abc;
    Now, how do I create a database? In Microsoft SQL Server one has to create a database first and if you just start creating tables without creating a database first, the tables will be created in the system database and this is usually undesirable.
    Sometimes a database is known in the java connection string as the catalog. Is there any such analog in oracle SQL plus?
    So now what do I do? I want to create a bunch of tables using my script I downloaded from 3rd Ed SQL Pocket Guide. Does my new user "siegfried" have the right to create tables? I guess I could try but I don't want to create tables in the system database.
    I noticed I can also use "Oracle SQL Developer" to connect with my new "siegfried" account. It seems that I should have been able to connect with sysdba... strange.
    So now I am connected in the "Oracle SQL Developer" and I see no list of databases.
    Thanks!
    Siegfried
    >Paul,
    Thanks! I tried changing my profile name to siegfried but I'm not seeing the change...
    Anyway, I'm trying your suggestion to use SQL Developer which was already installed in the virtual box appliance and I cannot figure out how to get a connection.
    When I use the defaults of sid=xe, port=1521, hostname=localhost and specify
    username=sysdba
    password=
    I get status: failure - test failed: listener refursed connection with the following error: ORA 12505, TNS: listener does not current know of sid given.
    So I try sid=orcl and that works better: status: failure - test failed: ORA-01017: invalid username/passowrd; login denied
    OK, sqlplus let me in with out a password, why does not this work?
    So I try checking the box for "OS Authentication" and I get the same error!
    Hoek: I tried searching the documentation and found "3 Exploring Oracle Database with SQL Developer" at http://docs.oracle.com/cd/E11882_01/appdev.112/e10766/toc.htm but following those directions did not help. Can you be more specific? The directions were for a tutorial and I need to know what the passwords are for the database set up with [http://www.oracle.com/technetwork/database/enterprise-edition/databaseappdev-vm-161299.html|http://www.oracle.com/technetwork/database/enterprise-edition/databaseappdev-vm-161299.html] . I also found [http://docs.oracle.com/cd/E11882_01/appdev.112/e10766/tdddg_connecting.htm#CEGHFHIG|http://docs.oracle.com/cd/E11882_01/appdev.112/e10766/tdddg_connecting.htm#CEGHFHIG] but that did not help either.
    Everyone:
    Do I need to create a user using SQL*Plus first so I can login with "Oracle SQL Developer" so I create my database called? What would be the "create user" command I would execute?
    OK, so I run sqlplus and issue these commands
    create user siegfried identified by abc ;
    grant connect to siegfried ;
    connect siegfried/abc;
    above does NOT use SQL*Net to connect to the instance
    >
    Now, how do I create a database? In Microsoft SQL Server one has to create a database first and if you just start creating tables without creating a database first, the tables will be created in the system database and this is usually undesirable.
    Sometimes a database is known in the java connection string as the catalog. Is there any such analog in oracle SQL plus?
    So now what do I do? I want to create a bunch of tables using my script I downloaded from 3rd Ed SQL Pocket Guide. Does my new user "siegfried" have the right to create tables? I guess I could try but I don't want to create tables in the system database.
    I noticed I can also use "Oracle SQL Developer" to connect with my new "siegfried" account. It seems that I should have been able to connect with sysdba... strange.
    So now I am connected in the "Oracle SQL Developer" and I see no list of databases.SQL Developer can only connect to the instance via SQL*Net
    >
    Thanks!
    Siegfrieda database in SQL Server is same as schema/user in Oracle

  • How does RAC determine which instance number to run on which node

    Good afternoon
    I am trying to script a process and I need to identify how RAC decides which node runs which instance. Is it the first one of the pair added to the cluster that runs node 1 or is there some other piece of information that I need to work this out
    This is on Redhat Linux with 10.2.0.3 for CRS, ASM and databases
    Cheers
    Peter

    Before "you" start an instance you set env variable ORACLE_SID. This identifies an instance. When you go into sqlplus and issue STARTUP, Oracle starts the instance named by the sid. Thus the instance running on the server is controlled by you. This changes as noted below.
    If you were using a non-Oracle tool to start instances, such as Veritas, then you would see it start the instance you coded into the tool. It would not randomly pick an instance. It looks in the Veritas config file and sees that you always want instance 1 on this node and instance 2 on that node.
    That said, you can make Oracle more random or "grid" like. 10g RAC done Oracle's way likes to bounce around between primary and secondary nodes. To see which instances are running on a node you can "ps -ef | grep pmon". Alternatively, use sqlplus to look in the database: view gv$instance gives you each instance name paired with the name of the host it is currently running on. There is one line of output per instance currently running.
    -Mark

  • SQL*Plus + rlwrap + Terminator = tolerable environment

    I have no doubt that those who are "full-time" users of sqlplus (that is a native Oracle's textmode client app to the database server), will agree that it provides a spartan and unimaginative command-line interface. Unlike most modern command-line utilities, such as `mysql' (in MySQL) or `psql' (in PostgreSQL), it lacks
    * auto-completion (TAB key), not to mention context-sensitive auto-completion (SELECT ... FROM <TAB>)
    * command history (UP/DOWN arrow keys)
    * incremental search on the history (CTRL-r)
    If you make any mistake typing a long statement, you have to re-enter it all over again. In addition, sqlplus also lacks
    * an internal call to system $PAGER for paging query output instead of wrapping the text, without having to spool the output to a file
    Since most unix/linux terminal emulators (xterm, rxvt, gnome terminal, kde konsole etc) don't support horizontal text scrolling, but wrap text upon the right margin, the use of sqlplus on unix/linux terminals is really horrific. By the way, it's a shame that a multi-billion company like Oracle, which reported nearly $18 billion total revenues ($4.3 billion net income) for this fiscal year, the company that charges $40,000 per CPU for its "World's Number One Database" with nearly 50% market share and considers Linux to be its supported platform for the future, doesn't take care of getting sqlplus finally doing right (mysql and postgresql are also multi-platform products). As Linux has very efficient gnu readline library and several well-known system pagers such as `more', `less', `most' etc, it's really shameful and ridiculous that we have to google for "workarounds". Fortunately, there are nice "workarounds" all over the internet thanks to opensource.
    I. Terminator
    Whoever is interested in running sqlplus to issue queries producing long-line text output in a virtual terminal wider than physical screen, and doesn't hesitate in-java-written applications, now can download and install a cross-platform GPL terminal emulator called Terminator with advanced features. Terminator provides horizontal and vertical scrollbars for horizontal and vertical scrolling. It's java application (internally calling bash shell) with Ruby startup script, so it requires Java 5 or later and Ruby 1.8 or later to be installed (Ruby is shipped as standard package with RHEL/OEL). Though written in java, Terminator has very good performance and very nice output. Prebuilt Terminator packages are available from software.jessies.org. Here are direct download links for
    32-bit RHEL/OEL
    http://software.jessies.org/downloads/redhat/org.jessies.terminator.i386.rpm
    64-bit RHEL/OEL
    http://software.jessies.org/downloads/redhat/org.jessies.terminator.x86_64.rpm
    Just install the package (rpm -ivh) and start terminal by typing `terminator'. By default, the terminal window appears in black background and white foreground. I recommend changing default settings to obtain better-looking screen fonts. Go to Edit/Preferences, select the "Anti-alias text", click on the "Colors" tab and change background to white and text foreground to black, or just click preset "Black on White". Click on the "Save" button to save the settings. Restart the terminal.
    II. rlwrap
    Linux users working with sqlplus have an additional opportunity to use a readline wrapper `rlwrap' inside Terminator (or any other terminal). Since sqlplus is not built against readline library, rlwrap is just doing the job. It can be downloaded as a source tar package from
    http://utopia.knoware.nl/~hlub/rlwrap/
    Much better option is to download the newest source rpm package from Fedora 7, eg:
    ftp://ftp-stud.hs-esslingen.de/pub/fedora/linux/releases/7/Everything/source/SRPMS/rlwrap-0.28-2.fc7.src.rpm
    and build the binary rpm package by
    # rpmbuild -bb rlwrap.specAfter installing the package, put the following line in /etc/bashrc (globally) or in ${HOME}/.bashrc (locally):
    alias sqlplus='/usr/bin/rlwrap -m ${ORACLE_HOME}/bin/sqlplus'or whatever your <path_to_sqlplus> is. Relogin or just source .bashrc to take the effect. Start `terminator' terminal and then start "new" sqlplus inside it. Don't forget to SET LINESIZE to a desired value (practically unlimited), or just put the line in the glogin.sql.
    Now you'll have an environment similar to that in windows (up/down arrows for command history, Ctrl-r for incremental search on the history, TAB key for auto-completion, all that in a terminal that doesn't wrap the output. It's a good practice to create your own `${HOME}/.sqlplus_completions' file (locally) or `/usr/share/rlwrap/sqlplus' file (globally) with all SQL reserved words (or whatever you want) as your auto-completion list (see rlwrap man page).
    Have a lot of fun.
    N.J.

    ... But honestly I wasn't facing to any problem with the older version.Neither I, but who knows... Here is a list of add-ons and bugs fixed since version 0.24. The list is extracted from rlwrap's "NEWS" file.
    0.28 rlwrap bug that caused termcap problems on Fedora Core 6
    fixed (thanks Tung Nguyen)
    0.27 when stdin is not a terminal, rlwrap will now exec() the
    specified command instead of complaining
    when stdout or stderr is not a terminal, rlwrap will re-open
    it to /dev/tty (the users terminal) after forking off the
    specified command (so "rlwrap cat > file" will work as a
    quick and dirty line editor)
    rlwrap now remembers inputs of length 1
    -D option to tell rlwrap how agressively it should weed out
    duplicate history entries
    -H option added (history format string)
    Added temporary fix for termcap weirdness on Fedora Core 6
    new -t option for a quick check of terminal capabilities
    (requires configuration with --enable-debug)
    rlwrap -s 0 <command> will now zap <commands> history
    fixed broken reporting of unrecognised options
    0.26 configure on FreeBSD 6.0 still didn't find libutil
    some files were unnecessarily kept open (thanks Stephan Springl)
    on each platform, rlwrap -h now accurately reflects whether
    rlwrap can use long options or optional arguments
    0.25 rlwrap would print input twice when in vi-mode
    rlwrap under FreeBSD 6.0 now uses openpty() from libutil (config
    script fixed)
    -P option added (one-shot rlwrap with pre-given prompt)
    Until now, whem the underlying command was killed by a signal,
    rlwrap would just exit with exit code 0. Now rlwrap will
    cleanup, reset its signal handlers and then send the same signal
    to itself - so that rlwraps parent (usually a shell) doesn't see
    the difference with an un-rlwrapped command
    Regards
    N.J.

  • Oracle ApEx bug?

    My environment:
    Windows 7 32 bit
    Oracle 11g XE R2
    GlassFish Server Open Source Edition 3.1.2.2 (build 5)
    ApEx Listener 2.0.0.354.17.05 (deployed as an application in the above web server)
    ApEx 4.2.1
    My Problem:
    1. Define a RESTful Resource Service Module in ApEx with the following attributes:
    URI template: test/
    Method: Get
    Source Type: Media Resource
    Requires Secure Access: No
    Pagination Size:
    Source:
    SELECT 'application/xml', XMLAGG(XMLELEMENT("EmpId", e.employee_id))
    FROM hr.employees e
    2. Click the "Test" button in the ApEx Resource Handler UI and witness the following error:
    500 - Internal Server Error
    resource.template.evaluationError during evaluation of resource template: GET geo/, SQL Error Code: 600, SQL Error Message: ORA-00600: internal error code, arguments: [kolrghte: hash table not exist], [], [], [], [], [], [], [], [], [], [], []
    3. Modify the "Source" attribute for the Media Resource as follows:
    SELECT 'application/xml', XMLELEMENT("EmpId", e.employee_id)
    FROM hr.employees e
    WHERE ROWNUM = 1
    4. Click the "Test" button in the ApEx Resource Handler UI and note that XML is returned as expected.
    Both of the above queries used to populate the "Source" attribute can be executed from SQLPlus without issue.
    I am not experiencing any issues with the other Resource Handler types.
    Any assistance would be much appreciated.
    JR.

    Does anyone have any ideas on this?

  • When creating a database (DBCA) or after.

    Greetings -
    When I create a database using 'dbca' I ordinarily just create a 'vanilla'
    database - no more then location of files and accepting the defaults.
    After creating the db I launch Enterprise Manager and then change any
    settings that I need to make or want to make.
    My question - is there any compeling reason to use 'dbca' instead of EM
    to make the changes to the database - one case is while it is being
    created and the other is after it has been created ?
    Any thoughts would be appreciated.
    Thanks in advance,
    Brian

    damorgan wrote:
    The one big advantage of using DBCA is that one of the end products is the build script.
    I am personally against making changes, of almost every type and description, using EM due to the lack of ability to reliably run in test and then repeat the exact same actions in prod.
    For creating "real" databases, not just dev and training, I would recommend using a script created with dbca and from that point on editing and modifying the script. GUIs that do not create repeatable scripts are great for monitoring but not for modifying.Daniel,
    I would put a finer point on that ... When using dbca to generate a script for creating a database, if one chooses one of the pre-configured templates (OLTP, Data Warehouse, etc) what you get in the end is a script that creates a database by restoring a pre-packaged backup. If you choose to create a "custom" database, what you get in the end is a script that launches sqlplus and issues a CREATE DATABASE command. One big difference I see is that with the latter approach, the database will naturally be created at the current patch level. It also should give the dba far more flexibility in what he can tweak in the scripts, though it's been so long since I've actually looked at one of the 'create by restore' scripts, I couldn't swear to it.
    In fact, I really can't remember the last time I used dbca to create any scripts for me, as I just keep re-using the same set. I even went so far as to go through a "master set" and replace any reference to the sid name with recognizable tags, then use sed to touch it up just before execuing.

  • Automatically Shutdown Database During VMware Server 'Shut Down Guest'

    I have 10g Enterprise Edition Release 10.2.0.4.0 running on Windows Server 2003 R2 under VMware Server version 2.0.0.
    I 'Power On' the VM and the OS/database start normally. I don't even open the guest OS console from VMware. I use TOAD and SQLPlus from the host machine to access my database.
    I'm trying to set up the database to do a clean shutdown when I use the VMware console to 'Shut Down Guest'.
    I've used the Group Policy Object Editor (gpedit.msc) to create a shutdown script under 'Local Computer Policy/Computer Configuration/Windows Settings/Scripts (Startup/Shutdown)/Shutdown'.
    The shutdown script is called Shutdown.bat and contains:
    rem adding the first two lines didn't affect anything, so I REMed them
    rem set ORACLE_SID=mysid
    rem set ORACLE_HOME=c:\oracle\product\10.2.0\db_1
    C:\oracle\product\10.2.0\db_1\bin\oradim -shutdown -sid mysid -shutmode immediate -log C:\oracle\product\10.2.0\db_1\database\oradim.log
    exit
    I get this in the oradim.log:
    Wed Apr 15 13:16:50 2009
    C:\oracle\product\10.2.0\db_1\bin\oradim -shutdown -sid mysid -shutmode immediate -log C:\oracle\product\10.2.0\db_1\database\oradim.log
    Wed Apr 15 13:16:51 2009
    ORA-12560: TNS:protocol adapter error
    I get this in sqlnet.log:
    Fatal NI connect error 12560, connecting to:
    (DESCRIPTION=(ADDRESS=(PROTOCOL=BEQ)(PROGRAM=oracle)(ARGV0=oraclemysid)(ARGS='(DESCRIPTION=(LOCAL=YES)(ADDRESS=(PROTOCOL=beq)))'))(CONNECT_DATA=(SID=mysid)(CID=(PROGRAM=C:\oracle\product\10.2.0\db_1\bin\oradim.exe)(HOST=myserver)(USER=OraUser))))
    VERSION INFORMATION:
         TNS for 32-bit Windows: Version 10.2.0.4.0 - Production
         Oracle Bequeath NT Protocol Adapter for 32-bit Windows: Version 10.2.0.4.0 - Production
    Time: 15-APR-2009 13:16:51
    Tracing not turned on.
    Tns error struct:
    ns main err code: 12560
    TNS-12560: TNS:protocol adapter error
    ns secondary err code: 0
    nt main err code: 530
    TNS-00530: Protocol adapter error
    nt secondary err code: 2
    nt OS err code: 0
    Note: If I open the guest OS console and execute the Shutdown.bat file as myself (I'm in the administrator and ora_dba groups), it works perfectly ... as does opening SQLPlus and issuing 'shutdown immediate'.
    I'm stuck. Any ideas?
    Thanks.

    We are also having the same issue. We create a shutdown script via the Group Policy editor which works fine if we do a manual shutdown, but if we do a remote shutdown ex: "shutdown /r /f /m <servername /t 120", it does not work, the Database crash.
    As mentionned the script works when we do a manual shutdown but does not work for a remote shutdown. The group policy script contains the following:
    echo Rebooting server START at %DATE% %TIME% >> E:\oracle\product\admin\test\Reboot.log
    net stop <Oracle servicename>
    echo Rebooting server MIDDLE at %DATE% %TIME% >> E:\oracle\product\admin\test\Reboot.log
    net stop <Oracle servicename>
    echo Rebooting server END at %DATE% %TIME% >> E:\oracle\product\admin\test\Reboot.log
    After the reboot we see all the echoed line in the "reboot.log" file but the "net stop" doesn't get executed or failed since the database crash and recovers
    Any ideas/feedback ?
    Thanks

  • Can I run a Unix shell when insert some record on a specific table?

    Can I run a Unix shell when insert some record on a specific table?
    I need to run a Unix shell when a record be insert on a table. Is there a way in order to do that?
    THanks,
    Carlos.

    1. Make a backup of the extproc.c file in the c:\orant\rdbms80\extproc
    directory.
    2. Create a file called extern.c in the c:\orant\rdbms80\extproc directory.
    The "extern.c" file :
    #include <oci.h>
    #define NullValue -1
    #include<stdio.h>
    #include<string.h>
    long __declspec(dllexport) OutputString(context ,
                             path , path_ind ,
                             message , message_ind,
                             filemode , filemode_ind ,
                             len , len_ind )
    char *path;
    char *message; 
    char *filemode;
    int len;
    OCIExtProcContext *context;
    short path_ind;
    short message_ind;
    short filemode_ind;
    short len_ind;
    FILE *file_handle;
    int i ;
    char str[3];
    int value;
    /* Check whether any parameter passing is null */
    if (path_ind == OCI_IND_NULL || message_ind == OCI_IND_NULL ||
    filemode_ind == OCI_IND_NULL || len_ind == OCI_IND_NULL ) {
    text initial_msg = (text )"One of the Parameters Has a Null Value!!! ";
    text *error_msg;
    /* Allocate space for the error message text, and set it up.
    We do not have to free this memory - PL/SQL will do that automatically. */
    error_msg = OCIExtProcAllocCallMemory(context,
    strlen(path) + strlen(initial_msg) + 1);
    strcpy((char *)error_msg, (char *)initial_msg);
    /*strcat((char *)error_msg, path); */
    OCIExtProcRaiseExcpWithMsg(context, 20001, error_msg, 0);
    /* OCIExtProcRaiseExcp(context, 6502); */
    return 0;
    /* Open the file for writing. */
    file_handle = fopen(path, filemode);
    /* Check for success. If not, raise an error. */
    if (!file_handle) {
    text initial_msg = (text )"Cannot Create file ";
    text *error_msg ;
    /* Allocate space for the error message text, and set it up.
    We do not have to free this memory - PL/SQL will do that automatically. */
    error_msg = OCIExtProcAllocCallMemory(context,
    strlen(path) + strlen(initial_msg) + 1);
    strcpy((char *)error_msg, (char *)initial_msg);
    strcat((char *)error_msg, path);
    OCIExtProcRaiseExcpWithMsg(context, 20001, error_msg, 0);
    return 0;
    i = 0;
    while (i < len)
    /* Read the hexadecimal value(1). */
    str[0] = message;
         i++;
    /* Read the hexadecimal value(2). */
    str[1] = message[i];
    /* Convert the first byte to the binary value. */
    if (str[0] > 64 && str[0] < 71)
    str[0] = str[0] - 55;
    else
    str[0] = str[0] - 48;
    /* Convert the second byte to the binary value. */
    if (str[1] > 64 && str[1] < 71)
    str[1] = str[1] - 55;
    else
    str[1] = str[1] - 48;
    /* Convert the hex value to binary (first & second byte). */
    value = str[0] * 16 + str[1];
    /* Write the binary data to the binary file. */
    fprintf(file_handle,"%c",value);
              i++;
    /* Output the string followed by a newline. */
    /* fwrite(message,len,1,file_handle); */
    /* Close the file. */
    fclose(file_handle);
    3. Use the make.bat available in the c:\orant\rdbms80\extproc directory. You
    need to run vcvars32.bat file before running this batch file. This will
    create a dll file.
    4. Configure the tnsnames.ora and the listener.ora files.
    The tnsnames.ora should contain the following entries.
    extproc_connection_data.world =
    (DESCRIPTION =
    (ADDRESS =
    (PROTOCOL = IPC)
    (KEY = ORCL)
    (CONNECT_DATA = (SID = extproc)
    The listener.ora should contain the following entries.
    # P:\ORANT\NET80\ADMIN\LISTENER.ORA Configuration File:p:\orant\net80\admin\listener.ora
    # Generated by Oracle Net8 Assistant
    LISTENER8 =
    (ADDRESS = (PROTOCOL = TCP)(HOST = winnt_nsc)(PORT = 1521))
    SID_LIST_LISTENER8=
    (SID_LIST =
    (SID_DESC =
    (GLOBAL_DBNAME = winnt_nsc)
    (SID_NAME = ORCL)
    (SID_DESC =
    (SID_NAME = extproc)
    (PROGRAM = extproc)
    5. Login from sqlplus and issue the following statements.
    create library externProcedures as 'C:\orant\RDBMS80\EXTPROC\extern.dll';
    Create or replace PROCEDURE OutputString(
    p_Path IN VARCHAR2,
    p_Message IN VARCHAR2,
    p_mode in VARCHAR2,
    p_NumLines IN BINARY_INTEGER) AS EXTERNAL
    LIBRARY externProcedures
    NAME "OutputString"
    With context
    PARAMETERS (CONTEXT,
    p_Path STRING,
    p_path INDICATOR,
    p_Message STRING,
    p_message INDICATOR,
    p_mode STRING,
    p_mode INDICATOR,
    p_NumLines INT,
    p_numlines INDICATOR);
    This is the pl/sql block used to write the contents of the BLOB into a file.
    Set serveroutput on before running it.
    SQL> desc lob_tab;
    Name Null? Type
    C1 NUMBER
    C2 BLOB
    lob_tab is the table which contains the blob data.
    declare
    i1 blob;
    len number;
    my_vr raw(10000);
    i2 number;
    i3 number := 10000;
    begin
    -- get the blob locator
    SELECT c2 INTO i1 FROM lob_tab WHERE c1 = 2;
    -- find the length of the blob column
    len := DBMS_LOB.GETLENGTH(i1);
    dbms_output.put_line('Length of the Column : ' || to_char(len));
    -- Read 10000 bytes at a time
    i2 := 1;
    if len < 10000 then
    -- If the col length is < 10000
    DBMS_LOB.READ(i1,len,i2,my_vr);
    outputstring('p:\bfiles\ravi.bmp',rawtohex(my_vr),'wb',2*len);
    -- You have to convert the data to rawtohex format. Directly sending the buffer
    -- data will not work
    -- That is the reason why we are sending the length as the double the size of the data read
    dbms_output.put_line('Read ' || to_char(len) || 'Bytes');
    else
    -- If the col length is > 10000
    DBMS_LOB.READ(i1,i3,i2,my_vr);
    outputstring('p:\bfiles\ravi.bmp',rawtohex(my_vr),'wb',2*i3);
    dbms_output.put_line('Read ' || to_char(i3) || ' Bytes ');
    end if;
    i2 := i2 + 10000;
    while (i2 < len ) loop
    -- loop till entire data is fetched
    DBMS_LOB.READ(i1,i3,i2,my_vr);
    dbms_output.put_line('Read ' || to_char(i3+i2-1) || ' Bytes ');
    outputstring('p:\bfiles\ravi.bmp',rawtohex(my_vr),'ab',2*i3);
    i2 := i2 + 10000 ;
    end loop;
    end;

  • Cannot Create OWB Repository Owner

    Hello All,
    On windows XP pro, 32 bit, the following tasks were completed (clean system, 1.5 gig ram and dual core)
    - Installed 9.2.0.1 Server
    - Installed 9.2.0.6 Patch
    - Installed Oracle Worflow + and created workflow user
    - Installed OWB_10.2.0.1.win.zip
    All seemed to be fine until attempting to create the OWB repository owner using the Repository Assistant
    Problem 1)
    The Repository Assistant froze after being given the user details for the repository owner.
    I found a fix (read Hack) for this that I am including FYI. The issue relates to the view dba_kgllock which was force created against objects that do not exist. To solve this I used TOAD to find the script used to create the view, deleted the view and created an empty table with the same columns.
    This is a complete hackbut allowed OWB Repository Assistant. All then continued and was looking good until about 60% complete.
    Problem 2)
    At approx 60% installation fails with a socket read fail within java.
    Thats it, I've stopped dead now, going to continue installation attempts in the morning. If anybody out there can help I would be very greatful.

    This appears to be a locking issue and looking at our Support database it is resolved in 10gR1 and 10gR2 versions of the database but remains on 9i although a warning dialog should be shown. Even so the installation should continue and should be successful.
    Do you have AQ running? This sometimes causes this error to occur. I think in the 10gR1 documentation this locking issue was documented and it was supposed to be added to the 10gR2 doc (I need to check to this).
    To figure the lock from Repo Asst code, use the following:
    select distinct
    s.sid,
    s.serial#,
    s.username,
    x.kglnaobj as objectname
    from
    dba_kgllock l,
    v$session s,
    x$kgllk x
    where
    l.kgllktype = 'Pin' and
    s.saddr = l.kgllkuse and
    s.saddr = x.kgllkuse and
    x.kglnaobj like '%DBMS_LOCK%';
    If this returns rows, display the warning with a suggestion to connect to SQLPlus and issue the following statement (where SID, Serial are what came back from the query)
    ALTER SYSTEM KILL SESSION 'SID, Serial';
    e.g.
    ALTER SYSTEM KILL SESSION '13, 8'
    That might solve the problem.
    Hope this helps.
    Keith Laker
    Data Warehouse Solution Architect
    Oracle EMEA Consulting
    BI Blog: http://oraclebi.blogspot.com/
    DM Blog: http://oracledmt.blogspot.com/
    BI on Oracle: http://www.oracle.com/bi/
    BI on OTN: http://www.oracle.com/technology/products/bi/
    BI Beans http://www.oracle.com/technology/products/bib/index.html
    Discoverer: http://www.oracle.com/technology/products/discoverer/
    BI Samples: http://www.oracle.com/technology/products/bi/samples/

  • URGENT HELP: ASM instance not able to start....

    ASM version: 11.1.0.6
    RAC: 2 node cluster.
    Scenario:
    CRS comes up fine with no issues but it does NOT start ASM auto. So thats fine.
    So I go to ASM sqlplus and issue:
    SQL> startup mount;
    ORA-29702: error occurred in Cluster Group Service operation
    SQL>
    ASM LOG file says:
    5:20:17 2011
    MMAN started with pid=11, OS id=11019
    Fri Jul 15 15:20:17 2011
    DBW0 started with pid=12, OS id=11021
    Fri Jul 15 15:20:17 2011
    LGWR started with pid=13, OS id=11023
    Fri Jul 15 15:20:17 2011
    CKPT started with pid=14, OS id=11030
    Fri Jul 15 15:20:17 2011
    SMON started with pid=15, OS id=11032
    Fri Jul 15 15:20:17 2011
    RBAL started with pid=16, OS id=11034
    Fri Jul 15 15:20:17 2011
    GMON started with pid=17, OS id=11036
    Fri Jul 15 15:30:17 2011
    USER (ospid: 10956): terminating the instance due to error 29702
    Instance terminated by USER, pid = 10956
    CRS log files do not indicate much:
    0.254: [  CRSRES][1509878080][ALERT] Remote start for `ora.sister-ora-pro-2.ORAPRO_SISTER-ORA-PRO-2.lsnr` failed on member `sister-ora-pro-2`
    2011-07-15 14:32:20.308: [  CRSRES][1507776832] startRunnable: setting CLI values
    2011-07-15 14:32:20.308: [  CRSRES][1094175040] startRunnable: setting CLI values
    2011-07-15 14:32:20.369: [  CRSRES][1507776832] Attempting to start `ora.sister-ora-pro-1.gsd` on member `sister-ora-pro-1`
    2011-07-15 14:32:20.369: [  CRSRES][1094175040] Attempting to start `ora.sister-ora-pro-1.ons` on member `sister-ora-pro-1`
    2011-07-15 14:32:21.662: [  CRSRES][1507776832] Start of `ora.sister-ora-pro-1.gsd` on member `sister-ora-pro-1` succeeded.
    2011-07-15 14:32:22.920: [  CRSRES][1094175040] Start of `ora.sister-ora-pro-1.ons` on member `sister-ora-pro-1` succeeded.
    This is the content of the ASM init file:
    # Pools
    large_pool_size=12M
    asm_diskgroups='DAT1','DAT2','DAT3','DAT4','IDX1','IDX2','IDX3','IDX4','SYS1','SYS2','SYS3','SYS4','FLSH'
    +ASM2.instance_number=2
    +ASM1.instance_number=1
    any suggestions ?

    some snippets from LMON trace file:
    *** 2011-07-15 17:07:51.656
    Name Service frozen
    kjxgmcs: Setting state to 0 1.
    kjxgmmeminfo: can not get mem(1)'s info - (8)
    kjxgmjoin: potential nested reconfig
    *** 2011-07-15 17:07:51.656
    kjxgmrcfg: Reconfiguration started, type 1
    kjxgmcs: Setting state to 0 0.
    *** 2011-07-15 17:07:51.656
    Name Service frozen
    kjxgmcs: Setting state to 0 1.
    kjxgmmeminfo: can not get mem(1)'s info - (8)
    kjxgmjoin: potential nested reconfig
    *** 2011-07-15 17:07:51.656
    kjxgmrcfg: Reconfiguration started, type 1
    kjxgmcs: Setting state to 0 0.
    *** 2011-07-15 17:07:51.657
    Name Service frozen
    kjxgmcs: Setting state to 0 1.
    kjxgmmeminfo: can not get mem(1)'s info - (8)
    kjxgmjoin: potential nested reconfig
    *** 2011-07-15 17:07:51.657
    kjxgmrcfg: Reconfiguration started, type 1
    kjxgmcs: Setting state to 0 0.
    *** 2011-07-15 17:07:51.657
    Name Service frozen
    kjxgmcs: Setting state to 0 1.
    kjxgmmeminfo: can not get mem(1)'s info - (8)
    kjxgmjoin: potential nested reconfig
    *** 2011-07-15 17:07:51.657
    kjxgmrcfg: Reconfiguration started, type 1
    kjxgmcs: Setting state to 0 0.
    *** 2011-07-15 17:07:51.657
    Name Service frozen
    kjxgmcs: Setting state to 0 1.
    kjxgmmeminfo: can not get mem(1)'s info - (8)
    kjxgmjoin: potential nested reconfig
    *** 2011-07-15 17:07:51.657
    kjxgmrcfg: Reconfiguration started, type 1
    kjxgmcs: Setting state to 0 0.
    *** 2011-07-15 17:07:51.657
    Name Service frozen
    kjxgmcs: Setting state to 0 1.
    kjxgmmeminfo: can not get mem(1)'s info - (8)
    kjxgmjoin: potential nested reconfig
    *** 2011-07-15 17:07:51.657
    kjxgmrcfg: Reconfiguration started, type 1
    kjxgmcs: Setting state to 0 0.
    *** 2011-07-15 17:07:51.657
    Name Service frozen
    kjxgmcs: Setting state to 0 1.
    kjxgmmeminfo: can not get mem(1)'s info - (8)
    kjxgmjoin: potential nested reconfig
    *** 2011-07-15 17:07:51.657
    kjxgmrcfg: Reconfiguration started, type 1
    kjxgmcs: Setting state to 0 0.
    *** 2011-07-15 17:07:51.657
    Name Service frozen
    kjxgmcs: Setting state to 0 1.
    kjxgmmeminfo: can not get mem(1)'s info - (8)
    kjxgmjoin: potential nested reconfig
    *** 2011-07-15 17:07:51.658
    kjxgmrcfg: Reconfiguration started, type 1
    kjxgmcs: Setting state to 0 0.
    *** 2011-07-15 17:07:51.658
    Name Service frozen
    kjxgmcs: Setting state to 0 1.
    kjxgmmeminfo: can not get mem(1)'s info - (8)
    kjxgmjoin: potential nested reconfig
    *** 2011-07-15 17:07:51.658
    kjxgmrcfg: Reconfiguration started, type 1
    kjxgmcs: Setting state to 0 0.
    *** 2011-07-15 17:07:51.658
    Name Service frozen
    kjxgmcs: Setting state to 0 1.
    kjxgmmeminfo: can not get mem(1)'s info - (8)
    kjxgmjoin: potential nested reconfig
    *** 2011-07-15 17:07:51.658
    kjxgmrcfg: Reconfiguration started, type 1
    kjxgmcs: Setting state to 0 0.
    *** 2011-07-15 17:07:51.658
    Name Service frozen
    kjxgmcs: Setting state to 0 1.
    kjxgmmeminfo: can not get mem(1)'s info - (8)
    kjxgmjoin: potential nested reconfig
    *** 2011-07-15 17:07:51.658
    kjxgmrcfg: Reconfiguration started, type 1
    kjxgmcs: Setting state to 0 0.
    *** 2011-07-15 17:07:51.658
    Name Service frozen
    kjxgmcs: Setting state to 0 1.
    kjxgmmeminfo: can not get mem(1)'s info - (8)
    kjxgmjoin: potential nested reconfig
    *** 2011-07-15 17:07:51.658
    kjxgmrcfg: Reconfiguration started, type 1
    kjxgmcs: Setting state to 0 0.
    *** 2011-07-15 17:07:51.658
    Name Service frozen
    kjxgmcs: Setting state to 0 1.
    kjxgmmeminfo: can not get mem(1)'s info - (8)
    kjxgmjoin: potential nested reconfig
    *** 2011-07-15 17:07:51.659
    kjxgmrcfg: Reconfiguration started, type 1
    kjxgmcs: Setting state to 0 0.
    *** 2011-07-15 17:07:51.659
    Name Service frozen
    kjxgmcs: Setting state to 0 1.
    kjxgmmeminfo: can not get mem(1)'s info - (8)
    kjxgmjoin: potential nested reconfig
    *** 2011-07-15 17:07:51.659
    kjxgmrcfg: Reconfiguration started, type 1
    kjxgmcs: Setting state to 0 0.
    *** 2011-07-15 17:07:51.659
    Name Service frozen
    kjxgmcs: Setting state to 0 1.
    kjxgmmeminfo: can not get mem(1)'s info - (8)
    kjxgmjoin: potential nested reconfig
    *** 2011-07-15 17:07:51.659
    kjxgmrcfg: Reconfiguration started, type 1
    kjxgmcs: Setting state to 0 0.
    *** 2011-07-15 17:07:51.659
    Name Service frozen
    kjxgmcs: Setting state to 0 1.
    kjxgmmeminfo: can not get mem(1)'s info - (8)
    kjxgmjoin: potential nested reconfig
    *** 2011-07-15 17:07:51.659
    kjxgmrcfg: Reconfiguration started, type 1
    kjxgmcs: Setting state to 0 0.
    *** 2011-07-15 17:07:51.659
    Name Service frozen
    kjxgmcs: Setting state to 0 1.
    kjxgmmeminfo: can not get mem(1)'s info - (8)
    kjxgmjoin: potential nested reconfig
    *** 2011-07-15 17:07:51.659
    kjxgmrcfg: Reconfiguration started, type 1
    kjxgmcs: Setting state to 0 0.
    *** 2011-07-15 17:07:51.659
    Name Service frozen
    kjxgmcs: Setting state to 0 1.
    kjxgmmeminfo: can not get mem(1)'s info - (8)
    kjxgmjoin: potential nested reconfig
    *** 2011-07-15 17:07:51.659
    kjxgmrcfg: Reconfiguration started, type 1
    kjxgmcs: Setting state to 0 0.
    *** 2011-07-15 17:07:51.659
    Name Service frozen
    kjxgmcs: Setting state to 0 1.
    kjxgmmeminfo: can not get mem(1)'s info - (8)
    kjxgmjoin: potential nested reconfig
    *** 2011-07-15 17:07:51.660
    kjxgmrcfg: Reconfiguration started, type 1
    kjxgmcs: Setting state to 0 0.
    *** 2011-07-15 17:07:51.660
    Name Service frozen
    kjxgmcs: Setting state to 0 1.
    kjxgmmeminfo: can not get mem(1)'s info - (8)
    kjxgmjoin: potential nested reconfig
    *** 2011-07-15 17:07:51.660
    kjxgmrcfg: Reconfiguration started, type 1
    kjxgmcs: Setting state to 0 0.
    *** 2011-07-15 17:07:51.660
    Name Service frozen
    kjxgmcs: Setting state to 0 1.
    kjxgmmeminfo: can not get mem(1)'s info - (8)
    kjxgmjoin: potential nested reconfig
    *** 2011-07-15 17:07:51.660
    kjxgmrcfg: Reconfiguration started, type 1
    kjxgmcs: Setting state to 0 0.
    *** 2011-07-15 17:07:51.660
    Name Service frozen
    kjxgmcs: Setting state to 0 1.
    kjxgmmeminfo: can not get mem(1)'s info - (8)
    kjxgmjoin: potential nested reconfig
    *** 2011-07-15 17:07:51.660
    kjxgmrcfg: Reconfiguration started, type 1
    kjxgmcs: Setting state to 0 0.
    *** 2011-07-15 17:07:51.660
    Name Service frozen
    kjxgmcs: Setting

  • Segmentation Fault when connecting to SQL*Plus from Applications tier

    Hi Everyone -
    I am currently in the process of upgrading a client from 11.5.10.2 to 12.1.1 (eventually 12.1.3) on a OEL x86-64 server. I have laid down the software stack and followed all of the requirements as per the Installation manuals and 761566.1. I also have an open SR right now on this issue - but I wanted to see if any of you have ever run into the issue that I am encountering.
    When I try to run adadmin/adpatch - I get to the prompt of providing the system user password and the utility simply exits. No errors in adpatch.log or adadmin.log (both are 0 bytes in size).
    When I try to connect using SQL*Plus from the applications tier using either:
    sqlplus apps/****@SID
    sqlplus system/****@SID
    I get a Segmentation Fault error. There are also no errors in my alert log file on the database tier. I found this error while attempting to apply the upgrade merge patch.
    Has anyone ever seen s Segmentation Fault error? I have search MOS, found a couple of potential solutions - but nothing has solved the issue so far.
    Thanks in advance...
    Brenna

    >
    Are you on 11.1.0.5.0? Is this the database version?
    No, my database tier is 11.2.0.3 (the database version displayed above was the client version running on the Application Tier.
    Who is the owner of the application tier files? If it is applmgr user, please make sure you login as that user and source the application env file before running sqlplus -- Please issue "echo $ORACLE_HOME" and "which sqlplus" and post the output here.
    My owner of the application tier is oracle. I have sourced the environment using $APPL_TOP/APPSR12Dev1_******.env
    [oracle@****** log]$ echo $ORACLE_HOME
    /u01/app/oracle/R12Dev1/apps/tech_st/10.1.2
    [oracle@****** log]$ which sqlplus
    /u01/app/oracle/R12Dev1/apps/tech_st/10.1.2/bin/sqlplus
    >
    Please relink sqlplus by issuing "$ORACLE_HOME/bin/relink all > relink.txt 2>&1" and check the relink.txt file for any error
    A number of errors occur during the relink, here are some of them:
    /u01/app/oracle/R12Dev1/apps/tech_st/10.1.2/bin/genclntsh
    /usr/bin/ld: warning: i386:x86-64 architecture of input file `/u01/app/oracle/R12Dev1/apps/tech_st/10.1.2/lib/libn10.a(nnfgt.o)' is incompatible with i386 output
    /usr/bin/ld: warning: i386:x86-64 architecture of input file `/u01/app/oracle/R12Dev1/apps/tech_st/10.1.2/lib/libn10.a(ntcontab.o)' is incompatible with i386 output
    /u01/app/oracle/R12Dev1/apps/tech_st/10.1.2/bin/genagtsh /u01/app/oracle/R12Dev1/apps/tech_st/10.1.2/lib/libagtsh.so 1.0
    /usr/bin/ld: warning: i386:x86-64 architecture of input file `/u01/app/oracle/R12Dev1/apps/tech_st/10.1.2/lib/libn10.a(nnfgt.o)' is incompatible with i386 output
    /usr/bin/ld: warning: i386:x86-64 architecture of input file `/u01/app/oracle/R12Dev1/apps/tech_st/10.1.2/lib/libn10.a(ntcontab.o)' is incompatible with i386 output
    /u01/app/oracle/R12Dev1/apps/tech_st/10.1.2/lib/libn10.a(nnfgt.o):(.rodata+0xc8): undefined reference to `nnflboot'
    /u01/app/oracle/R12Dev1/apps/tech_st/10.1.2/lib/libn10.a(ntcontab.o):(.data+0x8): undefined reference to `nttini'
    /u01/app/oracle/R12Dev1/apps/tech_st/10.1.2/lib/libn10.a(ntcontab.o):(.data+0x28): undefined reference to `ntzini'
    /u01/app/oracle/R12Dev1/apps/tech_st/10.1.2/lib/libn10.a(ntcontab.o):(.data+0x68): undefined reference to `ntpini'
    /u01/app/oracle/R12Dev1/apps/tech_st/10.1.2/lib/libn10.a(ntcontab.o):(.data+0x88): undefined reference to `ntusini'
    collect2: ld returned 1 exit status
    Thanks again...

Maybe you are looking for

  • Applying Java's internationalization facilities to a web application

    Hello, I am a member of a software developing team (using Java-based technologies). Our web application consists of a: 1. static part (HTML-based pages), and 2. a dynamic part (using JSPs and servlets, mainly) The static part of our web site is curre

  • Keep previous values for Select-Options

    I am using macros to populate my selections with the previously entered values.  Everything works fine until I want to delete the previous selections for so_snp via the Trash Can button.  The selections come back.  The issue seems to be that the sele

  • How many pages can Pages actually hold?

    I'm starting to feel a bit nervous about this. Does anybody know?

  • BO Opendocument Url not giving pdf report when invoked through Java.

    Hi All, I'm trying to get pdf report by invoking the BO XI R3 server using the below url. <br> <br> <br> http://corpbo101d:41040/OpenDocument/opendoc/openDocument.jsp?sType=rpt&sDocName=BankAsAgentNA_1_au&sOutputFormat=P&lsS@model_code=BANKAGENT&lsS@

  • Patch 9.0.4.1

    From the readme document, the order of what to upgrade first is important. "The order of application of the software update to your middle tier or infrastructure installation does not matter. However, you must apply the software update to each of you