Count of connection to database

Hello!
I want to know a count of opened connections to my database at the moment.
How can I know it?

select
count(distinct spid) 
from sys.sysprocesses
where dbid
= db_id('DatabaseName')
-- Replace DatabaseName as per you requirement
Thanks, RajaSekhara Reddy . K

Similar Messages

  • Error Connecting to database URL jdbc:oracle:oci:@rmsdbtst as user rms13 java.lang.Exception:UnsatisfiedLinkError encountered when using the Oracle driver

    Trying to Install RMS application 13.2.2 and I get past the pre-installation checks and when I get to the Data Source details and enter the data source details with the check box checked to validate the schema/Test Data Source I get the following error:
    Error Connecting to database URL jdbc:oracle:oci:@rmsdbtst as user rms13 java.lang.Exception:UnsatisfiedLinkError encountered when using the Oracle driver. Please check that the library path is set up properly or switch to the JDBC thin client oracle/jdbc/driver/T2CConnection.getLibraryVersioNumber()
    Checks performed:
    RMS Application code location and directory contents:
    [oracle@test-rms-app application]$ pwd
    /binary_files/STAGING_DIR/rms/application
    [oracle@test-rms-app application]$ ls -ltr
    total 144
    -rw-r--r-- 1 oracle oinstall   272 Dec 7  2010 version.properties
    -rw-r--r-- 1 oracle oinstall   405 Jan 16 2011 expected-object-counts.properties
    -rw-r--r-- 1 oracle oinstall   892 May 13 2011 ant.install.properties.sample
    -rw-r--r-- 1 oracle oinstall 64004 Jun  6  2011 build.xml
    drwxr-xr-x 9 oracle oinstall  4096 Jun 16 2011 rms13
    drwxr-xr-x 3 oracle oinstall  4096 Jun 16 2011 installer-resources
    drwxr-xr-x 3 oracle oinstall  4096 Jun 16 2011 antinstall
    drwxr-xr-x 2 oracle oinstall  4096 Jun 16 2011 ant-ext
    drwxr-xr-x 5 oracle oinstall  4096 Jun 16 2011 ant
    -rw-r--r-- 1 oracle oinstall 11324 Dec 18 09:18 antinstall-config.xml.ORIG
    -rwxr-xr-x 1 oracle oinstall  4249 Dec 18 10:01 install.sh
    drwxr-xr-x 4 oracle oinstall  4096 Dec 18 10:06 common
    -rw-r--r-- 1 oracle oinstall 16244 Dec 19 10:37 antinstall-config.xml
    -rw-r--r-- 1 oracle oinstall   689 Dec 19 10:37 ant.install.log
    [oracle@test-rms-app application]$
    Application installation:
    [oracle@test-rms-app application]$ ./install.sh
    THIS IS the driver directory
    Verified $ORACLE_SID.
    Verified SQL*Plus exists.
    Verified write permissions.
    Verified formsweb.cfg read permissions.
    Verified Registry.dat read permissions.
    Verified Java version 1.4.2.x or greater. Java version - 1.6.0
    Verified Tk2Motif.rgb settings.
    Verified frmcmp_batch.sh status.
    WARNING: Oracle Enterprise Linux not detected.  Some components may not install properly.
    Verified $DISPLAY - 172.16.129.82:0.0.
    This installer will ask for your "My Oracle Support" credentials.
    Preparing installer. This may take a few moments.
    Your internet connection type is: NONE
    Integrating My Oracle Support into the product installer workflow...
         [move] Moving 1 file to /binary_files/STAGING_DIR/rms/application
    Installer preparation complete.
    MW_HOME=/u01/app/oracle/Middleware/NewMiddleware1034
    ORACLE_HOME=/u01/app/oracle/Middleware/NewMiddleware1034/as_1
    ORACLE_INSTANCE=/u01/app/oracle/Middleware/NewMiddleware1034/asinst_1
    DOMAIN_HOME=/u01/app/oracle/Middleware/NewMiddleware1034/user_projects/domains/rmsClassDomain
    WLS_INSTANCE=WLS_FORMS
    ORACLE_SID=rmsdbtst
    JAVA_HOME=/u01/app/oracle/jrockit-jdk1.6.0_45-R28.2.7-4.1.0
    Launching installer...
    To make sure I have connectivity from the app server to the database (on a database server) here are the steps followed:
    [oracle@test-rms-app application]$ tnsping rmsdbtst
    TNS Ping Utility for Linux: Version 11.1.0.7.0 - Production on 19-DEC-2013 10:41:40
    Copyright (c) 1997, 2008, Oracle.  All rights reserved.
    Used parameter files:
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = test-rms-db.vonmaur.vmc)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SID = rmsdbtst)))
    OK (0 msec)
    [oracle@test-rms-app application]$
    [oracle@test-rms-app application]$ sqlplus rms13@rmsdbtst
    SQL*Plus: Release 11.1.0.7.0 - Production on Thu Dec 19 10:46:18 2013
    Copyright (c) 1982, 2008, Oracle.  All rights reserved.
    Enter password:
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    SQL> exit
    Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    [oracle@test-rms-app application]$
    [oracle@test-rms-app application]$ ping test-rms-db
    PING test-rms-db.vonmaur.vmc (192.168.1.140) 56(84) bytes of data.
    64 bytes from test-rms-db.vonmaur.vmc (192.168.1.140): icmp_seq=1 ttl=64 time=0.599 ms
    64 bytes from test-rms-db.vonmaur.vmc (192.168.1.140): icmp_seq=2 ttl=64 time=0.168 ms
    64 bytes from test-rms-db.vonmaur.vmc (192.168.1.140): icmp_seq=3 ttl=64 time=0.132 ms
    64 bytes from test-rms-db.vonmaur.vmc (192.168.1.140): icmp_seq=4 ttl=64 time=0.158 ms
    64 bytes from test-rms-db.vonmaur.vmc (192.168.1.140): icmp_seq=5 ttl=64 time=0.135 ms
    --- test-rms-db.vonmaur.vmc ping statistics ---
    5 packets transmitted, 5 received, 0% packet loss, time 4001ms
    rtt min/avg/max/mdev = 0.132/0.238/0.599/0.181 ms
    [oracle@test-rms-app application]$
    [oracle@test-rms-app application]$ uname -a
    Linux test-rms-app.vonmaur.vmc 2.6.18-128.el5 #1 SMP Wed Jan 21 08:45:05 EST 2009 x86_64 x86_64 x86_64 GNU/Linux
    [oracle@test-rms-app application]$
    [oracle@test-rms-app application]$ cat /etc/*-release
    Enterprise Linux Enterprise Linux Server release 5.3 (Carthage)
    Red Hat Enterprise Linux Server release 5.3 (Tikanga)
    [oracle@test-rms-app application]$
    The database is created and all the batch file scripts have been successfully deployed.  Now working on the application server.  The  Weblogic server is installed and 11g forms and reports are installed successfully.
    Any help would be helpful.
    Thanks,
    Ram.

    Please check MOS Notes:
    FAQ: RWMS 13.2 Installation and Configuration (Doc ID 1307639.1)

  • (Cisco Historical Reporting / HRC ) All available connections to database server are in use by other client machines. Please try again later and check the log file for error 5054

    Hi All,
    I am getting an error message "All available connections to database server are in use by other client machines. Please try again later and check the log file for error 5054"  when trying to log into HRC (This user has the reporting capabilities) . I checked the log files this is what i found out 
    The log file stated that there were ongoing connections of HRC with the CCX  (I am sure there isn't any active login to HRC)
    || When you tried to login the following error was being displayed because the maximum number of connections were reached for the server .  We can see that a total number of 5 connections have been configured . ||
    1: 6/20/2014 9:13:49 AM %CHC-LOG_SUBFAC-3-UNK:Current number of connections (5) from historical Clients/Scheduler to 'CRA_DATABASE' database exceeded the maximum number of possible connections (5).Check with your administrator about changing this limit on server (wfengine.properties), however this might impact server performance.
    || Below we can see all 5 connections being used up . ||
    2: 6/20/2014 9:13:49 AM %CHC-LOG_SUBFAC-3-UNK:[DB Connections From Clients (count=5)]|[(#1) 'username'='uccxhrc','hostname'='3SK5FS1.ucsfmedicalcenter.org']|[(#2) 'username'='uccxhrc','hostname'='PFS-HHXDGX1.ucsfmedicalcenter.org']|[(#3) 'username'='uccxhrc','hostname'='PFS-HHXDGX1.ucsfmedicalcenter.org']|[(#4) 'username'='uccxhrc','hostname'='PFS-HHXDGX1.ucsfmedicalcenter.org']|[(#5) 'username'='uccxhrc','hostname'='47BMMM1.ucsfmedicalcenter.org']
    || Once the maximum number of connection was reached it threw an error . ||
    3: 6/20/2014 9:13:49 AM %CHC-LOG_SUBFAC-3-UNK:Number of max connection to 'CRA_DATABASE' database was reached! Connection could not be established.
    4: 6/20/2014 9:13:49 AM %CHC-LOG_SUBFAC-3-UNK:Database connection to 'CRA_DATABASE' failed due to (All available connections to database server are in use by other client machines. Please try again later and check the log file for error 5054.)
    Current exact UCCX Version 9.0.2.11001-24
    Current CUCM Version 8.6.2.23900-10
    Business impact  Not Critical
    Exact error message  All available connections to database server are in use by other client machines. Please try again later and check the log file for error 5054
    What is the OS version of the PC you are running  and is it physical machine or virtual machine that is running the HRC client ..
    OS Version Windows 7 Home Premium  64 bit and it’s a physical machine.
    . The Max DB Connections for Report Client Sessions is set to 5 for each servers (There are two servers). The no of HR Sessions is set to 10.
    I wanted to know if there is a way to find the HRC sessions active now and terminate the one or more or all of that sessions from the server end ? 

    We have had this "PRX5" problem with Exchange 2013 since the RTM version.  We recently applied CU3, and it did not correct the problem.  We have seen this problem on every Exchange 2013 we manage.  They are all installations where all roles
    are installed on the same Windows server, and in our case, they are all Windows virtual machines using Windows 2012 Hyper-V.
    We have tried all the "this fixed it for me" solutions regarding DNS, network cards, host file entries and so forth.  None of those "solutions" made any difference whatsoever.  The occurrence of the temporary error PRX5 seems totally random. 
    About 2 out of 20 incoming mail test by Microsoft Connectivity Analyzer fail with this PRX5 error.
    Most people don't ever notice the issue because remote mail servers retry the connection later.  However, telephone voice mail systems that forward voice message files to email, or other such applications such as your scanner, often don't retry and
    simply fail.  Our phone system actually disables all further attempts to send voice mail to a particular user if the PRX5 error is returned when the email is sent by the phone system.
    Is Microsoft totally oblivious to this problem?
    PRX5 is a serious issue that needs an Exchange team resolution, or at least an acknowledgement that the problem actually does exist and has negative consequences for proper mail flow.
    JSB

  • How to find out number of connections to database?

    Hi,
    How can I find number of connections connected to the database 4 hours ago. For examply, if current time is 5PM and I want to see total number of connections connected to database (and from what user?) in between 1 and 2 PM, is there a way to find that out?
    I see v$session has a column MACHINE from which I can use count function to check the # of concurrent connections but I am not sure how to check the # of connections that happend few hours ago. Any suggestions?
    --MM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    you should have audit on .. and create logon trigger and make entry in the tabe ..that would give you .
    --Girish                                                                                                                                                                                                                                       

  • Connect to database failed,rc=-10709 Connection failed (RTE:Database name)

    Hi gurues, I'm facing this issue with an IDES on MaxDB with Windows.
    System was up and running until someone tries to make an upgrade of the kernel. Since then we can not start our system. we tried to rollback kernel release to the previous one but it didn't work.
    When we start our system from MMC console we can see all process in green but work processes are in RUN state and after a few minutes they goes down with the following error
    trc file: "dev_w0", trc level: 1, release: "701"
    ACTIVE TRACE LEVEL           1
    ACTIVE TRACE COMPONENTS      all, MJ

    B Mon May 16 23:57:31 2011
    B  create_con (con_name=R/3)
    B  Loading DB library '
    sirillium1\sapmnt\SED\SYS\exe\uc\NTAMD64\dbsdbslib.dll' ...
    B  Library '
    sirillium1\sapmnt\SED\SYS\exe\uc\NTAMD64\dbsdbslib.dll' loaded
    B  Version of '
    sirillium1\sapmnt\SED\SYS\exe\uc\NTAMD64\dbsdbslib.dll' is "700.08", patchlevel (0.24)
    B  New connection 0 created
    M sysno      00
    M sid        SED
    M systemid   562 (PC with Windows NT)
    M relno      7010
    M patchlevel 0
    M patchno    32
    M intno      20020600
    M make:      multithreaded, Unicode, 64 bit, optimized
    M pid        212
    M
    M  kernel runs with dp version 241000(ext=110000) (@(#) DPLIB-INT-VERSION-241000-UC)
    M  length of sys_adm_ext is 576 bytes
    M  ***LOG Q0Q=> tskh_init, WPStart (Workproc 0 212) [dpxxdisp.c   1348]
    I  MtxInit: 30000 0 0
    M  DpSysAdmExtCreate: ABAP is active
    M  DpSysAdmExtCreate: VMC (JAVA VM in WP) is not active
    M  DpShMCreate: sizeof(wp_adm)          22784     (1752)
    M  DpShMCreate: sizeof(tm_adm)          5912704     (29416)
    M  DpShMCreate: sizeof(wp_ca_adm)          24064     (80)
    M  DpShMCreate: sizeof(appc_ca_adm)     8000     (80)
    M  DpCommTableSize: max/headSize/ftSize/tableSize=500/16/552064/552080
    M  DpShMCreate: sizeof(comm_adm)          552080     (1088)
    M  DpSlockTableSize: max/headSize/ftSize/fiSize/tableSize=0/0/0/0/0
    M  DpShMCreate: sizeof(slock_adm)          0     (104)
    M  DpFileTableSize: max/headSize/ftSize/tableSize=0/0/0/0
    M  DpShMCreate: sizeof(file_adm)          0     (72)
    M  DpShMCreate: sizeof(vmc_adm)          0     (1864)
    M  DpShMCreate: sizeof(wall_adm)          (41664/36752/64/192)
    M  DpShMCreate: sizeof(gw_adm)     48
    M  DpShMCreate: SHM_DP_ADM_KEY          (addr: 000000000B2C0050, size: 6607136)
    M  DpShMCreate: allocated sys_adm at 000000000B2C0050
    M  DpShMCreate: allocated wp_adm at 000000000B2C2270
    M  DpShMCreate: allocated tm_adm_list at 000000000B2C7B70
    M  DpShMCreate: allocated tm_adm at 000000000B2C7BD0
    M  DpShMCreate: allocated wp_ca_adm at 000000000B86B450
    M  DpShMCreate: allocated appc_ca_adm at 000000000B871250
    M  DpShMCreate: allocated comm_adm at 000000000B873190
    M  DpShMCreate: system runs without slock table
    M  DpShMCreate: system runs without file table
    M  DpShMCreate: allocated vmc_adm_list at 000000000B8F9E20
    M  DpShMCreate: allocated gw_adm at 000000000B8F9EA0
    M  DpShMCreate: system runs without vmc_adm
    M  DpShMCreate: allocated ca_info at 000000000B8F9ED0
    M  DpShMCreate: allocated wall_adm at 000000000B8F9EE0

    M Mon May 16 23:57:32 2011
    M  rdisp/queue_size_check_value :  -> off
    M  ThTaskStatus: rdisp/reset_online_during_debug 0
    X  EmInit: MmSetImplementation( 2 ).
    X  MM global diagnostic options set: 0
    X  <ES> client 0 initializing ....
    X  Using implementation view
    X  <EsNT> Using memory model view.
    M  <EsNT> Memory Reset disabled as NT default
    X  ES initialized.
    M  ThInit: running on host sirillium1

    M Mon May 16 23:57:33 2011
    M  calling db_connect ...

    C  DBSDBSLIB : version 700.08, patch 0.024 (Make PL 0.32)
    C  MAXDB shared library (dbsdbslib) patchlevels (last 10)
    C    (0.024) Default value for max. input variables is 2000 (note 655018)
    C    (0.024) Profile parameter to define max. input variables (note 655018)
    C    (0.024) Switch SQLMODE after CREATE INDEX SERIAL (note 1267841)
    C    (0.024) Input parameters for SQL statements increased (note 655018)
    C    (0.018) Create index serial for MaxDB 7.6 (note 1267841)
    C    (0.018) More trace in case of packed to string conversion error (note 1262799)
    C    (0.016) R3trans export aborts with signal 6 (note 1262245)
    C    (0.009) IA64 alignment errors (note 1245982)
    C    (0.007) Support DB-Type 'SAP DB' by UPDSTAT (note 1225668)


    C  Loading SQLDBC client runtime ...
    C  SQLDBC SDK Version : SQLDBC.H  7.6.0    BUILD 007-123-091-175
    C  SQLDBC Library Version : libSQLDBC 7.6.5    BUILD 015-123-202-938
    C  SQLDBC client runtime is MaxDB 7.6.5.015 CL 202938
    C  SQLDBC supports new DECIMAL interface : 0
    C  SQLDBC supports VARIABLE INPUT data   : 1
    C  SQLDBC supports keepAlive indicator   : 0
    C  INFO : SQLOPT= -I 0 -t 0 -S SAPR3
    C  Try to connect (DEFAULT) on connection 0 ...
    C  *** ERROR => Connect to database failed, rc = -10709 (Connection failed (RTE:Database name is missing))
    [dbsdbsql.cpp 137]
    B  ***LOG BV3=> severe db error -10709    ; work process is stopped [dbsh#2 @ 1203] [dbsh    1203 ]
    B  ***LOG BY2=> sql error -10709 performing CON [dblink#3 @ 431] [dblink  0431 ]
    B  ***LOG BY0=> Connection failed (RTE:Database name is missing) [dblink#3 @ 431] [dblink  0431 ]
    M  ***LOG R19=> ThInit, db_connect ( DB-Connect 000256) [thxxhead.c   1449]
    M  in_ThErrHandle: 1
    M  *** ERROR => ThInit: db_connect (step 1, th_errno 13, action 3, level 1) [thxxhead.c   10563]

    M  Info for wp 0

    M    pid = 212
    M    severity = 0
    M    status = 0
    M    stat = WP_RUN
    M    waiting_for = NO_WAITING
    M    reqtype = DP_RQ_DIAWP
    M    act_reqtype = NO_REQTYPE
    M    rq_info = 0
    M    tid = -1
    M    mode = 255
    M    len = -1
    M    rq_id = 65535
    M    rq_source =
    M    last_tid = 0
    M    last_mode = 0
    M    semaphore = 0
    M    act_cs_count = 0
    M    csTrack = 0
    M    csTrackRwExcl = 0
    M    csTrackRwShrd = 0
    M    mode_cleaned_counter = 0
    M    control_flag = 0
    M    int_checked_resource(RFC) = 0
    M    ext_checked_resource(RFC) = 0
    M    int_checked_resource(HTTP) = 0
    M    ext_checked_resource(HTTP) = 0
    M    report = >                                        <
    M    action = 0
    M    tab_name = >                              <
    M    attachedVm = no VM

    M  *****************************************************************************
    M  *
    M  *  LOCATION    SAP-Server sirillium1_SED_00 on host sirillium1 (wp 0)
    M  *  ERROR       ThInit: db_connect
    M  *
    M  *  TIME        Mon May 16 23:57:33 2011
    M  *  RELEASE     701
    M  *  COMPONENT   Taskhandler
    M  *  VERSION     1
    M  *  RC          13
    M  *  MODULE      thxxhead.c
    M  *  LINE        10783
    M  *  COUNTER     1
    M  *
    M  *****************************************************************************

    M  PfStatDisconnect: disconnect statistics
    M  Entering TH_CALLHOOKS
    M  ThCallHooks: call hook >BtcCallLgCl< for event BEFORE_DUMP
    M  ThCallHooks: call hook >ThrSaveSPAFields< for event BEFORE_DUMP
    M  *** ERROR => ThrSaveSPAFields: no valid thr_wpadm [thxxrun1.c   723]
    M  *** ERROR => ThCallHooks: event handler ThrSaveSPAFields for event BEFORE_DUMP failed [thxxtool3.c  261]
    M  Entering ThSetStatError
    M  ThIErrHandle: do not call ThrCoreInfo (no_core_info=0, in_dynp_env=0)
    M  Entering ThReadDetachMode
    M  call ThrShutDown (1)...
    M  ***LOG Q02=> wp_halt, WPStop (Workproc 0 212) [dpnttool.c   334]
    We check several entries on this SDN site, and look for a lot of notes on the marketplace, and they always are related to default user in xuser files, but our xuser list output is ok. We have a DEFAULT connection to SAPSID user, a DBM connection to CONTROL user and a USERDBA connection.
    XUSER Entry  1
    Key         :DEFAULT          
    Username    :SAPSID                                                         
    UsernameUCS2:S.A.P.S.E.D. . . . . . . . . . . . . . . . . . . . . . . . . . .
    Password    :?????????
    PasswordUCS2:?????????
    Dbname      :SID              
    Nodename    :server1                                                     
    Sqlmode     :SAPR3  
    Cachelimit  :-1
    Timeout    
    Isolation  
    Charset     :<unspecified>    
    XUSER Entry  2
    Key         :c                
    Username    :CONTROL                                                        
    UsernameUCS2:C.O.N.T.R.O.L. . . . . . . . . . . . . . . . . . . . . . . . . .
    Password    :?????????
    PasswordUCS2:?????????
    Dbname      :SID              
    Nodename    :server1                                                     
    Sqlmode     :INTERNAL
    Cachelimit  :-1
    Timeout     :-1
    Isolation   :-1
    Charset     :<unspecified>    
    XUSER Entry  3
    Key         :c_J2EE           
    Username    :CONTROL                                                        
    UsernameUCS2:C.O.N.T.R.O.L. . . . . . . . . . . . . . . . . . . . . . . . . .
    Password    :?????????
    PasswordUCS2:?????????
    Dbname      :SID              
    Nodename    :server1                                                     
    Sqlmode     :SAPR3  
    Cachelimit  :-1
    Timeout    
    Isolation  
    Charset     :<unspecified>    
    XUSER Entry  4
    Key         :w                
    Username    :SUPERDBA                                                       
    UsernameUCS2:S.U.P.E.R.D.B.A. . . . . . . . . . . . . . . . . . . . . . . . .
    Password    :?????????
    PasswordUCS2:?????????
    Dbname      :SID              
    Nodename    :server1                                                     
    Sqlmode     :INTERNAL
    Cachelimit  :-1
    Timeout     :-1
    Isolation   :-1
    Charset     :<unspecified>    
    Any idea? we are out of ideas at this moment.
    Regards
    Edited by: Gustavo Goicochea on May 17, 2011 6:37 PM

    Natalia, this system was not resored nor copied, it was up and running before kernel update. We did some of the tests you said and someothers, here are some outputs.
    We update kernel to release 142
    R3trans -d and -x exit with (all with user SIDADM)
    SVERS table does exist and belongs to SAPSID
    dbmcli on SID>sql_execute select * from domain.tables where tablename='SVERS'
    OK
    END
    'SAPSID';'SAPSID';'SVERS';'';'TABLE';'TABLE';'20100406';'00054637';'20100406';'00054637';'20100406';'00054638';'NO';(null);20000;(null);x'0000000000004842';'NO';'NO';'YES';'NO';(null)
    Why it still says that SVERS table does not exist and SQL error 942?
    C  Now I'm connected to SAP DB
    C  00: server1-SID, since=20110518015619, ABAP= <unknown> (0)
    B  Connection 0 opened (DBSL handle 0)
    C  *** ERROR =>   prepare() of C_0000, rc=1, rcSQL=-942 (POS(28) Unknown table name:SVERS) [
    dbsdbsql.cpp 1604]
    C  *** ERROR => SQL PREPARE on connection 0, rc=-942 (POS(28) Unknown table name:SVERS) [dbslsdb.cpp  7253]
    C sc_p=000000000CFAECC0,no=0,idc_p=0000000000000000,con=0,act=0,slen=34,smax=256,#vars=0,stmt=0000000002EA0AF0,table=SVERS                        
    C  SELECT VERSION INTO ? FROM SVERS  ;
    B  ***LOG BZA=> table SVERS      does not exist on database            [dblink#4 @ 1301] [dblink  1301 ]
    M  ***LOG R19=> ThInit, db_connect ( DB-Connect 004096) [thxxhead.c   1515]
    M  in_ThErrHandle: 1
    M  *** ERROR => ThInit: db_connect (step 1, th_errno 13, action 3, level 1) [thxxhead.c   10824]

    Users seem to be ok
    dbmcli on SID>sql_execute SELECT username, usermode FROM users
    OK
    END
    'CONTROL';'ADMIN'
    'SUPERDBA';'SYSDBA'
    'SAPSID';'DBA'
    'SAPR3';'DBA'
    User SAPR3 does not have anything on database
    dbmcli on SID>sql_execute select * from domain.tables where owner='SAPR3'
    ERR
    -24988,ERR_SQL: SQL error
    100,Row not found
    Any idea?
    regards

  • How to read the RD Connect Broker DataBase!!!!

    The msdn say there is a RD Connect Broker Data Base , it store the session information,but i dont know where is it and how to read it !
    Thank you !!!!

    Hi,
    You can use the vbs script below to dump the contents of the RD Connection Broker database.
    With credits to the authors of the Windows Server 2008 R2 RDS Resource Kit for putting it in there!
    ' Copyright (c) 2004-2005 Microsoft Corporation
    ' WMI Script - SDDatabaseDump.vbs
    ' Author     - GopiV
    ' This script dumps the contents (clusters and associated sessions)
    ' of the Session Directory database
    ' USAGE: Cscript.exe SDDatabaseDump.vbs <SBservername> <Administrator> <Password>
    const TAB = "    "
    const LINESEPARATOR = "------------------------------------------------"
    ON ERROR RESUME NEXT
    '* Function blnConnect()
    '* Purpose: Connects to machine strServer.
    '* Input:   strServer       a machine name
    '*          strNameSpace    a namespace
    '*          strUserName     name of the current user
    '*          strPassword     password of the current user
    '* Output:  objService is returned  as a service object.
    Function blnConnect(objService, strServer, strNameSpace, strUserName, strPassword)
        ON ERROR RESUME NEXT
        Dim objLocator
        blnConnect = True     'There is no error.
        ' Create Locator object to connect to remote CIM object manager
        Set objLocator = CreateObject("WbemScripting.SWbemLocator")
        if Err.Number then
            Wscript.Echo "Error 0x" & CStr(Hex(Err.Number)) & " occurred in creating a locator object."
            if Err.Description <> "" then
                Wscript.Echo "Error description: " & Err.Description & "."
            end if
            Err.Clear
            blnConnect = False     'An error occurred
            Exit Function
        end if
        ' Connect to the namespace which is either local or remote
        Set objService = objLocator.ConnectServer (strServer, strNameSpace, strUserName, strPassword)
     if Err.Number then
            Wscript.Echo "Error 0x" & CStr(Hex(Err.Number)) & " occurred in connecting to server " _
                & strServer & "."
            if Err.Description <> "" then
                Wscript.Echo "Error description: " & Err.Description & "."
            end if
            Err.Clear
            blnConnect = False     'An error occurred
        end if
        objService.Security_.impersonationlevel = 3
        if Err.Number then
            Wscript.Echo "Error 0x" & CStr(Hex(Err.Number)) & " occurred in setting impersonation level " _
                & strServer & "."
            if Err.Description <> "" then
                Wscript.Echo "Error description: " & Err.Description & "."
            end if
            Err.Clear
            blnConnect = False     'An error occurred
        end if
    end Function 
    ' Start of script
    if Wscript.arguments.count<3 then
       Wscript.echo "Script can't run without 3 arguments: ServerName Domain\UserName Password "
       Wscript.quit
    end if
    Dim strServer, strUserName, strPassword
    Dim objService, blnResult
    ' Extract the command line arguments
    strServer=Wscript.arguments.Item(0)
    strUserName=Wscript.arguments.Item(1)
    strPassword=Wscript.arguments.Item(2)
    ' Connect to the WMI service on the SD Server machine
    blnResult = blnConnect( objService, strServer, "root/cimv2", strUserName, strPassword )
    if not blnResult then
       Wscript.echo "Can not connect to the server " & strServer & " with the given credentials."
       WScript.Quit
    end if
    Set clusterEnumerator = objService.InstancesOf ("Win32_SessionDirectoryCluster")
    if Err.Number then
        Wscript.Echo "Error 0x" & CStr(Hex(Err.Number)) & " occurred"
    end if
    if clusterEnumerator.Count = 0 then
        Wscript.Echo "No clusters found in Session Directory database on " & strServer & "."
        Wscript.Echo
        Wscript.Quit
    end if
    for each clusterObj in clusterEnumerator
        WScript.Echo LINESEPARATOR
        WScript.Echo "ClusterName = " & clusterObj.ClusterName
        WScript.Echo "NumberOfServers = " & clusterObj.NumberOfServers 
        WScript.Echo "SingleSessionMode = " & clusterObj.SingleSessionMode
        Wscript.Echo
        set serverEnumerator = objService.ExecQuery("Select * from Win32_SessionDirectoryServer where ClusterName = '" & clusterObj.ClusterName & "'")
        if Err.Number then
           Wscript.Echo "Error 0x" & CStr(Hex(Err.Number)) & " occurred"
        end if
        if serverEnumerator.Count = 0 then
             Wscript.Echo "Error : No servers in cluster " & clusterObj.ClusterName
             Wscript.Echo
        else
             ' Enumerate the servers in this cluster
             for each serverObj in serverEnumerator
                WScript.Echo TAB & "SERVER :"
                WScript.Echo TAB & "ServerName = " & serverObj.ServerName & " ServerSingleSessionMode = " & serverObj.SingleSessionMode & " LoadIndicator = " & serverObj.LoadIndicator
    '            WScript.Echo TAB & "ServerIP = " & serverObj.ServerIPAddress
      '  WScript.Echo TAB & "ServerWeight = " & serverObj.ServerWeight
                set sessionEnumerator = objService.ExecQuery("Select * from Win32_SessionDirectorySession where ServerName = '" & serverObj.ServerName  & "'")
                if Err.Number then
                   Wscript.Echo "Error 0x" & CStr(Hex(Err.Number)) & " occurred"
                end if  
                if sessionEnumerator.Count = 0 then
                   WScript.Echo
                   WScript.Echo TAB & "No sessions on server " & serverObj.ServerName
                   WScript.Echo
                else
                   WScript.Echo TAB & "NumberOfSessions = " & sessionEnumerator.Count
                   Wscript.Echo
                   ' Enumerate the sessions on this server
                   for each sessionObj in sessionEnumerator
                      WScript.Echo TAB & TAB & "SESSION :"
                      WScript.Echo TAB & TAB & "UserName= " & sessionObj.DomainName & "\" & sessionObj.UserName & TAB & "ApplicationType= " & sessionObj.ApplicationType
    & TAB & "SessionState= " & sessionObj.SessionState
                      WScript.Echo TAB & TAB & "CreateTime= " & sessionObj.CreateTime & TAB & "DisconnectTime= " & sessionObj.DisconnectTime
    '                  WScript.Echo TAB & TAB & "ServerName= " & sessionObj.ServerName
    '                  WScript.Echo TAB & TAB & "SessionID= " & sessionObj.SessionID
    '                  WScript.Echo TAB & TAB & "ServerIP= " & sessionObj.ServerIPAddress
    '                  WScript.Echo TAB & TAB & "TSProtocol= " & sessionObj.TSProtocol 
     '                 WScript.Echo TAB & TAB & "ResolutionWidth= " & sessionObj.ResolutionWidth
      '               WScript.Echo TAB & TAB & "ResolutionHeight= " & sessionObj.ResolutionHeight
       '             WScript.Echo TAB & TAB & "ColorDepth= " & sessionObj.ColorDepth
        '              WScript.Echo
                      WScript.Echo
                   next
                end if   ' End of sessions on this server
             next
        end if  ' End of servers on this cluster
    next
    Wscript.Echo
    Wscript.Echo
    Wscript.Echo "Dump of SD database on " & strServer & " complete."
    Kind regards,
    Freek Berson
    http://www.microsoftplatform.blogspot.com
    Wortell company website

  • Sample code for connect to database

    Hi
    like to know if there is any sample code for me to follow through to connect to database using ODBC.
    I am currently writing a program in visual c++.
    like to know how to connect database to store image in the database
    using visual c++ code.....
    hope that is not too difficult.

    in JSTL pratical guide for JSP programmers by Sue Spielman
    <sql:setDataSource var="datasource"
    driver="org.gjt.mm.mysql.driver"
    url="jdbc:mysql://localhost/db"
    user="guest"
    password="guest" />
    <sql:query datasource="${datasource}...
    <html>
    <head>
    <title>
    Display Results
    </title>
    </head>
    <body>
    <c:catch var="sqlError">
    <sql:query var="bookList" dataSource="${datasource}">
         SELECT * FROM books WHERE title LIKE 'J%' ORDER BY author
    </sql:query>
    </c:catch>
    <c:if test="${not empty sqlError}" >
    Make sure you have already run the databaseinit.jsp file
    </c:if>
    <h2>Listing all books that start with a 'J', ordered by author</h2>
    <br>
    <table>
    <th>Title</th>
    <th>Author</th>
    <c:forEach var="book" items="${bookList.rows}">
         <tr>
              <td><c:out value="${book.title}" /></td>
              <td><c:out value="${book.author}" /></td>
         </tr>
    </c:forEach>
    </table>
    </table>
    <h2>Show using choose/when/otherwise conditional to display results</h2>
    <table>
    <tr><th>Title</th></tr>
    <c:forEach var="book" varStatus="current" items="${bookList.rows}">
    <tr>
    <c:choose>
         <c:when test="${current.first}" >
              <td><font color="#0000FF"><c:out value="${book.title}"/></font></td>
         </c:when>
         <c:when test="${current.count % 2 == 1 }" >
              <td><font color="#FF0000"><c:out value="${book.title}"/></font></td>
         </c:when>
         <c:otherwise>
              <td><c:out value="${book.title}"/></td>
         </c:otherwise>
    </c:choose>
    </tr>
    </c:forEach>
    </table>
    </body>
    </html>

  • Unable connect oracle database problem

    Hi ,
    I ahve installed oracle 11g on windows 7 machine.It is working fine intially after some days when ai m connecting it is giving the below error.
    ora-01033 oracle initialization or shutdown in progress.
    After this I ahve done the below steps and corrosponding results.
    1.shutdown abort
    oracle instance shutdown
    2.startup nomount
    oracle instance started
    below some statitics like total system global area..
    3.alter database mount
    database altered.
    4.alter database open
    database altered.
    after these steps also still i am getting the problem .Please help me to resolve the problem.

    925197 wrote:
    This time the following error came.
    SQL> startup nomount;
    ORA-01081: cannot start already-running ORACLE - shut it down first
    SQL> shutdown abort
    ORACLE instance shut down.
    SQL> startup nomount;
    ORACLE instance started.
    Total System Global Area 3373858816 bytes
    Fixed Size 2257864 bytes
    Variable Size 2348813368 bytes
    Database Buffers 1006632960 bytes
    Redo Buffers 16154624 bytes
    SQL> alter database mount;
    Database altered.
    SQL> alter database open;
    alter database open
    ERROR at line 1:
    ORA-00333: redo log read error block 724 count 7470When you aborted database, may be redo is corrupted.
    try : alter database recover database until cancel;
    alter database open resetlogs; Regards
    Mahir

  • RCU-6130:Action failed.RCU-6131:Error while trying to connect to database

    Hi,
    Iam facing issue while installing RCU in UBUNTU, its unable to create MDS schema showing "RCU-6130:Action failed.RCU-6131:Error while trying to connect to database" error.
    Any solutions welcome plz

    2013-03-20 17:53:17.450 rcu:Extracting Statement from File Name: '/obiapps/RCU/rcuHome/rcu/integration//mds/sql/mds_user.sql'Line Number: 30
    2013-03-20 17:53:17.450 rcu:Extracted SQL Statement: [CREATE USER &&1 IDENTIFIED BY &&2 DEFAULT TABLESPACE &&3 TEMPORARY TABLESPACE &&4]
    2013-03-20 17:53:17.450 rcu:Statement Type: 'DDL Statement'
    JDBC SQLException - ErrorCode: 1920SQLState:42000 Message: ORA-01920: user name 'DEV_MDS' conflicts with another user or role name
    JDBC SQLException handled by error handler
    2013-03-20 17:53:17.475 rcu:Extracting Statement from File Name: '/obiapps/RCU/rcuHome/rcu/integration//mds/sql/mds_user.sql'Line Number: 32
    2013-03-20 17:53:17.475 rcu:Extracted SQL Statement: [GRANT connect TO &&1]
    2013-03-20 17:53:17.475 rcu:Statement Type: 'DDL Statement'
    2013-03-20 17:53:17.542 rcu:Extracting Statement from File Name: '/obiapps/RCU/rcuHome/rcu/integration//mds/sql/mds_user.sql'Line Number: 33
    2013-03-20 17:53:17.543 rcu:Extracted SQL Statement: [GRANT create type TO &&1]
    2013-03-20 17:53:17.543 rcu:Statement Type: 'DDL Statement'
    2013-03-20 17:53:17.559 rcu:Extracting Statement from File Name: '/obiapps/RCU/rcuHome/rcu/integration//mds/sql/mds_user.sql'Line Number: 34
    2013-03-20 17:53:17.559 rcu:Extracted SQL Statement: [GRANT create procedure TO &&1]
    2013-03-20 17:53:17.559 rcu:Statement Type: 'DDL Statement'
    2013-03-20 17:53:17.576 rcu:Extracting Statement from File Name: '/obiapps/RCU/rcuHome/rcu/integration//mds/sql/mds_user.sql'Line Number: 35
    2013-03-20 17:53:17.576 rcu:Extracted SQL Statement: [GRANT create table TO &&1]
    2013-03-20 17:53:17.576 rcu:Statement Type: 'DDL Statement'
    2013-03-20 17:53:17.592 rcu:Extracting Statement from File Name: '/obiapps/RCU/rcuHome/rcu/integration//mds/sql/mds_user.sql'Line Number: 36
    2013-03-20 17:53:17.593 rcu:Extracted SQL Statement: [GRANT create sequence TO &&1]
    2013-03-20 17:53:17.593 rcu:Statement Type: 'DDL Statement'
    2013-03-20 17:53:17.609 rcu:Extracting Statement from File Name: '/obiapps/RCU/rcuHome/rcu/integration//mds/sql/mds_user.sql'Line Number: 39
    2013-03-20 17:53:17.609 rcu:Extracted SQL Statement: [ALTER USER &&1 QUOTA unlimited ON &&3]
    2013-03-20 17:53:17.610 rcu:Statement Type: 'DDL Statement'
    2013-03-20 17:53:17.634 rcu:Extracting Statement from File Name: '/obiapps/RCU/rcuHome/rcu/integration//mds/sql/mds_user.sql'Line Number: 40
    2013-03-20 17:53:17.635 rcu:Extracted SQL Statement: [DECLARE
    cnt NUMBER;
    package_not_found EXCEPTION;
    PRAGMA EXCEPTION_INIT(package_not_found, -00942);
    insufficient_privs EXCEPTION;
    PRAGMA EXCEPTION_INIT(insufficient_privs, -01031);
    BEGIN
    cnt := 0;
    SELECT count(*) INTO cnt FROM dba_tab_privs WHERE grantee = 'PUBLIC'
    AND owner='SYS' AND table_name='DBMS_OUTPUT'
    AND privilege='EXECUTE';
    IF (cnt = 0) THEN
    -- Grant MDS user execute on dbms_output only if PUBLIC
    -- doesn't have the privilege.
    EXECUTE IMMEDIATE 'GRANT execute ON dbms_output TO &&1';
    END IF;
    cnt := 0;
    SELECT count(*) INTO cnt FROM dba_tab_privs WHERE grantee = 'PUBLIC'
    AND owner='SYS' AND table_name='DBMS_LOB'
    AND privilege='EXECUTE';
    IF (cnt = 0) THEN
    -- Grant MDS user execute on dbms_lob only if PUBLIC
    -- doesn't have the privilege.
    EXECUTE IMMEDIATE 'GRANT execute ON dbms_lob TO &&1';
    END IF;
    EXCEPTION
    -- If the user doesn't have privilege to access dbms_* package,
    -- database will report that the package cannot be found. RCU
    -- even doesn't throw the exception to the user, since ORA-00942
    -- is an ignored error defined in its global configuration xml
    -- file.
    WHEN package_not_found THEN
    RAISE insufficient_privs;
    WHEN OTHERS THEN
    RAISE;
    END;
    2013-03-20 17:53:17.635 rcu:Statement Type: 'BEGIN/END Anonymous Block'
    2013-03-20 17:53:17.694 rcu:Extracting Statement from File Name: '/obiapps/RCU/rcuHome/rcu/integration//mds/sql/cremds-rcu.sql'Line Number: 27
    2013-03-20 17:53:17.694 rcu:Extracting Statement from File Name: '/obiapps/RCU/rcuHome/rcu/integration//mds/sql/cremds-rcu.sql'Line Number: 28
    2013-03-20 17:53:17.694 rcu:Extracted SQL Statement: [SET ECHO ON]
    2013-03-20 17:53:17.694 rcu:Skipping Unsupported Statement
    2013-03-20 17:53:17.694 rcu:Extracting Statement from File Name: '/obiapps/RCU/rcuHome/rcu/integration//mds/sql/cremds-rcu.sql'Line Number: 29
    2013-03-20 17:53:17.695 rcu:Extracted SQL Statement: [SET FEEDBACK 1]
    2013-03-20 17:53:17.695 rcu:Skipping Unsupported Statement
    2013-03-20 17:53:17.695 rcu:Extracting Statement from File Name: '/obiapps/RCU/rcuHome/rcu/integration//mds/sql/cremds-rcu.sql'Line Number: 30
    2013-03-20 17:53:17.695 rcu:Extracted SQL Statement: [SET NUMWIDTH 10]
    2013-03-20 17:53:17.695 rcu:Skipping Unsupported Statement
    2013-03-20 17:53:17.695 rcu:Extracting Statement from File Name: '/obiapps/RCU/rcuHome/rcu/integration//mds/sql/cremds-rcu.sql'Line Number: 31
    2013-03-20 17:53:17.695 rcu:Extracted SQL Statement: [SET LINESIZE 80]
    2013-03-20 17:53:17.695 rcu:Skipping Unsupported Statement
    2013-03-20 17:53:17.695 rcu:Extracting Statement from File Name: '/obiapps/RCU/rcuHome/rcu/integration//mds/sql/cremds-rcu.sql'Line Number: 32
    2013-03-20 17:53:17.695 rcu:Extracted SQL Statement: [SET TRIMSPOOL ON]
    2013-03-20 17:53:17.695 rcu:Skipping Unsupported Statement
    2013-03-20 17:53:17.696 rcu:Extracting Statement from File Name: '/obiapps/RCU/rcuHome/rcu/integration//mds/sql/cremds-rcu.sql'Line Number: 33
    2013-03-20 17:53:17.696 rcu:Extracted SQL Statement: [SET TAB OFF]
    2013-03-20 17:53:17.696 rcu:Skipping Unsupported Statement
    2013-03-20 17:53:17.696 rcu:Extracting Statement from File Name: '/obiapps/RCU/rcuHome/rcu/integration//mds/sql/cremds-rcu.sql'Line Number: 34
    2013-03-20 17:53:17.696 rcu:Extracted SQL Statement: [SET PAGESIZE 100]
    2013-03-20 17:53:17.696 rcu:Skipping Unsupported Statement
    2013-03-20 17:53:17.696 rcu:Extracting Statement from File Name: '/obiapps/RCU/rcuHome/rcu/integration//mds/sql/cremds-rcu.sql'Line Number: 35
    2013-03-20 17:53:17.696 rcu:Extracted SQL Statement: [ALTER SESSION SET CURRENT_SCHEMA=&&1]
    2013-03-20 17:53:17.696 rcu:Statement Type: 'DDL Statement'
    2013-03-20 17:53:17.712 rcu:Extracting Statement from File Name: '/obiapps/RCU/rcuHome/rcu/integration/mds/sql/cremds.sql'Line Number: 36
    2013-03-20 17:53:17.713 rcu:Extracting Statement from File Name: '/obiapps/RCU/rcuHome/rcu/integration/mds/sql/cremds.sql'Line Number: 37
    2013-03-20 17:53:17.713 rcu:Extracted SQL Statement: [SET ECHO ON]
    2013-03-20 17:53:17.713 rcu:Skipping Unsupported Statement
    2013-03-20 17:53:17.713 rcu:Extracting Statement from File Name: '/obiapps/RCU/rcuHome/rcu/integration/mds/sql/cremds.sql'Line Number: 38
    2013-03-20 17:53:17.713 rcu:Extracted SQL Statement: [SET FEEDBACK 1]
    2013-03-20 17:53:17.713 rcu:Skipping Unsupported Statement
    2013-03-20 17:53:17.713 rcu:Extracting Statement from File Name: '/obiapps/RCU/rcuHome/rcu/integration/mds/sql/cremds.sql'Line Number: 39
    2013-03-20 17:53:17.713 rcu:Extracted SQL Statement: [SET NUMWIDTH 10]
    2013-03-20 17:53:17.713 rcu:Skipping Unsupported Statement
    2013-03-20 17:53:17.714 rcu:Extracting Statement from File Name: '/obiapps/RCU/rcuHome/rcu/integration/mds/sql/cremds.sql'Line Number: 40
    2013-03-20 17:53:17.714 rcu:Extracted SQL Statement: [SET LINESIZE 80]
    2013-03-20 17:53:17.714 rcu:Skipping Unsupported Statement
    2013-03-20 17:53:17.714 rcu:Extracting Statement from File Name: '/obiapps/RCU/rcuHome/rcu/integration/mds/sql/cremds.sql'Line Number: 41
    2013-03-20 17:53:17.714 rcu:Extracted SQL Statement: [SET TRIMSPOOL ON]
    2013-03-20 17:53:17.714 rcu:Skipping Unsupported Statement
    2013-03-20 17:53:17.714 rcu:Extracting Statement from File Name: '/obiapps/RCU/rcuHome/rcu/integration/mds/sql/cremds.sql'Line Number: 42
    2013-03-20 17:53:17.714 rcu:Extracted SQL Statement: [SET TAB OFF]
    2013-03-20 17:53:17.714 rcu:Skipping Unsupported Statement
    2013-03-20 17:53:17.714 rcu:Extracting Statement from File Name: '/obiapps/RCU/rcuHome/rcu/integration/mds/sql/cremds.sql'Line Number: 43
    2013-03-20 17:53:17.715 rcu:Extracted SQL Statement: [SET PAGESIZE 100]
    2013-03-20 17:53:17.715 rcu:Skipping Unsupported Statement
    /obiapps/RCU/rcuHome/rcu/integration/mds/sql/cremdcmtbs.sql (No such file or directory)

  • Code to connect to database in  Webdynpro-- iviews

    Hi All-
    Could you let me know the code to connect to database
    in WebDynPro-->iviews.
    Regards,
    Cris

    Hi,
    Here are the two ways of connecting to a database through coding:
    ////1////
    Class.forName("com.microsoft.jdbc.sqlserver.SQLServerDriver");
              java.sql.Connection conn= java.sql.DriverManager.getConnection("jdbc:microsoft:sqlserver://<IP>:<port>;user=<abc>;password=<xyz>;database=<DB name>");
    ////2////     
    InitialContext initialContext = new InitialContext();
    DataSource dataSource = (DataSource)initialContext.lookup("jdbc/SRI");
    java.sql.Connection conn = dataSource.getConnection();
    Regards
    Srinivasan T

  • How to find the number of users  connected to database from OS level(Linux)

    Hi All,
    Could anyone know , how to find the number of users connected to database without connecting with sql*plus
    is there any command to find it?
    example we have 10 databases in one server, how to find the number of users connected to particular database without connecting to database(v$session)?
    oracle version:- 10g,11g
    Operating System:- OEL4/OEL5/AIX/Solaris
    any help will be appreciated.
    Thanks in advance.
    Thank you.
    Regards,
    Rajesh.

    Excellent.
    Tested, works as long as you set the ORACLE_SID first ( to change databases )
    ps -ef | grep $ORACLE_SID | grep "LOCAL=NO" | awk '{print $2}' | wc -l
    Thanks!
    select OSUSER
        from V$SESSION
    where AUDSID = SYS_CONTEXT('userenv','sessionid')
        and rownum=1;Best Regards
    mseberg

  • I am not able to connect to database in sql developer.how to do?

    I downloaded sqldeveloper 1.5.4.59.40. iam not able to establish connection to database. Can anyone tell me ?

    Have you created a database (or have one you connect to)?
    Have you created the Net Service connections for SQL Developer to use?
    Does SQL Developer have access to this Net Serviice name?
    Have you created the connections from SQL Developer?
    Can you post an error message?
    See
    <br>
    Oracle Database FAQs
    </br>

  • Managed Server can not connect to Database

    I have a WebLogic cluster with three managed Server on 3 different machines.
    ManagedServer_1, ManagedServer_2, ManagedServer_3 (on Machine 3)
    Firstly, everything is ok. But when we changed some configuration on Firewall and make the WebLogic cluster could not connect to database. 3 servers change status from Running to Warning. Then, we undo all the changes to the Firewall configuration. 3 Servers could connect to Database again but still in warning state.
    It is strange that when I tried to restart ManagedServer_3. That server could not be up normally. It went to Admin state and all the datasources and connection pool could not be created. I tried to restart the machine 3 and start the server but it still failed to make server running normally.
    ( I made the test connecting to Database from Machine 3, everything is okie, I can got data from database, port 1521 opened )
    Has anyone got the same problem and how to fix it? Is that the problem with the admin server?

    JDBC DataSources/Connection pools are all at Domain Level. All we do is just target the datasources to AdminServer and Entire cluster (this will take care of all managed servers in the cluster). From Weblogic Console, TEST the data sources for any firewall issues. If this works from console, check from where you are accessing the Console like within the Firewall, that can access the database server. Even though the actual application is deployed only on cluster, still I would recommend targetting the datasources to both AdminServer and Cluster.
    Ravi Jegga

  • Taking too much time (1min) to connect to database

    Hi,
    I have oracle 10.2 and 10g application server.
    Its taking too much time to connect to database through application (on browser). The connection through sqlplus is fine.
    Please share your experience.
    Regards,
    Naseer

    Dear AnaTech,
    i am going to ask not related this question which already you answered i am going to ask you about that how to connect forms6i and Developer 10g with OracleAS.
    i have installed and working Developer Suite 10g Ver. 10.1.2 and also Form Builder 6i. On my other machine i installed and working Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 and also on the database machine i installed Oracle Enterprise Manager 10g Application Server Control 10.1.2.0.2.
    my database conectivity with Developer suite Forms and Reports and also Form6i and Reports6i are working fine. no problem.
    now the 1 question of mine is that when i try to run form6i through run from web i got this error. FRM-99999: error 18121 occured see the release not.
    this and the main question of mine is this that how can i control my OracleAS 10g with forms because basically the functionality of OracleAS is Mid-Tier but i am not utilizing the Mid-tier i am using here Two-tier Envrionment even i installed 3-Tier Environment so tell me how i utilize it with 3-Tier..
    I hope you don't mind that i ask this question here and also if you give me you email then we can discuss this in detail and i can be helpful of your great expertise. i also know and utilize my 3-tier real envrionment.
    Waiting for your great response.
    Regards,
    K.J.J.C

  • MySQL Database Connection (two databases at the same time)

    I have never had to open more than one MySQL database from within the same website before, but I do now.  The website I have is designed where all the content comes from within the main database.  I am building an Inventory system that I want within it's own database, in the event I would ever need to move the application to another server or something, I don't want this data residing in the main database.
    Currently, I open the database connection from within a file called "common.php" that resides in a directory called "lib" that can be accessed from the root directory.  Below is the proposed code that would be placed within the "common.php" file:
    // Define Database Variables
    $dbserver = "127.0.0.1";
    $dbuser  = array('clevelan_user1', 'clevelan_user2');
    $dbpass  = array('P@ssw0rd', 'P@ssw0rd2');
    $dbname  = array('clevelan_database1', 'clevelan_database2');
    // Start Session
    session_start();
    // Connect to Databases
    connectdb($dbserver, $dbuser[0], $dbpass[0], $dbname[0]);
    connectdb2($dbserver, $dbuser[1], $dbpass[1], $dbname[1]);
    // Database 1 Connection
    function connectdb($dbserver, $dbuser, $dbpass, $dbname) {
    // connects to db
      global $connection;
      $connection = @mysql_connect($dbserver, $dbuser, $dbpass) or die ("could not connect to server");
      $db = @mysql_select_db($dbname, $connection) or die ("could not select databsase");
      return $connection;
    // Database 2 Connection
    function connectdb2($dbserver, $dbuser, $dbpass, $dbname) {
    // connects to db
      global $connection2;
      $connection2 = @mysql_connect($dbserver, $dbuser, $dbpass) or die ("could not connect to server");
      $db2 = @mysql_select_db($dbname, $connection2) or die ("could not select databsase");
      return $connection2;
    //End of Code Within the "common.php"
    From within any page of the website, I want to access both connections by placing an include at the top of each page:
    include_once("lib/common.php");
    Currently, when I run the code above, any page within the website (the home page) provides error messages with regards to database connectivity (the pages are looking for there content from within the second database.  It's as if the second database is the only database seen by the website.
    I need help figuring out how I can have two MySQL databases open at the same time (the second database will only be open for short periods of time and then closed).  But the main database is always open.

    Create one project using one copy of the exact tables.
    create 2 different sessions.xml files each pointing to the same project. Set the login information in the sessions.xml files.
    That should work fine.
    Peter

Maybe you are looking for