Add database SID to window title

Is there a way to append the database SID to the webformsTitle in the formsweb.cfg? I would like to use the same formsweb.cfg file for both test and prod, but be able to see which database I am connected to on the title bar.

Hi,
you could add the database name to the Browser title. Just add
pageTitle= ORCL_Prod
to the application definition of your application in formsweb.cfg. You can set this value in the default section, if it should be the same for all applications.
Alternatively, you can pass the database name as a parameter to Forms and set it there as a window property.
Frank

Similar Messages

  • Add window title to Forms menu

    Hello!
    We haven't specified window title of the screen.
    How can i add the window title to Window menu?
    Thanks!
    Edited by: Aver on Oct 5, 2008 3:36 AM

    This?
    SET_WINDOW_PROPERTY(FORMS_MDI_WINDOW, TITLE, 'xxxxxxxxxxx');
    SET_WINDOW_PROPERTY('window_main', TITLE, 'yyyyyyyyyyy'); --change SDI window title                                                                                                                                                                                                                                                                                                                   

  • Add the current time to Openbox window titles?

    I want to add the current time to window titles in openbox.  Is this possible and if so, how would I go about it?  I have googled this to death but can't seem to find an answer.  If someone could even just point me in the right direction it would be appreciated.
    Thanks,
    monstermudder78

    ijanos wrote:Guys this is unix: Make it do whatever YOU want it to do, not what works for someone else.
    Fixed
    ijanos wrote:There are plenty of good clock applications, out there. Many openbox user likes lal, to name one.
    I do have a clock, using conky, but it is covered up whenever an app is maximized.  Yes I do know there are workarounds, and I have used them in the past, but I was looking for a different solution.
    I am not all that good at programming but I will use this opportunity to learn more.  Thanks for all the info that has been given already and I appreciate any more ideas anyone may have.

  • DATABASE ITEM VALUE AS WINDOW TITLE

    Hai Everyone,
    I want my Window title to display customer ID and customer name ,how can i do it.........???????????.
    I tried with SET_WINDOW_PROPERTY(FORMS_MDI_WINDOW,TITLE,'ORDER.CUSTOMER_ID'); in WHEN-NEW-FORM-INSTANCE.It didn't work.
    Kindly help.

    well the problem is here i think:
    SET_WINDOW_PROPERTY(FORMS_MDI_WINDOW,TITLE,'ORDER.CUSTOMER_ID');
    why the item name as a string?!?
    also why copy the value of the item to a variable, and set the title to this variable?!?
    why not simply use the item?!?
    SET_WINDOW_PROPERTY(FORMS_MDI_WINDOW,TITLE,:ORDER.CUSTOMER_ID);
    if you want to use this code in pll's or mmb's you can use name_in built-in:
    SET_WINDOW_PROPERTY(FORMS_MDI_WINDOW,TITLE,name_in('ORDER.CUSTOMER_ID'));
    regards

  • Unable to add database (11g) in Oracle Failsafe (v3.4.2)

    While trying to add Database in Oracle Failsfafe, I am receiving following errors:
    FS-10376: Node1 : Starting configuration of resource DB_SID
    FS-10378: Node1 : Preparing for configuration of resource DB_SID
    FS-10380: Node1 : Configuring virtual server information for resource DB_SID
    FS-10496: Generating the Oracle Net migration plan for DB_SID
    ** ERROR : FS-10094: Failed to retrieve Oracle Net listener (OracleOraDb11g_home1TNSListenerName) information from persistent cluster registry for group Cluster_group
    18 09:15:12 ** ERROR : FS-10784: The Oracle Database resource provider failed to configure the virtual server for resource DB_SID

    Oracle Failsafe version: *3.4.2.3*
    Oracle Databsae version:*11.2.0.3*
    OS Version: Windows Server 2008 64-bit

  • Unable to connect to Oracle database running on Windows machine from linux.

    Hi,
    I'm not able to connect to oracle database running on Windows machine from Linux machine. I'm geting the below mentioned error. I have given below the code I used to connect to database and database propertes.Do I need to use any specific driver?
    Please help me.
    Thanks,
    Sunjyoti
    Code :
    import oracle.jdbc.pool.OracleDataSource;
    import java.sql.Connection;
    import java.util.*;
    import java.sql.*;
    import java.io.*;
    class try2{
    public static void main(String args[]) {
    try {
              System.out.println("hi");
    // Load the properties file to get the connection information
    Properties prop = new Properties();
    prop.load(new FileInputStream("/home/sreejith/EDIReader/Connection.properties"));
    // Create a OracleDataSource instance
    OracleDataSource ods = new OracleDataSource();
    System.out.println("prop is "+prop);
    configureDataSource(ods, prop);
    Connection conn=null;
    // Create a connection object
    conn = ods.getConnection();
         System.out.println("Connection is"+conn);
    // Sets the auto-commit property for the connection to be false.
    conn.setAutoCommit(false);
    } catch (SQLException sqlEx){ // Handle SQL Errors
    System.out.println("In exception "+sqlEx);
    } catch(Exception excep) { // Handle other errors
    System.out.println(" Exception "+ excep.toString());
    private static void configureDataSource(OracleDataSource ods, Properties prop) {
    // Database Host Name
    ods.setServerName(prop.getProperty("HostName"));
    // Set the database SID
    ods.setDatabaseName(prop.getProperty("SID"));
    // Set database port
    ods.setPortNumber( new Integer( prop.getProperty("Port") ).intValue());
    // Set the driver type
    ods.setDriverType ("thin");
    // Sets the user name
    ods.setUser(prop.getProperty("UserName"));
    // Sets the password
    ods.setPassword(prop.getProperty("Password"));
    Connection properties :
    # Your Database Connection details
    HostName = 10.20.3.19
    SID = EDIREAD
    Port = 1521
    UserName = dbuser
    Password = dbuser
    Error I'm getting is
    error while trying to connect with odbc datasource
    [root@iflexpau2217 EDIReader]# java try2
    hi
    prop is {HostName=10.20.3.19, Password=dbuser, UserName=dbuser, SID=EDIREAD, Port=1521}
    In exception java.sql.SQLException: Io exception: The Network Adapter could not establish the connection
    Also I tried to connect with weblogic JDBC driver
    Code is here:
    import java.io.BufferedReader;
    import java.io.ByteArrayInputStream;
    import java.io.File;
    import java.io.FileNotFoundException;
    import java.io.FileReader;
    import java.io.IOException;
    import java.sql.Blob;
    import java.sql.Connection;
    import java.sql.DriverManager;
    import java.sql.PreparedStatement;
    import java.sql.SQLException;
    //import com.entrust.toolkit.util.ByteArray;
    public class trial{
         public static void main(String args[]) throws IOException{
              System.out.println("hi");
              Connection p_conn = null;
              PreparedStatement xml_insert = null;
              try {
         // Load the JDBC driver
                   System.out.println("hi2");
         // String driverName = "oracle.jdbc.driver.OracleDriver";
    String driverName = "weblogic.jdbc.oracle.OracleDriver";
         System.out.println("hi2");
         Class.forName(driverName);
         // Create a connection to the database
         String serverName = "10.20.3.19";
         String portNumber = "1521";
         String sid = "EDIREAD";
         //String url = "jdbc:oracle:thin:@" + serverName + ":" + portNumber + ":" + sid;
    String url = "jdbc:bea:oracle://10.20.3.19:1521";
         String username = "dbuser";
         String password = "dbuser";
    System.out.println("connection is:"+p_conn+"user name is"+username+"password is"+password);
         p_conn = DriverManager.getConnection(url, username, password);
         System.out.println("connection is:"+p_conn+"user name is"+username+"password is"+password);
              xml_insert=p_conn.prepareStatement("insert into PRTB_SUBUNIT (SUBUNT_ID,SUBUNT_SUB_UNIT,SUBUNT_PHYUNT_ID) values (?,?,?)");
              //InputStream in=null;
              File l_file=new File("/home/sreejith/EDIReader/propertyfiles/inputfile/BUG_10802_ES_CSB19_68.txt");
              BufferedReader input =null;
              input=new BufferedReader(new FileReader(l_file));
              String line = null;
              StringBuffer trial=new StringBuffer();
              while (( line = input.readLine()) != null){
                   trial.append(line);
                   trial.append(System.getProperty("line.separator"));
              //InputStream is = new BufferedInputStream(new FileInputStream(l_file));
              System.out.println(trial.toString());
              //Blob b ;
              //byte[] bytes=trial.toString().getBytes();
              //System.out.println("Size-->"+bytes.length);
              xml_insert.setString(1,new String("SpecailChar"));
              //xml_insert.setBinaryStream(2,new ByteArrayInputStream(bytes),15920);
              xml_insert.setString(3,"SpecailChar");
              xml_insert.executeUpdate();
              p_conn.commit();
              } catch (ClassNotFoundException e) {
                   System.out.println("ClassNotFoundException:"+e.getMessage());
              // Could not find the database driver
              } catch (SQLException e) {
                   System.out.println("SQEXCEPTIN:"+e.getMessage());
              // Could not connect to the database
              }catch (FileNotFoundException e) {
                   System.out.println("filenot found:"+e.getMessage());
              // Could not connect to the database
    Error I'm getting is
    error while trying with jdbc:
    SQEXCEPTIN:[BEA][Oracle JDBC Driver]Error establishing socket to host and port: 10.20.3.19:1521. Reason: Connection refused

    Is the Windows firewall active? Have you enabled the port on the firewall, if it is?

  • List all tabs to left side of window

    i want to list all tabs to left side in a window like ctrl+b makes all bookmarks to left side to window . tried 'tile tabs ' add on it is useless .any one suggest me the shortcut or add on.

    The link to the actual plug-in seems to be broken. Any one else see this? The "Add To Firefox" button actually points to the "Hide My Ass IP Checker" Add-on instead of the Tree Style Tab add-on.
    Any idea who to contact to fix this?

  • How do I rename an XE database on a Windows 2003 Server?

    Ok. I'm attempting to rename a freshly installed XE database on a Windows 2003 Server. It looks like there is no getting around the fact that the database gets named "XE" during installation. Because there could potentially be multiple installations of XE in my organization, I thought it'd be a good idea to disambiguate the installations by renaming them to match their function. In this particular case, I'd like to rename the database to "CTXMGMT". It will be a data repository for our Citrix farm administration programs.
    Here is what I've performed thus far:
    1. Installed Oracle 10g XE on one of our Windows 2003 Server, Standard Edition machines.
    2. Verified that the installation was performed correctly by making sure the 'Database Home Page' loads correctly through Internet Explorer, and by performing a few Select statements on the database (i.e. select name from v$database;)
    * * I then began following instructions from this document (http://www.utexas.edu/its/unix/reference/oracledocs/v92/B10501_01/server.920/a96652/ch14.htm#1004735) to rename the database. Note: I'm only trying to change the name of the database, not the ID.
    3. Shutdown the database
    4. Opened the database in MOUNT mode
    5. Ran the NID utility. Here's the actual input/output to/from the NID utility:
    C:\oraclexe\app\oracle\product\10.2.0\server\BIN>nid target=sys/manager@xe DBNAME=CTXMGMT SETNAME=YES
    DBNEWID: Release 10.2.0.1.0 - Production on Mon Jul 10 15:55:10 2006
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    Connected to database XE (DBID=2476560070)
    Connected to server version 10.2.0
    Control Files in database:
    C:\ORACLEXE\ORADATA\XE\CONTROL.DBF
    Change database name of database XE to CTXMGMT? (Y/[N]) => Y
    Proceeding with operation
    Changing database name from XE to CTXMGMT
    Control File C:\ORACLEXE\ORADATA\XE\CONTROL.DBF - modified
    Datafile C:\ORACLEXE\ORADATA\XE\SYSTEM.DBF - wrote new name
    Datafile C:\ORACLEXE\ORADATA\XE\UNDO.DBF - wrote new name
    Datafile C:\ORACLEXE\ORADATA\XE\SYSAUX.DBF - wrote new name
    Datafile C:\ORACLEXE\ORADATA\XE\USERS.DBF - wrote new name
    Datafile C:\ORACLEXE\ORADATA\XE\TEMP.DBF - wrote new name
    Control File C:\ORACLEXE\ORADATA\XE\CONTROL.DBF - wrote new name
    Instance shut down
    Database name changed to CTXMGMT.
    Modify parameter file and generate a new password file before restarting.
    Succesfully changed database name.
    DBNEWID - Completed succesfully.
    6. After running the NID utility from a separate DOS Window, I attempt to shutdown the newly renamed database from the first DOS Window I used in steps 3 & 4 from above (i.e. to shutdown the database and then start it in MOUNT mode) but I receive this error:
    ORA-03113: end-of-file on communication channel
    This is somewhat expected since the SQL*Plus connection in this window probably had "the bottom pulled out from under it" when the database was renamed.
    However at this point I'm unsure about what state the database is in. Is it down? Is it up? Logic would sort of dictate that the database was left in the MOUNT state, which is the state it was in when the database name was changed. However, the only way I'm able to get back in to the database is by doing the following
    a. Opened a new DOS window
    b. entered "set ORACLE_HOME=C:\oraclexe\app\oracle\product\10.2.0\server"
    c. entered "set ORACLE_SID=XE"
    d. entered " sqlplus "/ as sysdba" "
    e. at SQL> prompt, entered "startup"... which produces:
    SQL> startup;
    ORACLE instance started.
    Total System Global Area 285212672 bytes
    Fixed Size 1287016 bytes
    Variable Size 92277912 bytes
    Database Buffers 188743680 bytes
    Redo Buffers 2904064 bytes
    ORA-01103: database name 'CTXMGMT' in control file is not 'XE'
    SQL>
    From here I don't know what to do. According to the ORA-01103 error message, it looks like I need to change the database name in the control file to "CTXMGMT", but I'm not sure how I should go about that. The control file is a binary file, so I can't just open it up with Notepad and type in a new database name.
    I suspect that even once that is done that the listener.ora (and maybe the tnsnames.ora file?) will have to be edited to include the new "CTXMGMT" name, but I'm not sure how exactly those files should look to incorporate the new database name.
    Also, would the names of services have to be changed in Windows as well? (i.e. Would the Windows service named "OracleServiceXE" have to be renamed to "OracleServiceCTXMGMT" ?)
    In short, I really just need to know how to rename an XE database on Windows appropriately. The steps described above represent as far as I've gotten. If I'm going about it incorrectly could someone shed some light on the correct steps to follow? The more detailed the better. Thanks.
    - Gary

    Okay, I've....
    1) Reinstalled XE, to start from scratch
    2) Went in to SQL*Plus, did a "create pfile from spfile;"
    3) Shutdown the database
    4) Started it up in MOUNT mode
    5) Ran NID, to change the database name from 'XE' to 'CTXMGMT'
    6) Shutdown the database again
    7) Edited the pfile to change the database name (i.e. "db_name='CTXMGMT'")
    8) Started up the database
    And that worked! So that's good... but now my question is:
    How do I change the SID for the database? Currently, the instance name for the database is still 'XE'....
    SQL> select instance_name
    2 from v$instance;
    INSTANCE_NAME
    xe
    I'd like it so a connection could be made to the database with the tnsnames.ora file looking like this:
    CTXMGMT =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(Host = rodin)(Port = 1521))
    (CONNECT_DATA = (SID = CTXMGMT))
    Could someone explain how to get the database to this state? Thanks.
    - Gary

  • Need to add a link on Page title bar

    HI,
    Can i know how can i add a link on page title bar.
    When i click on that link, it should open  a page in a separate window.
    Regards,
    Raju

    Hi,
    i am talking about portal only.
    once you login, you can see history, back and forward links on top of page title bar.
    Now i need to add one more link just beside history.
    Can you please give me brief idea on customisation of page title bar.
    Regards,
    Raju

  • Need to Remove the tabs group Title from browser window title

    When I use a saved tab group, which means I named that tab group in FF 5,''' the name of the tab group appears at the top of the browser along with the title of the web page I am viewing'''. Not good, I need to remove that tab group title from the browser window title, so I am only seeing the title of the webpage, and nothing from the tab group. How do I do that?
    thanks
    JSC

    You can add the site to the Pop-up Blocker Exceptions list in Options > Content > Block Pop-up Windows > Exceptions
    *See --> [https://support.mozilla.com/en-US/kb/Pop-up%20blocker#w_pop-up-blocker-settings Pop-up blocker-Pop-up blocker settings]
    '''If this reply solves your problem, please click "Solved It" next to this reply when <u>signed-in</u> to the forum.'''
    Not related to your question, but...
    You need to update some plug-ins:
    *Plug-in check: https://www-trunk.stage.mozilla.com/en-US/plugincheck/
    *Adobe PDF Plug-In For Firefox and Netscape: [https://support.mozilla.com/en-US/kb/Using%20the%20Adobe%20Reader%20plugin%20with%20Firefox#w_installing-and-updating-adobe-reader Installing/Updating Adobe Reader in Firefox]
    *Shockwave Flash (Adobe Flash or Flash): [https://support.mozilla.com/en-US/kb/Managing%20the%20Flash%20plugin#w_updating-flash Updating Flash in Firefox]
    *Next Generation Java Plug-in for Mozilla browsers: [https://support.mozilla.com/en-US/kb/Using%20the%20Java%20plugin%20with%20Firefox#w_installing-or-updating-java Installing or Updating Java in Firefox]

  • Q:  Window Titles for Identically Named Objects and Views

    How does such an application described on
    http://java.sun.com/products/jlf/at/book/Windows8.html#50028
    behave when there are 4 Windows and Window #2 is closed ?
    Will 3 and 4 renumbered to 2 and 3 ? or Do they stay and the next Window opened becomes #2 ?

    Aside from testing it yourself, reading the link,
    you the programmer must add "something" to identify
    each windows...
    How shall I test it ? - I don't think SUN is giving
    SMC away for free ...Don't need SMC, it was used as an example, It could be a text editor with multiple windows pointing to the same file object...
    >
    so following that logic, the next window that gets
    opened will be "5"...
    How do you know ? - Is there a reference
    implementation of a swing program ???
    Best explained in this statement from the link...
    If multiple primary windows show views of the same object, distinguish each of the windows by appending the suffix :n to the object name in the window title
    So lets say that I am using multiple Windows (like JFrame) to display the same object... Then as part of the opening sequence for each window would do a check to see if it is the same object, if so, then it would increment an int like int windowNumber; then use the setTitle("myObjectname" + windowNumber)
    since the int windowNumber increments by one each time a new window opens up displaying the same object, then logically it I have 4 windows open, they would be numbered 1-4 with the next one being 5 regardless of whether the other windows are open or not...
    Unless I wrote some code that upon closing a windows, it re-numbers the window... Which brings us to this question below...
    you would need to program something ( like a method
    ) that renumber your windows...
    Really ?!? - That's why I'm asking: HOW should it be
    renumbered ???Well this would be the fun part...
    each window would have a int variable to indicates is number if its the same object...
    each window object will be kept in a list...
    upon closing a windows, it will check all windows containing the same object who ID number is greater than the window ID number of the closed window and decrement them by one... so if window with ID number 2 gets closed, then window with ID number 3,4,5 6 gets decremented by one making its 2,3,4,5 respectively...
    Which means that you will have to create a method that upon closing a windows with an ID number, call the decrement method that iterates through the list and decrements the ID number...
    psuedo code:
    upon windows close call renumber menthod...
    renumberMethod ( windowList,ID , object)
    for (int i=0; i < windowList.size() -1; i ++){
                if ((windowList.getObject() ==object)&&(windowList[i].getID() > ID){
    windowList[i].decrementID();}
    //... some code...
    decrementID(){
    --IDnumber; // where ID number is an instance variable of the Window object
    setTitle(ObjectName + IDnumber);
    Or something along these lines...
    - MaxxDmg...
    - ' He who never sleeps... '

  • Database not found/Error: ORA-16621: database name for ADD DATABASE must be

    I am new to Data Guard and am trying to set up Data Guard Broker. I had created a configuration file with both my primary and standby databases and at one time I could show both databases. But now I can no longer show the standby database nor can I enable, disable or reinstate it. Here is what I have:
    Primary Database: orcl10g
    Standby Database: 10gSB
    DGMGRL> show configuration
    Configuration
    Name: orcl10g
    Enabled: YES
    Protection Mode: MaxPerformance
    Fast-Start Failover: DISABLED
    Databases:
    orcl10g - Primary database
    10gSB - Physical standby database
    Current status for "orcl10g":
    SUCCESS
    DGMGRL> show database verbose orcl10g
    Database
    Name: orcl10g
    Role: PRIMARY
    Enabled: YES
    Intended State: ONLINE
    Instance(s):
    orcl10g
    Properties:
    InitialConnectIdentifier = 'orcl10g'
    LogXptMode = 'ASYNC'
    Dependency = ''
    DelayMins = '0'
    Binding = 'OPTIONAL'
    MaxFailure = '0'
    MaxConnections = '1'
    ReopenSecs = '300'
    NetTimeout = '180'
    LogShipping = 'ON'
    PreferredApplyInstance = ''
    ApplyInstanceTimeout = '0'
    ApplyParallel = 'AUTO'
    StandbyFileManagement = 'AUTO'
    ArchiveLagTarget = '0'
    LogArchiveMaxProcesses = '30'
    LogArchiveMinSucceedDest = '1'
    DbFileNameConvert = '10gSB, orcl10g'
    LogFileNameConvert = '/oracle/oracle/product/10.2.0/oradata/orcl10g/redo01.log, /oracle/oracle/product/10.2.0/oradata/10gSB/redo01.log, /oracle/oracle/product/10.2.0/oradata/orcl10g/redo02.log, /oracle/oracle/product/10.2.0/oradata/10gSB/redo02.log, /oracle/oracle/product/10.2.0/oradata/orcl10g/redo03.log, /oracle/oracle/product/10.2.0/oradata/10gSB/redo03.log'
    FastStartFailoverTarget = ''
    StatusReport = '(monitor)'
    InconsistentProperties = '(monitor)'
    InconsistentLogXptProps = '(monitor)'
    SendQEntries = '(monitor)'
    LogXptStatus = '(monitor)'
    RecvQEntries = '(monitor)'
    HostName = 'remarkable.mammothnetworks.com'
    SidName = 'orcl10g'
    LocalListenerAddress = '(ADDRESS=(PROTOCOL=tcp)(HOST=remarkable.mammothnetworks.com)(PORT=1521))'
    StandbyArchiveLocation = '/oracle/flash_recovery_area/orcl10g/archivelog'
    AlternateLocation = ''
    LogArchiveTrace = '1024'
    LogArchiveFormat = '%t_%s_%r.arc'
    LatestLog = '(monitor)'
    TopWaitEvents = '(monitor)'
    Current status for "orcl10g":
    SUCCESS
    DGMGRL> show database verbose 10gSB
    Object "10gsb" was not found
    DGMGRL>
    DGMGRL> remove database 10gSB
    Object "10gsb" was not found
    DGMGRL>
    DGMGRL> reinstate database 10gSB
    Object "10gsb" was not found
    DGMGRL>
    DGMGRL> enable database 10gSB
    Object "10gsb" was not found
    DGMGRL>
    DGMGRL> add database '10gSB' as
    connect identifier is 10gSB
    maintained as physical;Error: ORA-16621: database name for ADD DATABASE must be unique
    Failed.
    How can I get Data Guard to see the standby database correctly again?

    Thank you for the constructive feedback. I have been able to make progress on this issue.
    I did check the Data Guard Log files as you suggested. I did not find anything when I checked them before but this time I found the following:
    DG 2011-06-16-17:23:18 0 2 0 RSM detected log transport problem: log transport for database '10gSB' has the following error.
    DG 2011-06-16-17:23:18 0 2 0 RSM0: HEALTH CHECK ERROR: ORA-16737: the redo transport service for standby database "10gSB" has an error
    DG 2011-06-16-17:23:18 0 2 0 NSV1: Failed to connect to remote database 10gSB. Error is ORA-12514
    DG 2011-06-16-17:23:18 0 2 0 RSM0: Failed to connect to remote database 10gSB. Error is ORA-12514
    DG 2011-06-16-17:23:18 0 2 753988034 Operation CTL_GET_STATUS cancelled during phase 2, error = ORA-16778
    DG 2011-06-16-17:23:18 0 2 753988034 Operation CTL_GET_STATUS cancelled during phase 2, error = ORA-16778
    I verified that I am able to connect to both the primary and standby databases via external connections:
    -bash-3.2$ lsnrctl status
    LSNRCTL for Linux: Version 10.2.0.1.0 - Production on 17-JUN-2011 12:41:03
    Copyright (c) 1991, 2005, Oracle. All rights reserved.
    Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
    STATUS of the LISTENER
    Alias LISTENER
    Version TNSLSNR for Linux: Version 10.2.0.1.0 - Production
    Start Date 17-JUN-2011 01:40:30
    Uptime 0 days 11 hr. 0 min. 32 sec
    Trace Level off
    Security ON: Local OS Authentication
    SNMP OFF
    Listener Parameter File /oracle/oracle/product/10.2.0/db_1/network/admin/listener.ora
    Listener Log File /oracle/oracle/product/10.2.0/db_1/network/log/listener.log
    Listening Endpoints Summary...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=remarkable.mammothnetworks.com)(PORT=1521)))
    Services Summary...
    Service "10gSB" has 1 instance(s).
    Instance "10gSB", status READY, has 1 handler(s) for this service...
    Service "10gSB_DGB" has 1 instance(s).
    Instance "10gSB", status READY, has 1 handler(s) for this service...
    Service "10gSB_XPT" has 1 instance(s).
    Instance "10gSB", status READY, has 1 handler(s) for this service...
    Service "PLSExtProc" has 1 instance(s).
    Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
    Service "orcl10g" has 1 instance(s).
    Instance "orcl10g", status READY, has 1 handler(s) for this service...
    Service "orcl10gXDB" has 1 instance(s).
    Instance "orcl10g", status READY, has 1 handler(s) for this service...
    Service "orcl10g_DGB" has 1 instance(s).
    Instance "orcl10g", status READY, has 1 handler(s) for this service...
    Service "orcl10g_XPT" has 1 instance(s).
    Instance "orcl10g", status READY, has 1 handler(s) for this service...
    The command completed successfully
    -bash-3.2$
    -bash-3.2$
    -bash-3.2$ sqlplus system/dbas4ever@orcl10g
    SQL*Plus: Release 10.2.0.1.0 - Production on Fri Jun 17 12:43:41 2011
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bit Production
    With the Partitioning, OLAP and Data Mining options
    SQL> quit
    Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bit Production
    With the Partitioning, OLAP and Data Mining options
    -bash-3.2$ sqlplus system/dbas4ver@10gSB
    SQL*Plus: Release 10.2.0.1.0 - Production on Fri Jun 17 12:43:59 2011
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    ERROR:
    ORA-01033: ORACLE initialization or shutdown in progress <== I think this is normal since the database is in mount mode
    Enter user-name:
    I also checked the listener log file and did see and error associated with a known bug:
    WARNING: Subscription for node down event still pending
    So I added the following to the listener.ora file and bounced the listener:
    SUBSCRIBE_FOR_NODE_DOWN_EVENT_LISTENER=OFF
    That seems to have taken care of the error.
    The following is my listener.ora file:
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = /oracle/oracle/product/10.2.0/db_1)
    (PROGRAM = extproc)
    (SID_DESC = ( GLOBAL_DBNAME = 10gsb_DGMGRL.remarkable.mammothnetworks.com )
    ( SERVICE_NAME = 10gsb.remarkable.mammothnetworks.com )
    ( SID_NAME = 10gsb )
    ( ORACLE_HOME = /oracle/oracle/product/10.2.0/db_1 )
    (SID_DESC = ( GLOBAL_DBNAME = orcl10g_DGMGRL.remarkable.mammothnetworks.com )
    ( SERVICE_NAME = orcl10g.remarkable.mammothnetworks.com )
    ( SID_NAME = orcl10g )
    ( ORACLE_HOME = /oracle/oracle/product/10.2.0/db_1 )
    (SID_DESC = ( GLOBAL_DBNAME = orcl10g.remarkable.mammothnetworks.com )
    ( SERVICE_NAME = orcl10g.remarkable.mammothnetworks.com )
    ( SID_NAME = orcl10g )
    ( ORACLE_HOME = /oracle/oracle/product/10.2.0/db_1 )
    (SID_DESC = ( GLOBAL_DBNAME = 10gsb.remarkable.mammothnetworks.com )
    ( SERVICE_NAME = 10gsb.remarkable.mammothnetworks.com )
    ( SID_NAME = 10gsb )
    ( ORACLE_HOME = /oracle/oracle/product/10.2.0/db_1 )
    SUBSCRIBE_FOR_NODE_DOWN_EVENT_LISTENER=OFF
    I again tried connecting externally to the standby database:
    -bash-3.2$ sqlplus system/dbas4ever@10gSB
    SQL*Plus: Release 10.2.0.1.0 - Production on Fri Jun 17 13:09:00 2011
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    ERROR:
    ORA-01033: ORACLE initialization or shutdown in progress
    Enter user-name:
    and see this in the listener.log file:
    17-JUN-2011 13:10:22 * (CONNECT_DATA=(SERVICE_NAME=10gSB_XPT)(SERVER=dedicated)(CID=(PROGRAM=oracle)(HOST=remarkable.mammothnetworks.com)(USER=oracle))) * (ADDRESS=(PROTOCOL=tcp)(HOST=199.187.124.130)(PORT=11357)) * establish * 10gSB_XPT * 0
    17-JUN-2011 13:10:22 * (CONNECT_DATA=(SERVICE_NAME=10gSB_XPT)(SERVER=dedicated)(CID=(PROGRAM=oracle)(HOST=remarkable.mammothnetworks.com)(USER=oracle))) * (ADDRESS=(PROTOCOL=tcp)(HOST=199.187.124.130)(PORT=11358)) * establish * 10gSB_XPT * 0
    17-JUN-2011 13:10:24 * service_update * 10gSB * 0
    17-JUN-2011 13:10:30 * (CONNECT_DATA=(SID=orcl10g)(CID=(PROGRAM=perl)(HOST=remarkable.mammothnetworks.com)(USER=oracle))) * (ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=25119)) * establish * orcl10g * 0
    17-JUN-2011 13:10:30 * (CONNECT_DATA=(SID=orcl10g)(CID=(PROGRAM=perl)(HOST=remarkable.mammothnetworks.com)(USER=oracle))) * (ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=25120)) * establish * orcl10g * 0
    17-JUN-2011 13:10:30 * (CONNECT_DATA=(SID=orcl10g)(CID=(PROGRAM=emagent)(HOST=localhost.localdomain)(USER=oracle))) * (ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=25121)) * establish * orcl10g * 0
    17-JUN-2011 13:11:22 * (CONNECT_DATA=(SERVICE_NAME=10gSB_XPT)(SERVER=dedicated)(CID=(PROGRAM=oracle)(HOST=remarkable.mammothnetworks.com)(USER=oracle))) * (ADDRESS=(PROTOCOL=tcp)(HOST=199.187.124.130)(PORT=11420)) * establish * 10gSB_XPT * 0
    17-JUN-2011 13:11:22 * (CONNECT_DATA=(SERVICE_NAME=10gSB_XPT)(SERVER=dedicated)(CID=(PROGRAM=oracle)(HOST=remarkable.mammothnetworks.com)(USER=oracle))) * (ADDRESS=(PROTOCOL=tcp)(HOST=199.187.124.130)(PORT=11422)) * establish * 10gSB_XPT * 0
    17-JUN-2011 13:11:24 * service_update * 10gSB * 0
    I tried again to see the database in Data Guard Broker:
    DGMGRL> show database 10gSB
    Object "10gsb" was not found
    however, I then was able to add the database in Data Guard Broker:
    DGMGRL> add database 10gSB
    as connect identifier is 10gSB
    maintained as physical;Database "10gsb" added <== this is progress!!!
    However the configuration shows the following:
    DGMGRL> show database 10gSB
    Database
    Name: 10gsb
    Role: PHYSICAL STANDBY
    Enabled: NO
    Intended State: OFFLINE
    Instance(s):
    10gSB
    Current status for "10gsb":
    DISABLED <=====
    So I tried to enable the database:
    DGMGRL> enable database 10gSB
    Error: ORA-16626: failed to enable specified object
    Failed.
    and I tried to reinstate the database:
    DGMGRL> reinstate database 10gSB
    Reinstating database "10gsb", please wait...
    Error: ORA-16653: failed to reinstate database
    Failed.
    Reinstatement of database "10gsb" failed
    So I checked the configuration and now see two entries for the standby database but with case differences:
    DGMGRL> show configuration
    Configuration
    Name: orcl10g
    Enabled: YES
    Protection Mode: MaxPerformance
    Fast-Start Failover: DISABLED
    Databases:
    orcl10g - Primary database
    10gSB - Physical standby database
    10gsb - Physical standby database (disabled)
    Current status for "orcl10g":
    SUCCESS
    Question: How do I get rid of 10gSB and enable 10gsb?

  • Setting a dynamic urxvt window title

    Hi,
    I'm using urxvt windows for alot of apps and I don't like to have 6 windows in the taskbar that all say "urxvt [Number]").
    That's why I would like to have either the name of the last app started in urxvt or at least a tail output of what's currently in there.
    I understood that with
    printf '\33]2;%s\007' "foo"
    I can set the window title to foo but that was it.
    Does anyone know if/how I can put something dynamic to the console title bar?
    Doesn't have to be urxvt, but would be cool.
    Thanks in advance.
    Last edited by Zoranthus (2007-02-04 14:34:39)

    Following skymt suggestion, I found this script which should make the preexec() and precmd() work in bash too, but I'm too newbie to figure out how the whole works
    #!/bin/bash
    # preexec.bash -- Bash support for ZSH-like 'preexec' and 'precmd' functions.
    # The 'preexec' function is executed before each interactive command is
    # executed, with the interactive command as its argument. The 'precmd'
    # function is executed before each prompt is displayed.
    # To use, in order:
    # 1. source this file
    # 2. define 'preexec' and/or 'precmd' functions (AFTER sourcing this file),
    # 3. as near as possible to the end of your shell setup, run 'preexec_install'
    # to kick everything off.
    # Note: this module requires 2 bash features which you must not otherwise be
    # using: the "DEBUG" trap, and the "PROMPT_COMMAND" variable. preexec_install
    # will override these and if you override one or the other this _will_ break.
    # This is known to support bash3, as well as *mostly* support bash2.05b. It
    # has been tested with the default shells on MacOS X 10.4 "Tiger", Ubuntu 5.10
    # "Breezy Badger", Ubuntu 6.06 "Dapper Drake", and Ubuntu 6.10 "Edgy Eft".
    # This variable describes whether we are currently in "interactive mode";
    # i.e. whether this shell has just executed a prompt and is waiting for user
    # input. It documents whether the current command invoked by the trace hook is
    # run interactively by the user; it's set immediately after the prompt hook,
    # and unset as soon as the trace hook is run.
    preexec_interactive_mode=""
    # Default do-nothing implementation of preexec.
    function preexec () {
    true
    # Default do-nothing implementation of precmd.
    function precmd () {
    true
    # This function is installed as the PROMPT_COMMAND; it is invoked before each
    # interactive prompt display. It sets a variable to indicate that the prompt
    # was just displayed, to allow the DEBUG trap, below, to know that the next
    # command is likely interactive.
    function preexec_invoke_cmd () {
    precmd
    preexec_interactive_mode="yes"
    # This function is installed as the DEBUG trap. It is invoked before each
    # interactive prompt display. Its purpose is to inspect the current
    # environment to attempt to detect if the current command is being invoked
    # interactively, and invoke 'preexec' if so.
    function preexec_invoke_exec () {
    if [[ -n "$COMP_LINE" ]]
    then
    # We're in the middle of a completer. This obviously can't be
    # an interactively issued command.
    return
    fi
    if [[ -z "$preexec_interactive_mode" ]]
    then
    # We're doing something related to displaying the prompt. Let the
    # prompt set the title instead of me.
    return
    else
    # If we're in a subshell, then the prompt won't be re-displayed to put
    # us back into interactive mode, so let's not set the variable back.
    # In other words, if you have a subshell like
    # (sleep 1; sleep 2)
    # You want to see the 'sleep 2' as a set_command_title as well.
    if [[ 0 -eq "$BASH_SUBSHELL" ]]
    then
    preexec_interactive_mode=""
    fi
    fi
    if [[ "preexec_invoke_cmd" == "$BASH_COMMAND" ]]
    then
    # Sadly, there's no cleaner way to detect two prompts being displayed
    # one after another. This makes it important that PROMPT_COMMAND
    # remain set _exactly_ as below in preexec_install. Let's switch back
    # out of interactive mode and not trace any of the commands run in
    # precmd.
    # Given their buggy interaction between BASH_COMMAND and debug traps,
    # versions of bash prior to 3.1 can't detect this at all.
    preexec_interactive_mode=""
    return
    fi
    # In more recent versions of bash, this could be set via the "BASH_COMMAND"
    # variable, but using history here is better in some ways: for example, "ps
    # auxf | less" will show up with both sides of the pipe if we use history,
    # but only as "ps auxf" if not.
    local this_command=`history 1 | sed -e "s/^[ ]*[0-9]*[ ]*//g"`;
    # If none of the previous checks have earlied out of this function, then
    # the command is in fact interactive and we should invoke the user's
    # preexec hook with the running command as an argument.
    preexec "$this_command"
    # Execute this to set up preexec and precmd execution.
    function preexec_install () {
    # *BOTH* of these options need to be set for the DEBUG trap to be invoked
    # in ( ) subshells. This smells like a bug in bash to me. The null stderr
    # redirections are to quiet errors on bash2.05 (i.e. OSX's default shell)
    # where the options can't be set, and it's impossible to inherit the trap
    # into subshells.
    set -o functrace > /dev/null 2>&1
    shopt -s extdebug > /dev/null 2>&1
    # Finally, install the actual traps.
    PROMPT_COMMAND=preexec_invoke_cmd
    trap 'preexec_invoke_exec' DEBUG

  • Add Database To OEM tree

    I recently installed Oracle 9i and made a database with the database configuration asisstant.How do i make that database appear in enterprise manager console. A dialog pops up "add databases to tree". It asks for hostname,sid,port number. I enter those and when i try to connect to the database it saya that it doesn't exist. What to do?
    Thanks!

    You need to have an OEM Repository.
    Than you can select the "Nodes" - "Discover Nodes" - "Next" - Enter your machine's name - "Finish"
    Aron

  • Trying to add database 9i to cluster 11.2.0.1 gives errors

    Hello,
    Versions:
    S.O: Solaris SPARC 64bit
    database: 9.2.0.8
    cluster: 11.2.0.1
    I am trying to add and start a database 9.2.0.8 to a cluster 11.2.0.1.
    The add database works fine: srvctl add database -d orcl -o /u01/app/oracle/product/9.2.0/dbhome_5 -p '/u01/app/oracle/product/9.2.0/dbhome_5/dbs/spfileorcl.ora';
    The add instance also: srvctl add instance -d orcl -i orcl1 -n node1
    But when I try to start the instance with srvctl start instance -d orcl -i oracl1 I get the following errors:
    PRCR-1013 : Failed to start resource ora.orcl.db
    PRCR-1064 : Failed to start resource ora.orc.db on node node1
    CRS-5011: Check of resource "orcl" failed: details at "(:CLSN00007:)" in "/u01/app/11.2.0/grid/log/node1/agent/crsd/oraagent_oracle/oraagent_oracle.log"
    CRS-2674: Start of 'ora.orcl.db' on 'node1' failed
    GIM-00090: OS-dependent operation:open failed with status: 2
    GIM-00091: OS failure message: No such file or directory
    GIM-00092: OS failure occurred at: sskgmsmr_7
    the log says:
    2011-08-20 17:20:34.810: [    AGFW][11] Command: start for resource: ora.orcl.db 1 1 completed with status: SUCCESS
    2011-08-20 17:20:34.811: [    AGFW][7] Executing command: check for resource: ora.orcl.db 1 1
    2011-08-20 17:20:34.811: [ora.orcl.db][7] [check] Gimh::check OH /u01/app/oracle/product/9.2.0/dbhome_5 SID orcl1
    2011-08-20 17:20:34.812: [    AGFW][9] Agent sending reply for: RESOURCE_START[ora.orcl.db 1 1] ID 4098:924247
    2011-08-20 17:20:34.813: [ora.orcl.db][7] [check] GIMH: GIM-00104: Health check failed to connect to instance
    GIM-00090: OS-dependent operation:open failed with status: 2
    GIM-00091: OS failure message: No such file or directory
    GIM-00092: OS failure occurred at: sskgmsmr_7
    2011-08-20 17:20:34.813: [ora.orcl.db][7] [check] (:CLSN00007:)DbAgent::check failed gimh state 0
    2011-08-20 17:20:34.813: [ora.orcl.db][7] [check] Exception type=2 string=CRS-5011: Check of resource "orcl"
    failed: details at "(:CLSN00007:)" in "/u01/app/11.2.0/grid/log/vettel/agent/crsd/oraagent_oracle/oraagent_oracle.log"
    2011-08-20 17:20:34.814: [    AGFW][9] Agent sending reply for: RESOURCE_START[ora.orcl.db 1 1] ID 4098:924247
    2011-08-20 17:20:34.814: [    AGFW][7] check for resource: ora.orcl.db 1 1 completed with status: FAILED
    2011-08-20 17:20:34.815: [    AGFW][9] ora.orcl.db 1 1 state changed from: STARTING to: FAILED
    2011-08-20 17:20:34.815: [    AGFW][7] Executing command: res_attr_modified for resource: ora.orcl.db 1 1
    2011-08-20 17:20:34.815: [    AGFW][9] Agent sending last reply for: RESOURCE_START[ora.orcl.db 1 1] ID 4098:924247
    2011-08-20 17:20:34.816: [ora.orcl.db][7] [res_attr_modified] clsn_agent::modify {
    2011-08-20 17:20:34.816: [ora.orcl.db][7] [res_attr_modified] clsn_agent::modify }
    2011-08-20 17:20:34.816: [    AGFW][7] Command: res_attr_modified for resource: ora.orcl.db 1 1 completed with status: SUCCESS
    2011-08-20 17:20:34.816: [    AGFW][9] config version updated to : 150 for ora.orcl.db 1 1
    2011-08-20 17:20:34.816: [    AGFW][9] Agent sending last reply for: RESOURCE_MODIFY_ATTR[ora.orcl.db 1 1] ID 4355:924252
    2011-08-20 17:20:35.829: [    AGFW][9] Agent received the message: RESOURCE_CLEAN[ora.orcl.db 1 1] ID 4100:924293
    2011-08-20 17:20:35.829: [    AGFW][9] Preparing CLEAN command for: ora.orcl.db 1 1
    2011-08-20 17:20:35.829: [    AGFW][9] ora.orcl.db 1 1 state changed from: FAILED to: CLEANING
    2011-08-20 17:20:35.830: [    AGFW][7] Executing command: clean for resource: ora.orcl.db 1 1
    output from srvctl config database -d orcl -a
    Database unique name: orcl
    Database name:
    Oracle home: /u01/app/oracle/product/9.2.0/dbhome_5
    Oracle user: oracle
    Spfile: /u01/app/oracle/product/9.2.0/dbhome_5/dbs/spfileorcl.ora
    Domain:
    Start options: open
    Stop options: immediate
    Database role: PRIMARY
    Management policy: AUTOMATIC
    Server pools: orcl
    Database instances: orcl1
    Disk Groups:
    Services:
    Database is enabled
    Database is administrator managed
    I tried to find a health check file for this database but none exists.
    Can someone help me out? what file is it trying to find to give this error? "No such file or directory". How can I solve this issue?
    Thank you.
    Edited by: cibernauta on Aug 20, 2011 10:05 PM

    Hello,
    Then why to they say for example here the following:
    The Oracle GSD (Global Service Daemon) process, ora.gsd, is typically offline. You must enable Oracle GSD manually if you plan to use an Oracle 9i Real Application Clusters database on the Oracle Clusterware 11g release 2 (11.2) cluster.
    ???

Maybe you are looking for

  • My cd/dvd drive does not accept any cds/dvds

    I know this has been posted before, but I have tried many methods posted on this site and others, and either I have done them wrong or they haven't worked. I have a three year old macbook pro running 10.6.8. I also have Windows 7 Ultimate running on

  • Creation of new infotype 9001

    am trying to create the new infotype 9001 (PM01) for license but SAP not allowing.. asking access key to proceed further.. wot to do? Shan

  • 6.0 ~ Webpage not functioning as before

    The doppler radar site:  http://www.weatheroffice.gc.ca/radar/index_e.html?id=WHK has an animation feature that we use constantly to track storms heading our way. The animation plays a sequence of frames taken over a period of time. In every version

  • Restore Mail in OS X 10.10.2

    Mail won't open and freezes. How can I r estore Mail in OS X 10.10.2

  • Setting Partition in U400

    Hi everyone, I have just gotten U400. Currently, first bootup: C: 470GB and D: 30GB, which is the Lenovo backup files.  Need help in setting partition in the C:. Is there any ways to add another partition? I have used the Computer Management to set C