Connect to Oracle 9i from another User

I have Oracle 9i Installed on my machine and works fine.
But I can not connect to to it from another user on the same machine (That has a domain other than my machine)
How I can solve this?
(Both users have Adminstrator rights)

One post please.
Limited Info would lead me to respond that you should try the:
. oraenv script in a bash shell. But there could be many other problems...

Similar Messages

  • Connect to oracle xe from another machine

    How i can set oracle xe for connect from another machine
    i can connect with :
    sqlplus system/pass@xe
    listener and tnsnames are fine
    on base machine, but I can't do it from another machine
    i can't do it with html db (from browser), too
    ist it possible and how ?

    Do you have updated the tnsnames.ora file on your client box before you have tried to access the remote machine? Can you please post the error message you receive.
    If you have set the TNSNAMES.ora please try to resolve the remote database with TNSPING.. Can you also please post the results of this?

  • Connecting to a database from another computer...

    hi guys!
    i just wonder if there is a simple way to connect to my database from another computer?
    do you have to change something in this method?
        private static Connection getConnection() {     Connection con = null;     try {         Class.forName("com.mysql.jdbc.Driver");         String url = "jdbc:mysql://localhost/Movies";         String user = "root";         String pw = "x";         con = DriverManager.getConnection(url, user, pw);         System.out.println("****Connected****");     }     catch (ClassNotFoundException e)     {         System.out.println(e.getMessage());           System.out.println("1");         System.exit(0);     }     catch (SQLException e) {         System.out.println(e.getMessage());           System.out.println("2");           System.exit(0);     }         return con;     }
    thanks! :)
    Edited by: Shaor-1 on Dec 22, 2008 3:47 AM

    hey!
    is there no one who knows how to do this?
    Here is my program that i want to change so it can connect to my mysql database but from another computer.
    import java.sql.*;
    import java.text.NumberFormat;
    import java.util.logging.Level;
    import java.util.logging.Logger;
    public class ListMovies {
            static String exist = "existed";
        static int ye = 2221;
        static double pr = 21.12;
    public static void main (String[] args) throws InterruptedException {
    go();
    public static void go(){
           NumberFormat cf = NumberFormat.getCurrencyInstance();
        for(int i = 0; i < 1; i--){
        ResultSet movies = getMovies();
        try
            while (movies.next()){
                Movie m = getMovie(movies);
                String msg = Integer.toString(m.year);
                msg += ": " + m.title;
                msg += " (" + cf.format(m.price) + ")";
                System.out.println(msg);
              Thread.sleep(1000*10);
                catch (InterruptedException ex) {
                    Logger.getLogger(ListMovies.class.getName()).log(Level.SEVERE, null, ex);
                }    catch (SQLException e)
            System.out.println(e.getMessage());
    public static void loanMovie(String d) {
        Connection con = getConnection();
        try {
            Statement stmt = con.createStatement();
            String insert = "insert into movie "
                    + "(title, year, price) "
                    + "values ("
                    + "\"" + d + "\"" + ", "
                    + ye + ", " + pr +");";
            int i =stmt.executeUpdate(insert);
            if (i == 1){
                System.out.println("Loan recorded");
            else
                System.out.println("Loan not recorded");    
        catch (SQLException e){
            System.out.println(e.getMessage());
            System.out.println("CRAP"); 
    private static ResultSet getMovies()
        Connection con = getConnection();
        try {
            Statement s = con.createStatement();
            String select = "Select title, year, price " +
                    "from movie order by year";
            ResultSet rows;
            rows = s.executeQuery(select);
            return rows;
        catch (SQLException e)
            System.out.println(e.getMessage());
        return null;
        private static Connection getConnection() {
         Connection con = null;
         try {
             Class.forName("com.mysql.jdbc.Driver");
             String url = "jdbc:mysql://localhost/Movies";
             String user = "root";
             String pw = "x";
             con = DriverManager.getConnection(url, user, pw);
             System.out.println("****INFO****");
         catch (ClassNotFoundException e)
             System.out.println(e.getMessage());
               System.out.println("1");
             System.exit(0);
         catch (SQLException e) {
             System.out.println(e.getMessage());
               System.out.println("2");
              System.exit(0);
            return con;
        private static Movie getMovie(ResultSet movies) {
            try {
                String title = movies.getString("Title");
                int year = movies.getInt("Year");
                double price = movies.getDouble("price");
                return new Movie(title, year, price);
            catch (SQLException e)
            System.out.println(e.getMessage());   
            return null;
        private static class Movie
            public String title;
            public int year;
            public double price;
            public Movie(String title, int year, double price)
                this.title = title;
                this.year = year;
                this.price = price;
    BTW_
    my computers ip is: 81.229.40.17
    the database is on that computer.
    thanks!

  • Can't see dmd file from another user

    I just installed SDDM v3.1 and tried to open a dmd file from another user (I have used it to create my own model, saved it and can open it later). The log says "Open Design: 'filename'", then "Open Design: OK". But I don't see anything in the Logical (Logical Model) window. If I try to Import the same file, I get an error message that says look at the log file for details. Except that the log file has no entries in it. Is there an issue with what version the other file was saved under or some other format? Thanks for any help on this.

    Hi,
    There is now a forum specifically for Data Modeler topics: SQL Developer Data Modeler
    I assume that you are using the latest version (3.1.3.709).
    Provided the model includes some Entities, they should show up in the Logical Model window.
    The log file is normally in file datamodeler.log in folder datamodeler\datamodeler\log (unless some other location has been set in the Environment/Log page of the Preferences (accessed from the Tools menu).
    The log should at least contain a line like
    2012-10-19 11:03:18,457 [main] INFO ApplicationView - Oracle SQL Developer Data Modeler 3.1.3
    for each time you start a Data Modeler session.
    It is possible that the log is in a read-only location, and so Data Modeler cannot write to it.
    In this case I would recommend that you update the Preferences to use a writable location.
    David

  • Run job from another user

    Hi, first of all, sorry for my pour english.
    I'm system in a db, and i need to run a job from another user. I don't have the password. Theres a way to run this job?
    It's a oracle db 10g enterprise.
    Thanks in advice.

    I have the permissions, and I can't change the user password or application may stop. There's a way, but I just can't remember:
    PRIVILEGE
    ANALYZE ANY
    UNLIMITED TABLESPACE
    CREATE TABLE
    ALTER TABLESPACE
    ALTER DATABASE
    GLOBAL QUERY REWRITE
    CREATE MATERIALIZED VIEW
    SELECT ANY TABLE
    8 linhas selecionadas.
    Decorrido: 00:00:00.21
    PRIVILEGE
    FLASHBACK
    DEBUG
    QUERY REWRITE
    ON COMMIT REFRESH
    REFERENCES
    UPDATE
    SELECT
    INSERT
    INDEX
    DELETE
    ALTER
    FLASHBACK
    DEBUG
    QUERY REWRITE
    ON COMMIT REFRESH
    REFERENCES
    UPDATE
    SELECT
    INSERT
    INDEX
    DELETE
    ALTER
    FLASHBACK
    DEBUG
    QUERY REWRITE
    ON COMMIT REFRESH
    REFERENCES
    UPDATE
    SELECT
    INSERT
    INDEX
    DELETE
    ALTER
    SELECT
    SELECT
    SELECT
    SELECT
    SELECT
    SELECT
    SELECT
    SELECT
    SELECT
    SELECT
    SELECT
    SELECT
    EXECUTE
    EXECUTE
    EXECUTE
    EXECUTE
    EXECUTE
    EXECUTE
    EXECUTE
    EXECUTE
    EXECUTE
    EXECUTE
    EXECUTE
    EXECUTE
    EXECUTE
    SELECT
    SELECT
    EXECUTE
    EXECUTE
    EXECUTE
    WRITE
    READ
    WRITE
    READ
    WRITE
    READ
    69 linhas selecionadas.
    Decorrido: 00:00:00.48
    GRANTEE GRANTED_ROLE ADM DEF
    SYSTEM MGMT_USER NO YES
    SYSTEM TRIPOA_READ YES YES
    SYSTEM DBA YES YES
    SYSTEM TRIPOA_WRITE YES YES
    SYSTEM AQ_ADMINISTRATOR_ROLE YES YES
    SYSTEM TRIPOA_EXEC YES YES
    SYSTEM PRIV_DML_STUDENTSLOG YES YES
    SYSTEM PRIVILEGE_ALL_TRIPOA YES YES
    8 linhas selecionadas.

  • Invalid cast from another user

    I was searched before in asktom.oracle.com how to do a varibale in list,i found the code and i used it. The code is
    1)create or replace type myTableType as table
    of varchar2 (255);
    2)create or replace
    function in_list( p_string in varchar2 ) return myTableType
    as
    l_string long default p_string || ',';
    l_data myTableType := myTableType();
    n number;
    begin
    loop
    exit when l_string is null;
    n := instr( l_string, ',' );
    l_data.extend;
    l_data(l_data.count) :=
    ltrim( rtrim( substr( l_string, 1, n-1 ) ) );
    l_string := substr( l_string, n+1 );
    end loop;
    return l_data;
    end;
    i was created the type and function in user called oraprog
    and i used this query (through user oraprog) :
    select * from table_name where column_name in
    ( select *
    from THE ( select cast( in_list(:varibale)
    as mytableType ) from dual ) )
    the query was worked,but when i used this query (from another user) this message appeard:
    ORA-22907: invalid CAST to a type that is not a nested table or VARRAY
    my question is : why this message appearde?
    and what is the solution?
    please help me.

    I am not sure about the error message, but you can change your select to:
    select * from table_name
      where column_name in
       (select *
          from table(cast(in_list(:variable) as mytableType)));

  • Not able to connect to Oracle EBS from host Windows 7

    Hi, I have installed oracle EBS version 12.1.1 (32 bit) on OEL ver 6.3 (32 bit). I have installed Linux on Oracle VM virtualbox ver 4.1.16.
    I am having host OS as Windows 7 home on my laptop.
    While setting up the Network in Oracle VM virtualbox, I have set "attached to" as 'Host Only Adapter'.
    I am able to connect to oracle EBS from the client server(linux) using Firefox browser. Both the services(database, Application) are starting & stopping without any problem.
    I have entered following setting in C:\Windows\System32\drivers\etc\hosts file.
    192.168.56.101 linux.server
    IP address of Linux OS is 192.168.56.101
    Please help in resolving the issue.
    Thanks!

    I am getting error as "Internet Explorer cannot display the webpage" on IE ver 9, when accessing from host machine. On Firefox (ver 12), the error is coming as "The connection has timed out. The server at linux.server is taking too long to respond."
    The firewall on the server has been disabled already.
    I am not able to ping the server IP address or hostname.domainname from client. Following error comes while pinging -
    C:\>ping 192.168.56.101
    Pinging 192.168.56.101 with 32 bytes of data:
    Reply from 172.31.3.110: Destination host unreachable.
    Reply from 172.31.3.110: Destination host unreachable.
    Reply from 172.31.3.110: Destination host unreachable.
    Reply from 172.31.3.110: Destination host unreachable.
    Ping statistics for 192.168.56.101:
    Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
    C:\>
    Server Machine IP address -
    [Oracle@linux ~]$ ifconfig
    eth0 Link encap:Ethernet HWaddr 08:00:27:8D:FE:FA
    inet addr:192.168.56.101 Bcast:192.168.56.255 Mask:255.255.255.0
    inet6 addr: fe80::a00:27ff:fe8d:fefa/64 Scope:Link
    UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
    RX packets:125 errors:0 dropped:0 overruns:0 frame:0
    TX packets:46 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:1000
    RX bytes:17700 (17.2 KiB) TX bytes:5541 (5.4 KiB)
    lo Link encap:Local Loopback
    inet addr:127.0.0.1 Mask:255.0.0.0
    inet6 addr: ::1/128 Scope:Host
    UP LOOPBACK RUNNING MTU:16436 Metric:1
    RX packets:54823 errors:0 dropped:0 overruns:0 frame:0
    TX packets:54823 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:0
    RX bytes:17464908 (16.6 MiB) TX bytes:17464908 (16.6 MiB)
    [Oracle@linux ~]$
    Following is the content of server hosts file(etc/hosts) -
    127.0.0.1 linux.server linux
    127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
    ::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
    Thanks!

  • How to connect to  Oracle database from webdynprojava application

    Hi
    How to connect to  Oracle database from webdynprojava application. where can we provide the code to connect to database.?
    Thank You.

    Hi,
    You need to create  Java Bean model. The bean is a typical java bean with default constructor, getter and setter. You can have additional methods for query etc. The attributes in the class will be your model node and attributes.
    However you need to configure the connection and create JNDI using visual administrator before writing the code.
    You can also consider writing Session EJB with oracle and using them in WD.
    http://help.sap.com/saphelp_nwce10/helpdata/en/45/dcaa4f05535591e10000000a1553f7/frameset.htm
    Srini

  • To get data from another user?

    Hi,
    I am in "scott" user. I need to use the data from another user for example user "sys". i know the database name(i.e.user@database), but i dont know the password of that user.
    I think by using dblink it is possible. If it is correct then Is there any other way for this? If dblink is not correct way then please reply the correct way.
    Thanks & Regards,
    Shyam

    You only need to use a database link if the data is in another database instances.
    If you want to query data in another users schema on the same database you just need to have rights to do so. You either need to have
    select any table system privilage granted to the user (not recommended for security reasons)
    be granted select privalage on the object from the user
    be granted a role that has select privelges on the object you want to query.
    If you log in as system to the database you can grant select on the object to scott
    sql> grant select on <schema>.<table> to scott;
    now logged in as scott you can select from the table
    sql> select * from <schema>.<table>
    where <schema> is the other user and <table> is the name of the table that you want to select from.

  • How to connect to oracle database from visual basic 2010 express edition

    I have installed visual basic 2010 express edition on windows xp. But visual basic 2010 express edition supports Microsoft sql server database file,Microsoft sql server compact 3.5, Microsoft access database file. I want to connect to oracle database from visual basic 2010 express edition. So what drivers are required and how to do connectivity?

    Hello,
    I wasn't clear on what you were using to make the connection. I had a look in Visual Studio 2010 (don't have express to test sorry).
    I think you mean the Data Sources available under the menu Data-> Datasources. this seems to match the description you give when I
    look at the list of datasource options.
    In here you can make ODBC connections via the Microsoft .net Data Provider .
    If you select ODBC as a datasource you can see listed the DSN's you created - for example I see 2 which use the Oracle ODBC driver.
    This assumes you installed an Oracle Client + the oracle version of the ODBC driver (comes with the oracle client).
    Once you created a server connection then you should see it in the server explorer.
    You can also download the Oracle Developer Tools for Visual Studio which is an add on for VS.
    ** I suspect this is only for VS 2010 and I didn't see that Express was supported.
    http://www.oracle.com/technetwork/developer-tools/visual-studio/overview/index-097110.html
    Let me know if that helps.
    John

  • HT3787 If you accidentally eject that local file (plain white disk image) from another user, can you get it back?

    If you accidentally eject local file from mobile me from another user, how can you get it back? Or is it stored somewhere else????
    My website was saved on there. And I need it!!
    I didn't realize that was the idisk since mobileme has been gone for so long.

    That's what I was hoping.  I use Time Machine to back up the entire computer.  But I'm assuming it was a disk image, and that wouldn't be saved on the backup?  Or where could I find it?

  • Connecting a KM repository from another portal to KM via WebDAV - meda data

    Hello there,
    we are evaluating the option of connecting a KM repository from another portal to KM via WebDAV in our Federated Portal Scenario (in fact, we wish to get rid of the the remote roles as soon as possible).
    This can be accomplised as described here [Connecting a KM repository from another portal to KM via WebDAV|https://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/2783].
    Or for BI as described in Note 969040 - Federated portal network and Information Broadcasting .
    One question : in case meta- data properties are set, where are these stored? In the consumer portal, or in the source system, the producer portal?
    I.e when I set properties on documents of the WebDav repository, and I go to the source system, will the same meta- data properties be set there?
    Many thanks!

    For testing I've integrated the remote KM repository as WebDAV and enabled the properties repository service :
    - custom meta- data defined on the source (producer) KM system is not visible in the consumer portal if no value has been set on the source system :
    Let's say you have a property 'country' on the source system, define a value for it + save, you can view the property in the consumer system.
    - if you define both the same properties in consumer & producser system, you can view the properties in both system, and the value set in either one of the systems is displayed in both of them.
    In short : the custom meta-data properties need to be defined on both systems

  • How do I import an address book from another user on same iMac?

    How do I import an address book from another user on same iMac?

    David...
    Try here >   Share one Address Book among multiple users

  • HT2476 I got my Macbook Pro from another user (different apple id) and now i'm not able to update iPhoto and iMovie. What can i do?

    I got my Macbook Pro from another user (different apple id) and now i'm not able to update iPhoto and iMovie. What can i do?

    You need to contact Apple and transfer that computer, the serial number, into your name and your Apple ID. Then you should be able to update the included Apple Apps from the App store. No need to Re-buy them again.
    Caveat to the above.
    If your Mac did not originally come with Lion Preinstalled, early releases of early 2011 models and older, and originally had Snow Leopard installed the original owner should of supplied the Mac OS X System Discs with the system. If that person didn't you should order them from Apple at a small fee, and don't lose them.

  • Grant to let user just see a procedure from another user!

    Hi,
    Is there a GRANT to let a user see a procedure from another user but not compile it?
    Tks,
    Paulo.

    The problem is that is not just one procedure, but more then 30 and a lot of developments want this privilege.
    Tks,
    Paulo
    ps: can you help me on my other post "ALTER TABLESPACE tbs READ ONLY" --hang                                                                                                                                                                                                                                                                                                                                                                                                                           

Maybe you are looking for

  • Nokia Music: Mix Radio, Store, Gigs options disapp...

    Hi, I have been using Nokia Music on Lumia 710 without an issue until today when I launched it and options for mix radio, store & gigs disappeared. I uninstalled the app and re-downloaded it. On launching it, all options became available but disappea

  • Word Document size is increased after migration?

    Hello We migrated from Sp2003 to Sp2010 and noticed that all item documents in each document library, file size is increased. I compared the couple of documents, everything is same. Is it by default depending on framework or what is logic behind this

  • HT4910 how can i backup my photos from my macbook pro into icloud ?

         hi can you help me how to backup all the files in my macbook pro into icloud in want to save may photos to icloud i hope for your kindly response thnaks

  • FM For post outgoing payment

    I can't find the BAPI or Function to post outgoing payments , i need to do the function or bapi not bdc .  Please help...

  • Number series

    Dear expert, i created posting period fro years 2013-14 and 2014-15. Client create some invoice in 2013-14 that due date is in 2014-15. Now system not provide option for update periods indicator for posting periods  or old number series. How we can s