How to put database name/server name insted of  SQL

Hi,
I need to put a data base name/server name insted of SQL>, means
if DATABASE NAME is db1, then
db1>. insert into ----
Thanks & Regards,
Venkat

Hi,
Thank u. But I am looking with out my set SQL... Query. Automatically data base name comes at there. Becuase i am loading data into diffrent servers before run the script, for my reference, is it into correct server or not.
When ever i exit it Return to SQL>. I need always at there.

Similar Messages

  • A very simple question: how to obtain the mail server name?

    In our JSP application, at one point an email will be sent to notify one event. Currently, that is done by using the html tag: mailto. To have more control on the email in tems of context format (a bad layout right now) and others. I would like to have it processed at servlet by using the JavaMail API, so that it have a nice format and have the sender's email address right in case email client is not installed in the machine where the browser in. The JavaMail API is straight forward. The question is how to obtain the mail server name, and the sender's email address if there is one?
    Thanks.
    v.

    How to obtain the mail server's name? It's your server, you should know its name. Or if it isn't your server, you should ask the administrator for its name. Point is, you need to decide in advance what server you are going to use and hard-code its name into the program or into a properties file.
    And how to obtain the client's e-mail address? You have to ask the client, probably by putting a box in the HTML and asking them to type it.

  • How to get the report server name in Forms 10g.

    How to get the report server name in Forms 10g.
    I'm using the Application Server 10g 10.1.2.

    Hello,
    I do not think that you can get this value from anywhere. A solution is to put the Reports server name in an environment variable stored in the /forms/server/default.env file, then to query it at Forms runtime with the TOOL_ENV.Getvar() built-in.
    Francois

  • How Can i specify multiple server names in rwservlet.properties  file?

    How Can i specify multiple server names in rwservlet.properties file without clustering?
    I am using oracle 10g Application server. we have 3 servers Repsvr1, RepSvr2 and RepSvr3. Now i need to configure rwservlet.properties file to point to these servers based on any running report. i got 3 keymap files with reports info.
    Sample entry in the key map file is:
    key1: server=Repsvr1 userid=xxx/yyy@dbname report=D:\Web\path1\path2\reports\Report1.rdf destype=cache desformat=PDF %*
    key2: server=Repsvr2 userid=xxx/yyy@dbname report=D:\Web\path1\path3\reports\Report2.rdf destype=cache desformat=PDF %*
    rwservlet.properties file letting me to enter only one servername. Even though i merged all 3 keymap files into 1, still i have the server name issue. If i leave the server to the default name still i am getting the below error.
    REP-51002: Bind to Reports Server Repsvr1 failed. However, i know the default rep_<servername> would be used incase we dont have SERVER=<value> parameter in the rwservlet.properties file.
    If i specify the servername in the rwservlet.properties file then only Repsvr1 reports are working fine and other 2 server reports are giving the same error like
    REP-51002: Bind to Reports Server <<Server Name>> failed.
    how can i configure the info which will work all 3 reports. 2 Port servers are invoking using oracle forms and report server is invoking using ASP pages.
    If i specify Server name & Key map file in rwservlet.properties one at a time, all the reports are working without any error, whenever i am trying to integrate all 3 to workable i am getting binding error. if i exclude the server from rwservlet.properties still i am getting the same error.

    My RELOAD_KEYMAP setting is YES only.As i said If i specify Server name & Key map file in rwservlet.properties one at a time, all the reports are working without any error.
    keymap file entries
    key1: server=Repsvr1 userid=xxx/yyy@dbname report=D:\Web\path1\path2\reports\Report1.rdf destype=cache desformat=PDF %*
    key2: server=Repsvr2 userid=xxx/yyy@dbname report=D:\Web\path1\path3\reports\Report2.rdf destype=cache desformat=PDF %*
    If i use http://server.domain:port/reports/rwservlet? cmdkey = key1 should bring the report from Repsvr1 and http://server.domain:port/reports/rwservlet? cmdkey = key2 should bring the report from Repsvr2, but i am getting an error from Repsvr2 saying that REP-51002: Bind to Reports Server repsvr2 failed.
    Only Servername Repsvr1 is in rwservlet.properties file. Now what is the best option to by pass the server from rwservlet.properties file and should be from keymap file. if i comment server name in rwservlet.properties file still i am getting REP-51002: Bind to Reports Server <<Server Name>> failed error for both keys.

  • In accounts  what should I put as the Server Name?  smtp. ?  thanks, Jon

    In accounts  what should I put as the Server Name?  smtp.  ?  thanks,  Jon

    If you are talking about iCloud email you shouldn't need to put anything in. Sign in in System Preferences>iCloud and check 'Mail' in the checklist there and it should set it up automatically.
    If you really want to know the server details they are listed here:
    http://support.apple.com/kb/HT4864

  • How to put database in RESTRICTED mode ?

    Hi,
    in 9.2.0.6 on Windows 2003 server how to put database in RESTRICTED mode ?
    Many thanks before.

    ERROR at line 1:
    ORA-12719: operation requires database is in RESTRICTED mode
    That's because 'ALTER SYSTEM QUIESCE RESTRICTED' doesn't actually put the database into restricted mode:
    SQL> select logins, active_state from v$instance;
    LOGINS       ACTIVE_ST
    ALLOWED       NORMAL
    SQL> alter system quiesce restricted;
    System altered.
    SQL> select logins, active_state from v$instance;
    LOGINS       ACTIVE_ST
    ALLOWED       QUIESCEDTry staring the database in restricted mode and then quiescing it:
    SQL>
    SQL> shutdown immediate;
    Database closed.
    Database dismounted.
    ORACLE instance shut down.
    SQL> startup restrict;
    ORACLE instance started.
    Total System Global Area  167772160 bytes
    Fixed Size                  1289508 bytes
    Variable Size             117441244 bytes
    Database Buffers           46137344 bytes
    Redo Buffers                2904064 bytes
    Database mounted.
    Database opened.
    SQL> alter system quiesce restricted;
    System altered.
    SQL> select logins, active_state from v$instance;
    LOGINS           ACTIVE_ST
    RESTRICTED       QUIESCED
    SQL>As you can see from V$INSTANCE, when you are running in restricted mode LOGINS will have a value of 'RESTRICTED'
    However - I still think that if you are dealing with users logging in to your (RESTRICTED) database via the listener then the easiest option is to stop the listener whilst the database is down and restart it once your alter database command has completed.
    PS : No any other user is connected.No, they wouldn't be this time because you had quiesced the database... but you still need to get the database into restricted mode for this alter database command.

  • How to put database in single user mode?

    hi
    how to put database in single user mode?and what could be the impact of this to EBS R12 RUP 6.DB 10.2.0.0
    rgrds

    hsawwan wrote:
    Hi,
    Are you referring to restricted mode? If yes, please see these links/docs.
    Restricting Access to an Open Database
    http://download.oracle.com/docs/cd/E11882_01/server.112/e10595/start002.htm#ADMIN11155
    Note: 1059291.6 - How to Put a Database into Restricted Mode and Verify Restricted Mode
    The impact is none of the users will be able to connect to the database/application (except for the sys user which can connect to the database). Usually, you would need to put the database in restricted mode when doing upgrade/migrate (i.e. you do not want to have active user sessions in the database during that time).
    Thanks,
    HusseinHi
    i want to mean:
    ALTER SYSTEM QUIESCE RESTRICTEDThe ALTER SYSTEM QUIESCE RESTRICTED statement may wait a long time for active sessions to become inactive. You can determine the sessions that are blocking the quiesce operation by querying the V$BLOCKING_QUIESCE view. This view returns only a single column: SID (Session ID). You can join it with V$SESSION to get more information about the session, as shown in the following example:
    select bl.sid, user, osuser, type, program
    from v$blocking_quiesce bl, v$session se
    where bl.sid = se.sid;I suspect all apps user can.t login to db?
    Edited by: new2appsdba on Aug 19, 2010 1:54 AM

  • Host name (server name)

    Who can tell me what the host name (server name) is that I need to use when I add my Apple e-mail address on my iPhone?
    I already have a hotmail.com address on my iPhone. So I wanted to add my Apple [email protected] e-mail address.
    Thank you.

    Hi,
    Even I faced same issue and able to discover it. One of the reasons for Axis "faultString: (400)No Host matches server name localhost" is due to invalid/wrong TargetEndpointAddress. Please check the TargetEndpointAddress URL in call.setTargetEndpointAddress( endpointURL ), endpointURL should be your service published path (.wsdl file).
    Cheers!
    raagoo

  • How to get default SMTP server name

    Hi,
    I want to know the name default SMTP server configured in machine. How i can get this through my java code.
    Help me on this

    You can find STMP server configured in hostname, in ask to dns of domain who is mailserver, you need to find MX records :
    - look a DNS config : NS (name server) , CNAME (Alias) , MX (mailexchange) etc...
    import java.util.ArrayList;
    import java.util.Hashtable;
    import javax.naming.*;
    import javax.naming.directory.*;
    public class MXLookup
         public static void main(String args[]) throws NamingException
              System.out.println(getMX("altern.org") + " mail servers");
         private static ArrayList getMX(String hostName) throws NamingException
              // Perform a DNS lookup for MX records in the domain
              Hashtable env = new Hashtable();
              env.put("java.naming.factory.initial", "com.sun.jndi.dns.DnsContextFactory");
              DirContext ictx = new InitialDirContext(env);
              Attributes attrs = ictx.getAttributes(hostName, new String[] { "MX" });
              Attribute attr = attrs.get("MX");
              // if we don't have an MX record, try the machine itself
              if ((attr == null) || (attr.size() == 0))
                   attrs = ictx.getAttributes(hostName, new String[] { "A" });
                   attr = attrs.get("A");
                   if (attr == null) throw new NamingException("No match for name '" + hostName + "'");
              ArrayList res = new ArrayList();
              NamingEnumeration en = attr.getAll();
              while (en.hasMore())
                   String x = (String) en.next();
                   String f[] = x.split(" ");
                   if (f[1].endsWith(".")) f[1] = f[1].substring(0, (f[1].length() - 1));
                   res.add(f[1]);
              return res;
    }

  • How to get orchestration instance server name

    I have two server where orchestration can run...I need to know the server name where my orchestration instance has run.
    How to get this information...

    When you have more than one BizTalk-processing server and if your orchestration is bound to host instance which exist in more than one server (generally for better resilience, the best practice
    is to have multiple instances of host in different servers), the idea of get the server name where Orchestration instance has run is INVALID.
    With the BizTalk features like scalability, resilience and persistence points an Orchestration instance could run in more than one server.
    For example due to persistence points, if that BizTalk server were to suffer a power outage, another BizTalk server could continue the orchestration from the checkpoint rather than having
    to start the orchestration from the beginning. Or during or during long-running process while waiting for a response, then message being consumed by an orchestration instance would be persisting the in-memory representation of an orchestration (to its last
    good state) and any associated messages in BizTalk MessageBox. So when the response comes back the rest of the part of orchestration could execute from other server instance. So an orchestration would not always run from one server.
    But if you have specific “Expression shape” which you may have been using for logging/tracing then you can get the server name which executed that particular “Expression shape” from an Orchestration
    instance (not the whole Orchestration instance). This is done using the standard .NET code to get the server name -
    System.Environment.MachineName
    If this answers your question please mark it accordingly. If this post is helpful, please vote as helpful by clicking the upward arrow mark next to my reply.

  • Where do you put the  SMTP Server Name  ?

    I am trying to set up the email address of the SNMP.
    i can set up the Server SNMP Agents and the trap destinations, but can't find where to specifiy the SMTP Server Name i.e our company email address name [email protected]
    I looked in security realms can't find it.
    Any ideas

    Hi,
    Here is sample setup for AIX machine.
    SETUP:
    GC agent installed in AGENT_ORACLE_HOME
    RDBMS installed in RDBMS_ORACLE_HOME
    Database and listener up and running, monitored by Grid Control,
    this implies that the AGENT_ORACLE_HOME/sysman/emd/targets.xml contains the correct credentials for the database.
    The listener name given ion RDBMS_ORACLE_HOME/network/admin/listener.ora is identical to the name of that listener target in Grid Control.
    AGENT_ORACLE_HOME/network/admin/sqlnet.ora must exist.
    SETUP steps needed for operating system AIX:
    A. AIX is using its native snmp deamon pointing to the snmpdv3 deamon (this is the default on AIX5L):
    [hostname]/root> ls -l /usr/sbin/snmpd
    lrwxrwxrwx 1 root system 9 Jul 24 2009 /usr/sbin/snmpd@ -> snmpdv3ne*
    B. The script AGENT_ORACLE_HOME/network/snmp/peer/start_peer has needs to be corrected on AIX :
    1. the locations of "whoami" needs to be corrected from "/usr/ucb/whoami" to "/bin/whoami"
    2. the command starting the os snmp deamon must be changed to
    $SNMPD $SNMPD_OPTIONS -p $NEW_SNMPD_PORT >snmpd.out 2>&1 &
    Alternatively add two blocks for operating system AIX:
    elif [ "$uname" = "AIX" ] ; then
    USERID=`/bin/whoami`
    SNMPD=/usr/sbin/snmpd
    SNMPD_CONFIG=/etc/snmpdv3.conf
    SNMPD_OPTIONS=""
    BP="AIX"
    TRPCMD="exit 1"
    ENCAP_OPT="-s 1160"
    elif [ "$uname" = "AIX" ]
    then
    echo "Starting $SNMPD ..."
    echo "$SNMPD $SNMPD_OPTIONS -p $NEW_SNMPD_PORT >snmpd.out 2>&1 &"
    $SNMPD $SNMPD_OPTIONS -p $NEW_SNMPD_PORT >snmpd.out 2>&1 &
    Starting up emsubagent
    None of the following processes must be upp and running: snmpd, emsubagent, master_peer, encaps_peer
    The following ports must not be allocated: snmp, smux, 161, 1161, 199
    run as root:
    ORACLE_HOME= <full path to the AGENT_ORACLE_HOME>
    export ORACLE_HOME
    $ORACLE_HOME/network/snmp/peer/start_peer -a
    This must start the following processes as root: master_peer, encaps_peer, snmpd
    As agent ORACLE_HOME owner run
    AGENT_ORACLE_HOME/bin/emctl start subagent
    The snmp_*.ora files needs to be copied from AGENT_ORACLE_HOME/network/admin to RDBMS_ORACLE_HOME/network/admin
    Restart the listener, query the listener status
    "RDBMS_ORACLE_HOME/bin/lsnrctl status <listener_name>" must show: SNMP ON
    Regards,
    Kal

  • How can I capture Webi server name in a webi report after refresh.

    Hi Experts.
    My BOE clustered with two or more webi server, I want to capture the webi server name in the webi report after I refreshed this report. Is there any standard webi funtion I can use to show the server name or any variable in the universe I can use?

    Hi Bruce,
    May the following links lead you to the solution......
    [http://www.forumtopics.com/busobj/viewtopic.php?p=403480&sid=6cd088cfbf8cbffd78c17e0cbf280572|http://www.forumtopics.com/busobj/viewtopic.php?p=403480&sid=6cd088cfbf8cbffd78c17e0cbf280572]
    [http://www.forumtopics.com/busobj/viewtopic.php?p=601777&sid=d6123b363d6af6b3cf0aaa6cef6eb86b]
    Regards,
    ArunKG

  • How do I change my server name (DNS) in Snow Leopard 10.6. ?

    I stupidly set my server name to yahoo.com when installing Snow Leopard, and now I cannot get into the real Yahoo. When I try to go to yahoo's site from any browser (Safari/Firefox/Chrome) it cannot find the site (I think it is resolving to my server name). Thanks in advance for any help.

    Thank you. I solved my problem by using OPEN DNS, which gave me instructions as follows:
    Apple menu;
    System Preferences;
    Click Network;
    Select 1st connection (that I simply deleted--127.something);
    Click Advanced;
    Select DNS tab;
    Add the OPENDNS IP addresses using the + sign at bottom (208.67.220.220 and 208.67.222.222);
    Click Apply.

  • How to put // infront of file name in SAP SFTP receiver adapater

    Hello,
    How can we put double forward slashes(//) in front of the file name in receiver SAP SFTP adapter? The receiving SFTP server is based on mainframe with VMS  and for some reason the receiver system wants to have // in front of the file name.
    I tried with all options of put // in the directory or part of the file name parameters in the channel,but I get following error.
    Transmitting the message to endpoint <local> using connection SFTP_http://sap.com/xi/XI/SFTP failed, due to: com.sap.engine.interfaces.messaging.api.exception.MessagingException: javax.resource.ResourceException: 4: Putting ./'//TESTFILENAME' failed.
    please let me know,if there is a work around for this requirement.
    thank you,
    Sri

    Usually filename schema will not allow you to put special characters. Please refer this link for restricts. Filename - Wikipedia, the free encyclopedia
    You may also try Run Operating System Command option to execute Unix script to add '//'
    Could you please let me know the file type ?

  • How to remove old vmm2012 server name from VMM Server navigation pane?

    After rename SCVMM2012(3.0.6040.0) old name leave in fabric VMM Server navigation pane "not responding" status. How to clean that from database safely?
    VMM and sql are in the same server. First i was rename VMM server, then sql instance, and Uninstall VMM with the Retain Data option. Library move new name correctly. Everything is work well after that, but only old vmm object leave in fabric. New name is
    responding status.
    Any ideas?

    I never tried that but Virtual Machine Recovery Tool for System Center 2012 maybe help you
    http://social.technet.microsoft.com/wiki/contents/articles/8953.using-the-virtual-machine-recovery-tool-for-system-center-2012-virtual-machine-manager-vmm.aspx
    Note: This program is not a supported part of the VMM product. This program is offered “as-is” and is documented only in this wiki. Please share any
    insights you gain by using the Virtual Machine Recovery Tool by updating this wiki page.
    Mohamed Fawzi | http://fawzi.wordpress.com

Maybe you are looking for

  • How do I set up a rescue email for my Apple ID  so that I can reset my security questions?

    In order for me to edit my security questions, I need a rescue email for my apple ID. I cannot for the life of me figure out how to set up a rescue email, and its getting to the point where Im getting extremely frustrated. I just want to be able to p

  • IncompatibleClassChangeError. Caused by garbage collection?

    The problem occurs on JDK 1.3.1-b24 compiled in JBuilder Windows and running on Sun Solaris with identical JDK version. The application is a relatively complex RMI server. An error recovery function in the server runs in a Thread every two minutes. M

  • Is There A Simple Text Editor/Composter & Line Art Plug-In Available

    Yes, I know it has been addressed in other posts in the past but I wanted to know if any new tools are available since the update to 3.XX, outside of open a picture in a "Book" project and adding text in a border or downloading BorderFX, neither of w

  • Tried to connect Macbook to a G5

    I have a G5 and want to migrate some files to a new MacBook. I purchased a firewire...(BTW $36.00 at Best Buy "Not a Best Buy") Went to Migration Assistant and followed the directions.. Nothing Then after several tries I got a message "May not be abl

  • How to extend the fields length

    Hi Experts, I want to increase the fields length of my BP name in portal . now it is 40 char in one line but i want 60 char in one line .Can any body send the solution. Thanx in advance Regards, Khurram