Some problems about database connection

I am working on oracle9i. The problem is that I have to specify the "host string" in the login window of SQL*PLUS to connect to database (I can't use the command-line GUI). But I don't know how to specify "Host String" in JDBC connection string and SQL*Loader.
Can anybody help me?

Chen, please state specifically where you are trying to run each of these application from and where the database is.
Since you mentioned a SQLPlus window then it sounds like you are running from a client PC to a remote Oracle installation. If this is true you normally use the connect string alias set up in the local tnsnames.ora file to connect to the remote db. You set this up as part of the client install or using the Net Configuration Assistent or some shops provide one common file on the network referenced by the TNS_ADMIN OS environment variable.
For batch or command line usage
sqlldr userid@service_name
sqlplus userid@servie_name
HTH -- Mark D Powell --

Similar Messages

  • A problem about database connection

    What's the advantages and disadvantages of create each JDBC connection in the jspInit ( ) and close it in jspDestroy ( ) for every JSP script compare with from the connection pool.
    THANKS
    Edited by: Cryil on Nov 14, 2007 11:21 PM

    jiju wrote:
    The container calls the jspInit() to initialize te servlet instance.
    and is called only once for a servlet instance.
    so if we are opening JDBC conection in JspInit(), we will get only one connection.
    for the subsequent requests we have to use this single connection, results in starvation.
    where as in the case of connection pool ,we will get a pool of connections when the container starts
    we can make use of any of these available connections when we receive multiple requests.You can, normally, have multiple statements on the same connection, and since a JSP should only be reading (never updating) there won't be any (what I like to call) "commit cross-overs", so this is not "in principal" a problem.
    It would not, however, be ultimately practical. And the practice (a single connection per Servlet/Jsp) is still not one I would reccommend, for any reason.

  • There is some problems about the connection betwee...

    hi, my cell phone is N70, my notebook is ThinkPad T43 with Bluetooth set,and my nokia pc suit is 6.86.9.3
    And I wanna connect my N70 to the T43 through the bluetooth. But after I enter the password in my phone which matches the one in my notebook a dialog window written " Can't authorize the phone." appeares. I do not know the reason why. So I ask for the help here.
    Thanks in advance for any help...

    In detail, when the pairing used nokia PC suit instigated a dialog window written "can't authorize the phone" appeares on my PC screen. But when I use the IBM bluetooth software installed formly the pairing success. And files can be transferred, but I can not backup my contacts and mails.
    I don't know.
    Help
    Thanks in advance.

  • HT1414 It has some problem about my iphone. When I turn off the phone and then turn on, it shows the screen of apple page and then show the loading page many times. What happen with my iphone?

    I have iphone5s and there is some problem about my iphone. I turn off the phone and then I turn on. After I turned on, It showed the page of apple signal and then the page of loading. It used long time to show the loading page. Then it was back to page of apple and then loading page again many times. What happen with it? And what should I do?

    Did you already try to reset the phone again by holding the sleep and home button for about 10sec, until the Apple logo comes back again?
    If this does not work, try to set it up as new device, explained here:
    How to back up your data and set up as a new device
    You may have to connect in recovery mode, if the phone is not recognized in iTunes:
    iOS: Unable to update or restore

  • Problem with database connectivity

    Hi guys,
    I'm having a problem with database connectivity . I'm using the mySQL database & org.gjt.mm.mysql driver.
    I've kept the org folder under the directory where the Database.java program is residing .
    My program is as follows:
    import java.sql.*;
    public class Database
         Connection con;
         public void connect()
              System.out.println("In connect.");
         public Connection connectDB(String username,String password,String database)
              try
                   Class.forName("org.gjt.mm.mysql.jdbc.Driver");
                   String url="jdbc:mysql:"+database;
                   con=DriverManager.getConnection(url,username,password);
              catch(SQLException e)
                   System.out.println("SQL Exception caught:"+e);     
              catch(Exception e)
                   System.out.println("Exception e caught:"+e);     
              return con;
         public static void main(String args[])
              try
              Connection c;
              Database db=new Database();
              c=db.connectDB("root","","//192.168.0.2/squid");
              System.out.println("Connection created.");
              c.close();
              catch(Exception e)
                   System.out.println("Exception caught:"+e);     
    It gets compiled but gives the following error when run.
    Exception e caught:java.lang.ClassNotFoundException: org.gjt.mm.mysql.jdbc.Driver
    Connection created.
    Exception caught:java.lang.NullPointerException
    I don't know why the class is not found.Pl . help me rectify my mistake.Is there any other path to be set?
    Thanks.

    You need to run it with the JDBC driver in the classpath
    java -classpath .;[mySqlJdbcDriver.jar] Database

  • While trying to restore os x and erase content, some problem about voice software came up and the computer asked me to restart and try again by clicking restart button. When I did this, the machine went to a gray start up screen and will not progress.

    While trying to restore os x and erase content on my MacBook pro, some problem about voice software came up and the computer asked me to restart and try again by clicking restart button. When I did this, the machine went to a gray start up screen with an apple and will not progress. I've waited more than 30 minutes and tried restarting again by holding the power button. Also, restore cd 1 will not eject so the computer will no longer move past the gray screen with spinning circle. Restore CDs had never beeused and were still in packaging in the original box. Ran hardware test just to check, and it came back as normal. Now what? I live nowhere near a genius bar :(

    computer asked me to restart and try again by clicking restart button.
    That's called a kernel panic...
    Since the install disc won't eject, try starting up while holding down the C key. If the Mac won't boot while holding down the C key, try ejecting disc by either holding down the mouse while starting up or holding down the Eject key while starting up.
    Try booting from your install disc so you can run Disk Utility in case the startup disk needs repairing.
    Insert your install disk and Restart, holding down the "C" key until grey Apple appears.
    Go to Installer menu and launch Disk Utility.
    (In Mac OS X 10.4 or later, you must select your language first from the installer menu)
    Select your HDD (manufacturer ID) in the left panel.
    Select First Aid in the Main panel.
    (Check S.M.A.R.T Status of HDD at the bottom of right panel. It should say: Verified)
    Click Repair Disk on the bottom right.
    If DU reports disk does not need repairs quit DU and restart.
    If DU reports errors Repair again and again until DU reports disk is repaired.
    When you are finished with DU, from the Menu Bar, select Utilities/Startup Manager.
    Select your startup disk and click Restart
    While you have the Disk Utility window open, look at the bottom of the window. Where you see Capacity and Available. Make sure there is always 15% free space.
    What is a kernel panic
    Mac OS X Kernel Panic FAQ
    Resolving Kernel Panics

  • Problem with database connectivity toolkit

    I have problem with Labview database connectivity toolkit. I build and deploy the real_web.vi (attached to the post) to the web server. It seems that the DB Tools Open Connect can not connect to the data base, and it issues the following error:
    NI_Database_API.lvlib:DB Tools Open Connec (String).vi->real_web.vi->real_web.vi.ProxyCallerADO Error: 0x80004005 Exception occured in Microsoft OLE DB Provider for ODBC Drivers: [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified in NI_Database_API.lvlib:DB Tools Open Connec (String).vi->real_web.vi->real_web.vi.ProxyCaller
    But in highlight execution, I do not get this error! My program connects to the database and read the data. What is wrong ?
    Moreover, when I connect to the vi using the web-browser, the cpu usage of ApplicationWebServer process goes up to 100% (The same problem as stated in this post). 
    Attachments:
    real_web.vi ‏28 KB

    Say what you will about the problems that the DCT can cause (and goodness knows I have) my suspicion is that this is not a toolkit ptoblem. When ever something only works with execution highlighting on, two words should immediately jump to mind: "race" "condition".
    Execution highlighting will muck aound with the order in which things get done in your code. Can you post what your code looks like?
    Mike...
    Certified Professional Instructor
    Certified LabVIEW Architect
    LabVIEW Champion
    "... after all, He's not a tame lion..."
    Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps

  • Processes 'stuck' after problems with database connection

    First in the production environment, during database failover (MSSQL Server cluster), and later in testing, we encountered processes that are 'stuck' on some random operation. Admin console doesn't show stalled operation or branches, process is running, all operations are completed except last which was in several cases still in status Running, and in one case it was Completed but next operation was not started.
    When operation is still running one would expect to select it and click 'Retry' in hope that process will continue but it seems there exist a bug in "Process Instance Detail" part of the admin console - it gives an error: "This operation cannot be completed without the selection of one or more operations from the list below!"
    We can try using 'Terminate' for this operation and probably several that follow (because they would probably stall without data from first terminated operation) in hope that process which runs in big user loop can arrive at a step where it can recover from all this using existing data but it's messy and doesn't always work.
    When the operation is in status Completed admin cannot do anything at all. This completed operation cannot be retried or terminated because selection box is grayed out. Process and data in it is irrecoverably lost and must be initiated from start.
    I must say we had large problems before if database connection is lost even for few seconds (intentional fail over from one db node to another) - but now, when we filled check-connection-sql in datasource configuration Livecycle is behaving a lot better but still with above problems.
    How can it happen that LC stops executing process workflow and stops on some operation just because it wasn't able to get valid db connection for several seconds? Is it some problem with transactions or what? What can I do? Where to look?
    We are still on LC ES2 SP3. JBoss on Windows Server 2003 and MSSQL 2005.
    Any help is appreciated.

    I would suggest you to contact the Adobe support so they can look further in system as well as LC database.

  • Problem with database connection in Jdev 11

    Hello,
    my jdev version is 11 and i want do really simple task create new database connection to my oracle db.
    I open database navigator and click new connection. i want jdbc connection but after i fill this form i pressed test connection button and get this error msg:
    Test failed: 4
    i think i have correct information but i tried this, i opened my older jdev 10 and copy jdbc url from my old db connection.
    In jdev 11 i checked Enter Custom JDBS Url and pasted url from jdev 10 and i get:
    Test failed: 4
    What is wrong?
    Thanks for your advice.
    J.

    I add new information:
    i cant connect to oracle db 8, but i try another db in my company which is 10 and its working fine.
    I write java class and try connect to db 8 via jdbc manually:
    String url = "jdbc:oracle:thin:@SERVER:1525:SID";
    String user = "user1";
    String password = "aaa";
    Class.forName("oracle.jdbc.driver.OracleDriver");
    // DriverManager.registerDriver (new oracle.jdbc.driver.OracleDriver());
    Connection conn = DriverManager.getConnection(url, user, password);
    and i get this:
    Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 4
         at oracle.jdbc.driver.T4C8TTIdty.marshal(T4C8TTIdty.java:468)
         at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:339)
         at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:621)
         at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:203)
         at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:34)
         at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:501)
         at java.sql.DriverManager.getConnection(DriverManager.java:525)
         at java.sql.DriverManager.getConnection(DriverManager.java:171)
         at project1.Class1.main(Class1.java:31)
    i hope this will be more usefull and i know i write this info about db's version little bit late.
    J.

  • Some problem about integrated ITS 640

    How to change Webgui theme in integrated ITS 640
    Dear all ,
    My system is ECC5,the Package level it SAPKGPRC05,SAPKB64015,SAPKA64015,SAPKH500010.
    now, I configure  integrated ITS with T-code SICF .
    I create a external aliases "/sap/bc/gui/sap/its/webgui" ,aAfter that I can connect to the
    ITS with the following URLs:
    http://<AppServer><domain>:<port>//sap/bc/gui/sap/its/webgui
    But now ,I have some problem cannot solve as follow:
    1 When I logon ITS, the default language is English ,only English and Genman may be
    selected,The requirement is that I want to use other language as the default logon language.
    When I on the pop-up dialog box "Change External Alias" tab " Service data" ,"Anymous Logon
    Data "select a Language "Chinese",the system pop-up a message box show "code page not
    supported".how can i configure the default logon language ?
    2 I hope use "https"-- Security Reqiurements ,as a security link ,so I selected "SSL",aAfter
    that I can connect to the ITS with the following URLs:
    https://<AppServer><domain>:<port>//sap/bc/gui/sap/its/webgui
    IE show cannot find the web system .
    And use the following urls:
    http://<AppServer><domain>:<port>//sap/bc/gui/sap/its/webgui
    only show the logon page and notice the error "Logon not possible; none of the active logon
    procedures is possible"
    and how can I configure the "https" ? and must configure with se38 "W3_PUBLISH_SERVICES"
    program together ,if like that ,i must republish all of the component again ?
    3 I hope change the webgui theme , in ITS620 have theme 00,90 ,99 .and we can select
    "EnjoySAP". but in integrated ITS 640 , i donot know where to find the its admin page to
    setup the theme . can you tell me how can i find the admin page to setup the theme .
    thanks all ,hope your reply !
    Message was edited by:
            Benson Lu

    Hi,
    Hope this Information is useful.
    The SAP Integrated ITS only supports the new "Tradeshow" design (unlike the "standalone" ITS which also supports the well-known EnjoySAP design). The new design is more easily incorporated into the Enterprise Portal and is better adapted to the design of other SAP Web UI technologies (BSP, WebDynpro).
    There are also changes to the header area in SAP integrated ITS in Tradeshow: The menu bar and standard toolbar functions are collected on either side of the transaction code field in the buttons "Menu" (on the left) and "System" (on the right). The application toolbar elements are then displayed to the right. Instead of symbols, the system displays the text description. If there is insufficient space to display all buttons, you can display the other elements by choosing the "More" button to the right of the screen.
    Exceptions:
    In Release 6.40 (NetWeaver 2004) , the new design is only available for the Internet Explorer. As of Release 7.00 (NetWeaver 2004s), it is also available for Firefox and Mozilla Browser. For this reason, the Enjoy design continues to be supported for Mozilla and Firefox in Release 6.40 (but only for these browsers, and even then only for this design, and not Tradeshow).
    Furthermore, in Release 6.40, there are some Internet Application Components (that is, Web applications that build on the ITS), which continue to be displayed with the "Enjoy" design. Of course, the "Enjoy" design continues to be supported for these applications.
    You can use SITSPMON Transaction  to monitor the integrated ITS.
    Thanks,
    Tanuj

  • Some problems about making USB boot

    Hi AF!
    I'm having really big problems about making a USB Install Key!
    Its a 256mb (I will only use base) But how should I make the partitions??
    After reading another topic - http://bbs.archlinux.org/viewtopic.php?t=18643
    I still having some problems - Normally I would say the whole USB key should be FAT16 - is that correct or how should I make this ????
    Another part is about making the bootloader ?? Should that be Lilo or should I use the mksysconfig. If I use lilo with /sbin/lilo -M /dev/sda - I get the error upon boot - this is not a bootable floppy or disc??
    And if I use mksyslinux?? - well not sure I'm using the correct command - so how do I use this ???
    Thanks
    Peque

    well its been some time since i did this but if memory serves well
    make sure that in /etc/mkinitrd.conf the USB= "   "  <thats blank  not
    USB=1   
    i believe i told mkinitrd to install all the usb modules i needed even then i had to use initrd-full.img
    also i needed mdadm installed
    i ran lilo on my pen  grub just wouldnt work for me it installed but couldnt find what to boot . lilo would boot up on the machine i installed it on but wouldnt boot on ant other machine never did figure that out , my thoughts went else where at that time & havent  gone back to it yet.
    thats what i remember how much pertains to you i dont know hope this helps

  • Problem installing Database connectivity toolkit

    My company manufactures in multiple plants around the world.  I have a problem in China and need to debug, and since the code is distributed in exe form, that is a problem.  My approach was to install a 30 day trial license of LV2010 SP1, planning on removing it when the debug is done.  To this point, all is fine.  The problem is that the app requires the Database Connectivity Toolkit.  I downloaded a copy and tried to install.  It says it can't install because LV2010 is not installed.  Is this because of the eval license?
    Solved!
    Go to Solution.

    Very likely, but the far better solution is to not burden yourself with the DCT. It is a major complication to a process that is essentially very simple. As an alternative check this thread.
    Mike...
    Certified Professional Instructor
    Certified LabVIEW Architect
    LabVIEW Champion
    "... after all, He's not a tame lion..."
    Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps

  • Some problems about ALV

    hi everyone:
      I have a problem about ALV. The question is I want to show two headers in the gt_item .(Hierachy)
    I want to use these  in the event "change_fieldcatlog"
    LOOP AT I_FIELDCAT.
    CASE I_FIELDCAT-FIELDNAME
        WHEN 'MESSWERT'.
         I_FIELDCAT-ROW_POS = 1.
         I_FIELDCAT-SEL_L = '1111'.
         I_FIELDCAT-SEL_M = '1111'.
         I_FIELDCAT-SEL_S = '1111'.
        APPEND I_FIELDCAT.
    so I want to add another label in the next row. but I write like this below , it doesn't work .
         I_FIELDCAT-ROW_POS = 2
         I_FIELDCAT-SEL_L = text-004.
         I_FIELDCAT-SEL_M = text-004.
         I_FIELDCAT-SEL_S = text-004.
        APPEND I_FIELDCAT
    ENDCASE.
    ENDLOOP.
    So who can help me ?
    thank you in advacne .
    Regards
    Nick

    Hii Nick, in your program I found that you have created only one fieldcat structure, actually we need 2 structures one is for workarea and one for body.
    like this
    It_Fieldcat type SLIS_T_FIELDCAT_ALV
    Is_Fieldcat type SLIS_FIELDCAT_ALV
    now you can write the code
    LOOP AT It_FIELDCAT into Is_Fieldcat.
    CASE Is_FIELDCAT-FIELDNAME
    WHEN 'MESSWERT'.
    Is_FIELDCAT-ROW_POS = 1.
    Is_FIELDCAT-SEL_L = '1111'.
    Is_FIELDCAT-SEL_M = '1111'.
    Is_FIELDCAT-SEL_S = '1111'.
    APPEND Is_FIELDCAT to It_Fieldcat.
    clear Is_Fieldcat.
    Is_FIELDCAT-ROW_POS = 2
    Is_FIELDCAT-SEL_L = text-004.
    Is_FIELDCAT-SEL_M = text-004.
    Is_FIELDCAT-SEL_S = text-004.
    APPEND Is_FIELDCAT to It_Fieldcat.
    Clear Is_Fieldcat.
    Hope it will works.
    Reward points if helpful.

  • I have some problem about wifi sync with iOS5

    Hi~everbody~
    I have some problem with wifi sync, and still don't know how to resolve it. Please Help Me~
    First,I using Windows 7 64-bit, the latest iTunes 10.5, and iPod touch 4 with 5.0(9A334), and of course a WIFI AP in my room.
    Here is my major problem:
    When I setted up enable wifi sync in iTunes summary, the iTunes had identified my iPod and show at left side in iTunes,
    even when I unplug  my iPod touch 4 from my computer, the iTunes still shows there.
    But after one day when I came home, I opened the iTunes want do a wireless sync, but the iTunes did not found my machine.
    I have tried restart computer, restart WIFI AP, disable anti-virus software, close MSN, close teamviewer, and any software may caused some unstable network issue between iTunes and iPod touch 4, but when I done these whole things, the iTunes still not found my iPod.
    So I want to know do Wifi Sync needs any specific net port ? like 80 port or some port else?
    Wish there are somebody can help me fix this, very appreciate.
    BTW: Even iTunes did not found my iPod touch 4, but I can still using "Remote App" to control iTunes music play, so I really confuse why it just can't do wifi sync ?

    This error has got nothing to do with rmi.
    The StackOverflowError means the Java VM stack is filled up. The
    stack is used for keeping track of method calls. An easy way to
    produce a StackOverFlowErrer is the following code:
    class Test {
    public static void main(String[] args) {
    a();
    static void a() {
    a();
    So if you call method a() within the same method, the stack
    fills up quickly.

  • Some info about database updation automatically based on date..

    HI..Data base experts  Can u give some suggestions...
    some info about the system table date and system form...

    Hi
    Nagaraj
    Small Task...
    in hr table i shown in the image..
    active employee is there..
    in administration staring date is there...
    if any body will give date and then check box is true =y will be stored in the db..
    to day date  05 01 12
    if i give date  10 01 13 in staring date  if i press add button
    in check box column will be saved =Y and date will be saved in  10 01 13 not today date bcz i given 100113
    ok
    so.
    days are running                        db valueat comobo box           db value at date(i given)
    today date  =  05 01 13                          Y                              10 01 13 
    tomarrow  =    06 01 13                          Y                             
    day after to = 07 01 13                          Y
                         08 01 13                          Y
                         09 01 13                          Y
                        10 01 13                            N                              10 01 13 
    in sap particular table date is storing...
    so ..if the date what i had given(100113) will be matches to the system date
    if           check box value entered(i had)    Yes
    this will become 'N'
    automatically
    not manually...................          
    Is it possible..........

Maybe you are looking for

  • Distinct Count Measure Total in Two Dimensions

    I have a report that pulls data Site and then drills down to User for Content Usage for Six Months. These are separate dimensions in the cube. I have a DistinctContent Measure that pulls for both Site and User appropriately when I use separate querie

  • Has anyone used gcc47 with Xcode?

    So I am installing gcc47 with MacPorts on my Powermac G5 running Leopard. I was wondering if anyone here has had any experience using an updated version of gcc with Xcode? I haven't used Xcode before, I have mainly been using emacs from the terminal

  • How can I control instrument using its RS232 port in VB or VC++?

    1)How can I control instrument using its RS232 port in VB or VC++? 2)What's the module or .h file need I add-in to VB or VC++? 3)Can you provide me some easy examples for that? Thanks!

  • Can the Calendar please be made to work

    Is it beyond Apple's ken to make a competent Calendar application? Is it not possible for the OS and the iPhone to understand and use floating time zones? I enter an appointment on the iPhone 2:30pm Eastern. I sync. I open Calendar on the Mac. In mon

  • Photoshop CS to Photoshop CS5

    Hi, i've a Adobe Photoshop CS product and i want to upgrade.... but on the page of Adobe Photoshop CS5 under the menù 'upgrade' there's not my version. What should i have to do? I have to upgrade only for Adobe Photoshop CS4? Thanks, Andrea