Sqlplus to database taking ages

Windows 2003 SP2 R2
Oracle DB 11.1.0.7
Oracle iAS 10.2.0.1
Two node RAC system servers(vtrt1-ora10, vtrt1-ora11), database-vttest(vttest1,vttest2)
All Ip addresses and hostnames are correct (as it does eventually connect)
Problem:*
I have a two node RAC system.
If I tnsping vttest and then ping vttest1 (my instance name), the result in both cases shows a steady 10 to 30ms, however, in the case of vttest (db name), there is a really long pause.
tnsping vttest - 30ms - however, it actually took 12 seconds to return
tnsping vttest1 - 30 ms - returned in less than a second
Now, when I log into sqlplus system/xxx@vtest, it can take around 12 seconds, whereas sqlplus system/xxx@vttest1 is around a second.
This is the same when I go into sqlplus:
sqlplus system/xxx@vttest - 12 seconds
sqlplus system/xxx@vttest1 - less than a second
In both cases, it goes through the same sqlnet.ora and tnsnames.ora, but I cannont prove the problem. In the case of tnsping, it must obviously take the 10 seconds before it tries the ping, so the 10 seconds are not accounted for.
Evidence:
PING:*
D:\>ping vtrt1-ora10
Pinging vtrt1-ora10 [10.210.140.108] with 32 bytes of data:
Reply from 10.210.140.108: bytes=32 time<1ms TTL=128
Reply from 10.210.140.108: bytes=32 time<1ms TTL=128
Reply from 10.210.140.108: bytes=32 time<1ms TTL=128
Reply from 10.210.140.108: bytes=32 time<1ms TTL=128
Ping statistics for 10.210.140.108:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 0ms, Average = 0ms
D:\>ping vtrt1-ora10-priv
Pinging vtrt1-ora10-priv [10.0.0.3] with 32 bytes of data:
Reply from 10.0.0.3: bytes=32 time<1ms TTL=128
Reply from 10.0.0.3: bytes=32 time<1ms TTL=128
Reply from 10.0.0.3: bytes=32 time<1ms TTL=128
Reply from 10.0.0.3: bytes=32 time<1ms TTL=128
Ping statistics for 10.0.0.3:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 0ms, Average = 0ms
D:\>ping vtrt1-ora10-vip
Pinging vtrt1-ora10-vip [10.210.140.214] with 32 bytes of data:
Reply from 10.210.140.214: bytes=32 time<1ms TTL=128
Reply from 10.210.140.214: bytes=32 time<1ms TTL=128
Reply from 10.210.140.214: bytes=32 time<1ms TTL=128
Reply from 10.210.140.214: bytes=32 time<1ms TTL=128
Ping statistics for 10.210.140.214:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 0ms, Average = 0ms
TNSPING:*
D:\>tnsping vttest
TNS Ping Utility for 32-bit Windows: Version 10.1.0.4.2 - Production on 25-JUN-2010 12:19:19
Copyright (c) 1997, 2003, Oracle. All rights reserved.
Used parameter files:
D:\oracle\product\10.1\FRHome_1\network\admin\sqlnet.ora
Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = vtrt1-ora10-vip)(PORT = 1521)) (ADDRESS = (PROTO
COL = TCP)(HOST = vtrt1-ora11-vip)(PORT = 1521)) (LOAD_BALANCE = yes) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME
= VTTEST)))
OK (30 msec)
(+NOTE: This actually took 12 seconds to complete+)
D:\>tnsping vttest1
TNS Ping Utility for 32-bit Windows: Version 10.1.0.4.2 - Production on 25-JUN-2010 12:19:47
Copyright (c) 1997, 2003, Oracle. All rights reserved.
Used parameter files:
D:\oracle\product\10.1\FRHome_1\network\admin\sqlnet.ora
Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = vtrt1-ora10-vip)(PORT = 1521)) (CONNECT_DATA = (
SERVER = DEDICATED) (SERVICE_NAME = VTTEST) (INSTANCE_NAME = VTTEST1)))
OK (10 msec)
(+NOTE: Actually took less than a second+)
SQLNET.ORA:_
SQLNET.AUTHENTICATION_SERVICES= (NTS)
NAMES.DIRECTORY_PATH= (TNSNAMES, EZCONNECT, ONAMES, HOSTNAME)
LISTENER.ORA:_
LISTENER_VTRT1-ORA10 =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = vtrt1-ora10-vip)(PORT = 1521)(IP = FIRST))
(ADDRESS = (PROTOCOL = TCP)(HOST = 10.210.140.108)(PORT = 1521)(IP = FIRST))
TNSNAMES.ORA:_
# tnsnames.ora Network Configuration File: D:\oracle\product\10.1\FRHome_1\network\admin\tnsnames.ora
# Generated by Oracle configuration tools.
REP_VTRT1-ORA10_FRHOME1. =
(ADDRESS = (PROTOCOL = tcp)(HOST = vtrt1-ora10)(PORT = 1950))
EXTPROC_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = vtrt1-ora10)(PORT = 1521))
(CONNECT_DATA =
(SERVICE_NAME = PLSExtProc)
# tnsnames.ora Network Configuration File: D:\oracle\product\11.1.0\db_1\network\admin\tnsnames.ora
# Generated by Oracle configuration tools.
LISTENERS_VTTEST =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = vtrt1-ora10-vip)(PORT = 1521))
(ADDRESS = (PROTOCOL = TCP)(HOST = vtrt1-ora11-vip)(PORT = 1521))
VTTEST1 =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = vtrt1-ora10-vip)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = VTTEST)
(INSTANCE_NAME = VTTEST1)
VTTEST2 =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = vtrt1-ora11-vip)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = VTTEST)
(INSTANCE_NAME = VTTEST2)
LISTENER_VTTEST1 =
(ADDRESS = (PROTOCOL = TCP)(HOST = vtrt1-ora10-vip)(PORT = 1521))
LISTENER_VTTEST2 =
(ADDRESS = (PROTOCOL = TCP)(HOST = vtrt1-ora11-vip)(PORT = 1521))
VTTEST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = vtrt1-ora10-vip)(PORT = 1521))
(ADDRESS = (PROTOCOL = TCP)(HOST = vtrt1-ora11-vip)(PORT = 1521))
(LOAD_BALANCE = yes)
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = VTTEST)
Things I have tried without success (including reboot of services in all cases):_
Using ip addresses in the above files instead of host names.
Removing/adding LDAP to the list of methods in the sqlnet.ora.
Various restarts etc.
The kncok on effect of this is that the forms app can take around 30 seconds to login from a remote site, which is unacceptable, however, on a remote site, 10 seconds would be acceptable.
Thank you for all replies.

Please check this
Sqlnet connection via TCP Hangs for about 10seconds Before Connection is Established [ID 1071330.1]

Similar Messages

  • Wine is taking ages to load

    Wine is taking ages to load in my machine. When i run winecfg, for exemple, it takes about 10min to show me a window.
    $ winecfg
    wine: creating configuration directory '~/.wine'...
    Failed to open the service control manager.
    -> hangs here for about 10min
    I already enabled (and disabled) the DRI module in xorg.conf, but it didint helped anything. Delete the .wine folder is not the solution either because im having this problem since i instaled wine (but i erased the folder, anyway).
    $ wine --version
    wine-0.9.30
    So ... any tips?
    Last edited by nozey (2007-02-06 22:42:57)

    I have the same problem as you. I installed wine through pacman and when I do 'winecfg' , I have to wait a really long time until it loads. I don't understand why this is so. In all of the other linux distributions that I tried, wine started up quite fast (gentoo, ubuntu, zenwalk, fedora core, etc) Could someone please tell us why it takes a long time for wine to open. Thank you.
    My WINE version is wine-0.9.33
    PS: I am not sure if this would be the cause, although I don't know why it would do anything but, I am running the 32 bit Arch Linux on a 64 bit machine, and this is because I need to use wine for a certain something that I have to do for my school, so I don't want to use Arch64. I know that it is possible to get wine to work in 64 bit Arch, but I have no clue how to update the package along with the rest of the system, and I can't seem to get a chroot environment to work.

  • My ipod touch is taking ages to back up, I dont know weather it is because I havent had my ipod plugged into my computer for a while or not... I dont know what to do... And i really need it to sinc so i can put new music on. Can anyone help?

    I really need your help. I'm 14.
    I really need to put new music on my iPod and I have plugged it into my computer and its taking ages to back-up and it wont let me do anything until its done. It will take over 3 hours if it keeps on going like this. Please help me. I don't know what's wrong with it.
    It might be because I haven't backed it up in a while but the reason I haven't is cause it takes this long! Anyone know what to do?
    Meg x <This is how I feel. (Confused and really upset)

    You can redownload most itunes purchase by the following. What you can redownload depends upon where you are located.
    Downloading past purchases from the App Store, iBookstore, and iTunes Store

  • Insert select statement is taking ages

    Sybase version: Adaptive Server Enterprise/12.5.4/EBF 15432 ESD#8/P/Sun_svr4/OS 5.8/ase1254/2105/64-bit/FBO/Sat Mar 22 14:38:37 2008
    Hi guyz,
    I have a question about the performance of a statement that is very slow and I'd like to have you input.
    I have the SQL statement below that is taking ages to execute and I can't find out how to imporve it
    insert SST_TMP_M_TYPE select M_TYPE from MKT_OP_DBF M join TRN_HDR_DBF T on M.M_ORIGIN_NB=T.M_NB where T.M_LTI_NB=@Nson_lti
    @Nson_lti is the same datatype as T.M_LTI_NB
    M.M_ORIGIN_NB=T.M_NB have the same datatype
    TRN_HDR_DBF has 1424951 rows and indexes on M_LTI_NB and M_NB
    table MKT_OP_DBF has 870305 rows
    table MKT_OP_DBF has an index on M_ORIGIN_NB column
    Statistics for index:                   "MKT_OP_ND7" (nonclustered)
    Index column list:                      "M_ORIGIN_NB"
         Leaf count:                        3087
         Empty leaf page count:             0
         Data page CR count:                410256.0000000000000000
         Index page CR count:               566.0000000000000000
         Data row CR count:                 467979.0000000000000000
         First extent leaf pages:           0
         Leaf row size:                     12.1161512343373872
         Index height:                      2
    The representaion of M_ORIGIN_NB is
    Statistics for column:                  "M_ORIGIN_NB"
    Last update of column statistics:       Mar  9 2015 10:48:57:420AM
         Range cell density:                0.0000034460903826
         Total density:                     0.0053334921767125
         Range selectivity:                 default used (0.33)
         In between selectivity:            default used (0.25)
    Histogram for column:                   "M_ORIGIN_NB"
    Column datatype:                        numeric(10,0)
    Requested step count:                   20
    Actual step count:                      20
         Step     Weight                    Value
            1     0.00000000        <       0
            2     0.07300889        =       0
            3     0.05263098       <=       5025190
            4     0.05263098       <=       9202496
            5     0.05263098       <=       12664456
            6     0.05263098       <=       13129478
            7     0.05263098       <=       13698564
            8     0.05263098       <=       14735554
            9     0.05263098       <=       15168461
           10     0.05263098       <=       15562067
           11     0.05263098       <=       16452862
           12     0.05263098       <=       16909265
           13     0.05263212       <=       17251573
           14     0.05263098       <=       18009609
           15     0.05263098       <=       18207523
           16     0.05263098       <=       18404113
           17     0.05263098       <=       18588398
           18     0.05263098       <=       18793585
           19     0.05263098       <=       18998992
           20     0.03226340       <=       19574408
    If I look at the showplan, I can see indexes on TRN_HDR_DBF are used but now the one on MKT_OP_DBF
    QUERY PLAN FOR STATEMENT 16 (at line 35).
        STEP 1
            The type of query is INSERT.
            The update mode is direct.
            FROM TABLE
                MKT_OP_DBF
                M
            Nested iteration.
            Table Scan.
            Forward scan.
            Positioning at start of table.
            Using I/O Size 32 Kbytes for data pages.
            With LRU Buffer Replacement Strategy for data pages.
            FROM TABLE
                TRN_HDR_DBF
                T
            Nested iteration.
            Index : TRN_HDR_NDX_NB
            Forward scan.
            Positioning by key.
            Keys are:
                M_NB  ASC
            Using I/O Size 4 Kbytes for index leaf pages.
            With LRU Buffer Replacement Strategy for index leaf pages.
            Using I/O Size 4 Kbytes for data pages.
            With LRU Buffer Replacement Strategy for data pages.
            TO TABLE
                SST_TMP_M_TYPE
            Using I/O Size 4 Kbytes for data pages.
    I was expecting the query to use the index also on MKT_OP_DBF
    Thanks for your advices
    Simon

    The total density number for the MKT_OP_DBF.M_ORIGIN_NB column don't look very good:
         Range cell density:           0.0000034460903826
         Total density:                0.0053334921767125
    Notice the total density value is 3 magnitudes larger than the range density ... which can indicate a largish number of duplicates.  (NOTE: This wide difference between range cell and total density can be referred to as 'skew' - more on this later.)
    Do some M_ORIGIN_NB values have a large number of duplicates?  What does the following query return:
    =====================
    select top 30 M_ORIGIN_NB, count(*)
    from   MKT_OP_DBF
    group by M_ORIGIN_NB
    order by 2 desc, 1
    =====================
    The total density can be used to estimate the number of rows expected for a join (eg, TRN_HDR_DBF --> MKT_OP_DBF).  The largish total density number, when thrown into the optimizer's calculations, may be causing the optimizer to think that the volume of *possible* joins will be more expensive than a join in the opposite direction (MKT_OP_DBF --> TRN_HDR_DBF) which in turn means (as Jeff's pointed out) that you end up table scanning MKT_OP_DBF (as the outer table) because of no SARGs.
    From your description it sounds like you've got the necessary indexes to support a TRN_HDR_DBF --> MKT_OP_DBF join order. (Though it wouldn't hurt to see the complete output from sp_helpindex for both tables just to make sure we're on the same sheet of music.)
    Without more details (eg, complete stats for both tables, sp_help for both tables - if you decide to post these I'd recommend posting them as a *.txt attachment).
    I'm assuming you *know* that a join from TRN_NDR_DBF --> MKT_OP_DBF should be much quicker than what you're currently seeing.  If this is the case, I'd probably want to start with:
    =====================
    exec sp_modifystats MKT_OP_DBF, M_ORIGIN_NB, REMOVE_SKEW_FROM_DENSITY
    go
    exec sp_recompile MKT_OP_DBF
    go
    -- run your query again
    =====================
    By removing the skew from the total density (ie, set total density = range cell density = 0.00000344...) you're telling the optimizer that it can expect a much smaller number of joins for the join order of TRN_HDR_DBF --> MKT_OP_DBF ... and that may be enough for the optimizer to use TRN_HDR_DBF to drive the query.
    NOTE: If sp_modifystats/REMOVE_SKEW_FROM_DENSITY provides the desired join order, keep in mind that you'll need to re-issue this command after each update stats command that modifies the stats on the M_ORIGIN_NB column.  For example, modify your update stats maintenance job to issue sp_modifystats/REMOVE_SKEW_FROM_DENSITY for those special cases where you know it helps query performance.

  • Rebooted my iPhone and my apps are taking ages to load

    Lost my I phone and got a new one today. I've restored it from iCloud and got it working. My apps are taking ages to load though. They say waiting, but have now been like that for 2 hours. Help please?!

    Try This...
    Close All Open Apps... Sign Out of your Account... Perform a Reset... Try again...
    Reset  ( No Data will be Lost )
    Press and Hold the Sleep/Wake Button and the Home Button at the Same Time...
    Wait for the Apple logo to Appear...
    Usually takes about 15 - 20 Seconds... ( But can take Longer...)
    Release the Buttons.

  • Taking ages to delete user account on macbook pro?!

    Hi,
    I'm deleting an old user off my macbook pro and setting it up for another user, however it is taking AGES (25minutes so far....) to delete. The System Preferences won't let me quit as it says it's still working and under the account it does say "Deleting account" However I now cannot click or highlight this account.
    I'm not convinced it's still working as it's taken so long. Is this a normal length of time to wait?
    Thanks
    Emily

    Are you using FileVault/encryption?

  • I was uploading a 15 GB file to creative cloud, it's taking ages, so I decided to send it by mail. how can I stop the sincere now?

    I was uploading a 15 GB file to creative cloud, it's taking ages, so I decided to send it by mail.

    The FAQ is at http://helpx.adobe.com/creative-cloud/kb/creative-cloud-connection-faq.html#id_74925
    Is there a file size limit?
    With Creative Cloud Connection preview, you can upload files up to 5 GB. If you attempt to upload anything larger, you can see some unexpected errors.
    With the Creative Cloud website, you can upload files up to 1 GB. If you attempt to upload anything larger, you can see some unexpected upload failures.
    ^Ani

  • Just upgraded to firefox 4 and websites are now taking ages to load, there were no problems when I downloaded the upgrade. Is there a fault with the new version of firefox?

    Just upgraded to firefox 4 and websites are now taking ages to load, there were no problems when I downloaded the upgrade. Is there a fault with the new version of firefox?

    Did you check your security software (firewall)?
    A possible cause is security software (firewall) that blocks or restricts Firefox or the plugin-container process without informing you, possibly after detecting changes (update) to the Firefox program.
    Remove all rules for Firefox from the permissions list in the firewall and let your firewall ask again for permission to get full unrestricted access to internet for Firefox and the plugin-container process.
    See:
    * [[Server not found]]
    * [[Firewalls]]

  • Upgrade iPhoto database taking forever, 12 hours and counting. New McBk Pro: the APple tech staff migrated data from my old MacBook. Am I doing something wrong?

    Upgrade iPhoto database taking forever, 12 hours and counting.the Apple tech staff migrated data from my old MacBoo to  New McBk Pro.  Then the Upgrading process was started and ran for 24 hours before I finally Force Quit.  BTW, iPhoto didn't show up as Not Responding, but I figured there was some glitch and Force Quit.  THen started up again and now 12 hours and counting. Am I missing something?

    Upgrade iPhoto database taking forever, 12 hours and counting.the Apple tech staff migrated data from my old MacBoo to  New McBk Pro.  Then the Upgrading process was started and ran for 24 hours before I finally Force Quit.  BTW, iPhoto didn't show up as Not Responding, but I figured there was some glitch and Force Quit.  THen started up again and now 12 hours and counting. Am I missing something?

  • Connecting to the database taking long time to connect database server

    Hi
    When I execute procedure i am getting the below message at bottom of the Oracle SQL Developer
    "Connecting to the database"
    it is taking more than 10 min plz guide

    Hi
    have you installed a normal Oracle Client also on your Host? normal Oracle Client
    Did you connect with host:port:sid or with a Oracle Naming Service? through TNS Service
    Can you test tnsping <alias> yes, It is working fine
    Did other user have the same problem? yes
    Did you connect through WAN or LAN connection? LAN (Intranet)
    Can you tell more about you client/database setup?
    Database setup:
    OS: Window 2008 server
    version: 11.1.0
    Client: 11.1.0
    OS: Window 2008 server
    Now I am not able to execute single select query which table contains 6 records and 15 columns it is taking long time I have waited 30 min still no resutls
    only one table is behaving like this remaining is working fine
    Edited by: user9235224 on Oct 6, 2012 7:06 PM

  • Messages Taking Ages to Post in Specific Skype Gro...

    So as the title suggests, I've having trouble with one specific Skype group. My messages are going through but it changes constantly from instantly being sent to the other participents to taking anywhere from 10 to up to an hour to send (which when you're trying to have a conversation, this is a major issue).
    Every other Skype chat I'm in does not have this issue. I am able to send instant messages to those groups (who are larger in terms of how many participents are in them) yet this one (that has 4 including me) takes ages to send.
    Anyone got any ideas how I can fix it? It's rather irritating and I've tried reinstalling my Skype, I've tried everything and its not my internet as is no disruptions to my other online experiences (videos load fine, etc, etc).

    So as the title suggests, I've having trouble with one specific Skype group. My messages are going through but it changes constantly from instantly being sent to the other participents to taking anywhere from 10 to up to an hour to send (which when you're trying to have a conversation, this is a major issue).
    Every other Skype chat I'm in does not have this issue. I am able to send instant messages to those groups (who are larger in terms of how many participents are in them) yet this one (that has 4 including me) takes ages to send.
    Anyone got any ideas how I can fix it? It's rather irritating and I've tried reinstalling my Skype, I've tried everything and its not my internet as is no disruptions to my other online experiences (videos load fine, etc, etc).

  • Need Help with logins for SQLPLUS and Database Control

    Hi,
    I am new to Oracle. I installed "Oracle 10g Standard Version" on Win XP Pro. I have two questions regarding logins:
    (1)     After installing the software I used “dbca” to create a General Purpose database. At the end of the database creation I clicked on the Password Management button and I entered the password for SYS, SYSTEM and SCOTT. Then at the DOS command prompt I typed “SQLPLUS” and I can login as SCOTT and system, but I cannot as login as sysdba or sysoper. I get invalid username/password; logon denied message.
    But I can type “SQLPLUS /NOLOG” and then issue command “connect /as sysdba” and connect successfully as sysdba. Any idea why I cannot login sysdba or sysoper?
    (2)     When I go to windows Start->All Programs->Oracle - OraDb10g_home1 and select “Database Control”. A browser windows open up Database Control page. I cannot start Listener nor Start up a Database Instance. No matter whether I try SYS, SYSDBA, SYSOPER or SCOTT I cannot login. Any idea what is going on here?
    At the SQLPLUS command prompt if I enter “select status from v$instance;” I get status as “OPEN”.
    I am lost in Oracle world as a typical newbie. Many thanks in advance for any advice or pointers.
    Thanks
    Joe

    (1) Yes I can login if I type "sqlplus / as sysdba". Does that mean "sysdba" doesn't have a password?
    (2) when I run "emctl status dbconsole", I get a message saying "Environment variable ORACLE_SID not defined. Please define it." Can someone tell me what should I do?
    Thanks
    Joe

  • SQLPlus Default Database Connection

    I have two Oracle databases installed on the same LINUX server. One is a training database that is rarely even running.
    When logging in through SQLPlus and only supplying userid and password, the database to which the connect is attempted varies depending on the userid I am currently logged in as under LINUX. Under one userid, SQLPlus even attempts to connect to the idle training database. The 8i documentation indicates that setting the default database for SQLPlus is OS specific. Does anyone know how this is specified under LINUX?

    Joseph,
    That was one of my guesses, as well, but it doesn't seem to behave consistently.
    The .bash_profile files for both the oracle and mdm user are the same, however, the oracle user is able to default to the correct database, whereas mdm cannot.
    Here's the profile for mdm:
    $ cat .bash_profile
    # .bash_profile
    # Get the aliases and functions
    if [ -f ~/.bashrc ]; then
    . ~/.bashrc
    fi
    # User specific environment and startup programs
    DISPLAY=localhost:0.0; export DISPLAY
    ORACLE_BASE=/usr/oracle; export ORACLE_BASE
    ORACLE_HOME=/usr/oracle; export ORACLE_HOME
    ORACLE_SID=pmisbk; export ORACLE_SID
    #ORACLE_SID=oralin; export ORACLE_SID
    ORA_NLS33=$ORACLE_HOME/ocommon/nls/admin/data; export ORA_NLS33
    ORAENV_ASK=NO; export ORAENV_ASK
    LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ORACLE_HOME/lib; export LD_LIBRARY_PATH
    umask 022
    NLS_LANG=american_america.EE8ISO8859P2; export NLS_LANG
    #PATH=$PATH:$HOME/bin
    PATH=/usr/local/sbin:/usr/sbin:/sbin:/usr/local/ActivePerl-5.6/bin:$PATH:$HOME/bin:$ORACLE_HOME/bin
    BASH_ENV=$HOME/.bashrc
    USERNAME=""
    export USERNAME BASH_ENV PATH
    . /usr/local/bin/oraenv
    and behavior:
    $ echo $ORACLE_SID
    pmis
    $ sqlplus
    SQL*Plus: Release 8.1.6.0.0 - Production on Thu Apr 25 14:01:10 2002
    (c) Copyright 1999 Oracle Corporation. All rights reserved.
    Enter user-name: mdm
    Enter password:
    ERROR:
    ORA-01034: ORACLE not available
    Enter user-name: mdm@pmisbk
    Enter password:
    Connected to:
    Oracle8i Enterprise Edition Release 8.1.6.1.0 - Production
    With the Partitioning option
    JServer Release 8.1.6.0.0 - Production
    SQL> exit
    Disconnected from Oracle8i Enterprise Edition Release 8.1.6.1.0 - Production
    With the Partitioning option
    JServer Release 8.1.6.0.0 - Production
    and the .bash_profile for oracle:
    $ su - oracle
    Password:
    $ cat .bash_profile
    # .bash_profile
    # Get the aliases and functions
    if [ -f ~/.bashrc ]; then
    . ~/.bashrc
    fi
    # User specific environment and startup programs
    DISPLAY=localhost:0.0; export DISPLAY
    ORACLE_BASE=/usr/oracle; export ORACLE_BASE
    ORACLE_HOME=/usr/oracle; export ORACLE_HOME
    ORACLE_SID=pmis; export ORACLE_SID
    #ORACLE_SID=oralin; export ORACLE_SID
    ORA_NLS33=$ORACLE_HOME/ocommon/nls/admin/data; export ORA_NLS33
    ORAENV_ASK=NO; export ORAENV_ASK
    LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ORACLE_HOME/lib; export LD_LIBRARY_PATH
    umask 022
    NLS_LANG=american_america.EE8ISO8859P2; export NLS_LANG
    CLASSPATH=.:$ORACLE_HOME/jdbc/lib/classes111.zip:$ORACLE_HOME/sqlj/lib/translator.zip; export CLASSPATH
    PATH=/usr/local/ActivePerl-5.6/bin:$PATH:$ORACLE_HOME/bin
    BASH_ENV=$HOME/.bashrc
    USERNAME=""
    export USERNAME BASH_ENV PATH
    . /usr/local/bin/oraenv
    and the behavior:
    $ sqlplus
    SQL*Plus: Release 8.1.6.0.0 - Production on Thu Apr 25 14:07:47 2002
    (c) Copyright 1999 Oracle Corporation. All rights reserved.
    Enter user-name: mdm
    Enter password:
    Connected to:
    Oracle8i Enterprise Edition Release 8.1.6.1.0 - Production
    With the Partitioning option
    JServer Release 8.1.6.0.0 - Production
    SQL> exit
    Disconnected from Oracle8i Enterprise Edition Release 8.1.6.1.0 - Production
    With the Partitioning option
    JServer Release 8.1.6.0.0 - Production
    Perhaps this is because the Home directory for the oracle user is the same as $ORACLE_HOME.
    You may have noticed the connect string for mdm was to pmisbk. That's the alias in the tnsnames.ora file, otherwise if you try using pmis you get:
    Enter user-name: mdm@pmis
    Enter password:
    ERROR:
    ORA-12154: TNS:could not resolve service name
    and have to enter:
    Enter user-name: mdm@pmisbk
    Enter password:
    Connected to:
    Oracle8i Enterprise Edition Release 8.1.6.1.0 - Production
    With the Partitioning option
    JServer Release 8.1.6.0.0 - Production
    SQL> exit
    If you specify pmisbk and the ORACLE_SID in the .bash_profile file, when you log into the server it prompts you:
    ORACLE_HOME = [usr/oracle] ?
    presumably because /etc/oratab does not contain an entry for pmisbk. You can respond with RETURN and the variable contains the correct path, but all the other behavior is as described above.

  • How to store date in database , taking cre of timezone

    Hello java users
    I have a user interface in which a user can pick a date, time and timezone.
    Implemented simply.
    start Date as a textbox: format - MM/dd/yyyy
    start time as a textbox : format - HH/mm/ss
    start timezone as a drop down. And currently there is only 3 values here: PST,EST,CST. As this is what we support.
    I am using MSSQL and my date field column ( startdate ) is of type datetime.
    Now how will I pass the correct value to the database.
    Some more details.
    I have a bean i which I am able to retrieve all the values.
    public class MyBean implements serializable{
    private Date startDate;
    private Date startTime;
    private String timezone; // this will store the timezone id selected by the user.
    //getters and setters
    Now, how will I combine all the values selected by the user and set in the bean and save it in the database.
    I am sure there are a lot of times someone has tried to do this. But I am having a hard time finding this info in a collective manner.
    Any help would be usefull
    Thanks
    Aayush

    Its does help.
    And yes it is requirement to get the date and time and the timezone info from the user through a UI.
    And date is in format : MM/dd/yyyy
    time is in format : HH:mm:ss
    and there are 3 timezones : PST,EST,CST (And yes these are valid timezone ids).
    I guess, the other way to put this is that - The user input is the way to get the StartTime data.
    And ya it makes sense to have separate fields in the database to store date and timezone.
    I am fairly new on this date part and its confusing me a little.
    So I will go into a little more details.
    As u suggested that it would be a good idea to have 3 separate fields for doing this.
    you mean to have 3 fields in the database with columns like
    1. startDate - datetime // to store the start date ( MM/dd/yyyy)
    2. startTime - datetime // to store the start time ( HH:mm:ss). Is it possible to store only time in the database or are you suggesting to combine date and time in one database field.
    3. startTimeZone - varchar // to store time zone.
    So how do I achieve this.
    lets say I get these values;
    String startDate = "09/06/2008";
    String startTime = "11:10:12";
    String startTimeZone = EST;
    now how will I store it in the database.
    consider I have a java bean
    public class StartTimeBean{
    private Date startDate ;
    private Date startTime ;
    private String startTimeZone;
    also I am using a OR mapping tool ( ibatis )
    And I have my insert statement mapped to the bean StartTime.
    Essentially what I am looking for a say method say , createTime(StartTimeBean startTimeBean )
    so how will I store the info in the database

  • Why is my Quick Preview taking ages to load

    I am finding the Quick Preview in Aperture is taking a long time to load the picture. I have to come out of quick preview to allow the picture to load and be clear. Once it has loaded, I can go back in to QP and it works as expected. Until I try to open the next picture.
    This has only started recently.Is it something to do with looking at masters instead of versions?

    My first (and perhaps only) guess is that you have (perhaps inadvertently) set Aperture to not create Previews (or deleted them).
    What happens if you select all the images in a Project and execute "Photos→Update Previews"? Does Aperture do anything?  Are you then able to quickly move through them using Quick Preview?

Maybe you are looking for

  • Changing sountrcaks within a slide show?

    Can I change the background soundtrack at a point within a slide show? Tried exporting to iMovie a Quicktime movie to add two soundtracks, but iMovie would not inport.

  • IIOP dynamic stub downloading

    Hi, While working with EJB's (1.1 to 2.0) on different projects, I've never been able to setup dynamic downloading of EJB IIOP stubs. I had to include the stubs in the client's classpath everytime. I am now wondering : Is dynamic stub downloading pos

  • If a Leopard binary doesn't work is it worth trying the Tiger one?

    I obviously asked this question in the wrong forum (sorry) so let me try again here: I'm using Lion and in trying to make the changeover from PC to Windows one of the programs I use has a Leopard compiled app that doesn't work (it installs but when I

  • 3 iPods and Now MacBook Air lose internet while still connected to network

    I have 2 Belkin N+ routers running 2 wifi networks at my home.  I have 2 iPod Touch 2G's and a 4th gen iPod. ALL of them loose the internet after anywhere from 2 to 15 min of turning on wifi on the device - on either router. They are still connected

  • Report Types Help

    Help! Is there a report type that I can choose that allows me to format the report in any way I want. For example move the labels and descriptions all over the place if I want to. I want to be able to click one field and put it anywhere. It seems whe