Access database access by other user

Dear All,
I created one schema 'xyz' in a database and creating another new user 'pqr'.
Now I wanted to access of XYZ schema by user 'xyz'. I have given the rights to access of schema 'xyz' to 'pqr'
but when I open any stored procedure of 'xyz' in Pqr by schema name, it is comes in invalid state because database objects which are used in that procedure are not maintain with schema name.
Is anything there, so that I can see all SPs of XYZ in PQR with valid state.
thanks and regards,
Prashant

Now I wanted to access of XYZ schema by user 'xyz'. Did you mean 'pqr' instead of 'xyz' here?
but when I open any stored procedure of 'xyz' in Pqr by schema nameWhere?
>
Is anything there, so that I can see all SPs of XYZ in PQR with valid state.
Not sure if I understand your problem. Are you referring to recompilation of stored procedures of XYZ schema while logged in as PQR?

Similar Messages

  • Error: 1013020 Cannot clear data for database [Daily] while other users are

    I'm trying to clear a (BSO, v 11.1.2.1) database, and it's failing with the following message:
    Error: 1013020 Cannot clear data for database [Daily] while other users are connected.
    There are no other users connected first of all. Second of all, I've never had a database fail to clear just because other users were connected. Has anyone seen this before?
    Sabrina

    WHen ever u start essbase application ..there is services starts in task manager called "ESSSvr" . The number get increased when keep opening as number of application you open ..So what i say is when u see no users in sesssion and no batch runs ahead , u can stop the Application in EAS and automatically it will log off all the users from that respective application ..And then start again the application and u can perform ur task
    this usually happnes when some one is connected with excel addin or Same EAS open by another user remotely..thats what i have seen in my exp's

  • My user name has disappeared on my old Macbook 10.6.8. I have access to all the other user names BUT mine. I haven't backed up my stuff. HELP!

    I have access to all of the user names on my Macbook, including one of the Admin accounts, that is my wife's. BUT I can't fine mine ANYWHERE. It seems like it all started when I started to clean up my "Startup disk" and deleted just the basic apps I KNOW weren't Mac related.(Like Dropbox, Tom Tom, Google Drive, etc)
    I did surf and find and tried Ctrl+S but I'm a little confused on WHEN to enter this option, I tried doing it when restarting it, AND when it powered back up. Notthing.
    maybe I'm doing something wrong.
    So to recap
    I CAN access my Macbook, but ONLY with other user accounts NOT MY OWN AND CAN'T ACCESS ANY OF MY FILES.
    Thanks for your help!

    You might consider upgrading the RAM. 1GB is the bare minimum to run Mac OS X 10.6.8. See this page for RAM information for your Mac: http://www.everymac.com/systems/apple/macbook/specs/macbook-core-2-duo-2.16-whit e-13-mid-2007-specs.html.
    You are also running low on free disk space, so consider moving files over to an external drive or delete files you no longer need.
    Also, please explain what "done other maintenance" involves.

  • How do you access folders/files in other users Finder list?

    How do you access folders in other users finder list, once you have shared the folder or file

    You should be able to open and view the contents of any directories you have access permissions to using FInder, by navigating the directory tree to the folders in question and opening them as you would your own folders. If you know the full path-name of the directory, you can enter it into the Finder navigator opened by Apple-Shift-G; the dialog that pops up uses the same directory listing method as all unix systems, and has tab completion for ease of use. In general, all users have their home directories in /Users/, or you can simply use ~/../<name> to go to the home folder of a user via the parent (..) directory of your home (~) directory. If you are experiencing bugs or errors with this, as opposed to simply not knowing how to do this, please post any details of your experience so that others can help troubleshoot your problems.

  • Access shared calendar and other users calendar

    Hi
    We have just finished migrating to Exchange 2013, but are having some issues regarding access to other resources like calendar and inbox.
    let me give you an example.
    1 user Outlook 2013 in cached mode. Cannot access another users calendar og indbox though the permissions are set correctly.
    Tries from OWA with same user and here she can access the calendar.
    Tries to use Outlook in non cached mode and here it Works.
    Has anybody a solution for this.
    Best regards
    Dennis
    Best regards
    Dennis 

    I have tried the following
    Open Outlook
    Goto File >
    Account Settings > Account Settings
    Select your Exchange profile >
    Change > More Settings > Advanced
    tab
    Check Use Cached Exchange Mode (if not already checked)
    Uncheck
    Download shared folders
    Click OK >
    Next > Finish
    Restart Outlook
    This has solved the issue.
    Dennis

  • How can view/access Enterprise manager to other user?

    Hi,
    We have one request regarding accessing grid enterprise manager console.
    I have create user TEST which privilege required to view/access the db console using this user?.

    Error that you have described above happens when test user connect,if this is the scenario....
    what is the output of this command
    SQL>select username,account_status from dba_users where username='TEST';
    If status of test user is lock then unlock it by following command:--
    SQL>alter user test account unlock;
    And if its grid control then see below mentioned link , Search with keyword privileges:---
    http://docs.oracle.com/cd/B16240_01/doc/install.102/e10953/getting_started_with_em.htm

  • How to see changes in database made by other users

    If few users are connected to one database what should be done that all users could see changes (updates, inserts) made by one of them?
    I have set conn.setTransactionIsolation(Connection.TRANSACTION_READ_COMMITTED);
    and statement = DatabaseConnection.conn.createStatement
    (ResultSet.TYPE_SCROLL_SENSITIVE, ResultSet.CONCUR_READ_ONLY);
    but phrase dmd.othersUpdatesAreVisible(ResultSet.TYPE_SCROLL_SENSITIVE) returns false.
    I will be grateful for any help

    I was thinking about it, but the possibility of of
    refreshing data without users beinig involved and
    only when it is needed Something of a contradiction. If the user is not involved then you don't know if the information is needed or surplus to requirements.
    seems more elegant to meOn the contrary - it's an architectural kludge. Solutions of this type are fragile. This may be acceptable in return for an improved user experience, but you need to weigh this particular improvement against possible degradation elsewhere as a result of it.
    Databases are designed to be queried. You're trying to have the database notify you. Given this you will have to trade some quality in return for the feature you're after.
    Note also that transactionality is pretty much about avoiding the scenario (views on incomplete or conflicting transactions) that you're seeking. Given how much effort goes into avoiding this are you absolutely sure you've thought through the possible consequences of it? What about transactions that get rolled back and thus (effectively) never occur, for example - should your users be able to see these?
    So, your trade-offs are:
    Polling - Pro: gives you the behaviour you ask for. Con: Fragile, may cause performance problems, possibly unwise for business reasons. Have you performed usability testing (http://useit.com/) to ensure your users actually need this?
    Manual updates - Pro: reliable, performant, ACID. Con: Not the dynamic behaviour you ask for.
    There are two other possibilities which have not been discussed. I mention them for the sake of completeness, but I don't recommend them.
    Database Notification - Pro: as manual. Con: not a portable solution; if possible at all you will need to take advantage of database specific features such as triggers and Java stored procedures. Adds considerable complexity to the database layer and thus requires alert and informed DBAs (worth their weight in gold).
    Application Notification - Pro: portable to some extent. Con: agnostic about updates occurring outside your application. Requires a solid architectural base to be robust.
    (edit: after re-reading the OP, I'm not sure if he does or does not want to see incomplete transactions; disregard those points if he doesn't.)

  • Database starts with other user

    Hi everyone!
    I have a rman catalog I want to start with orarman OS user.
    The binaries belong to oracle user, since it's installed in a two-nodes cluster. Active node has the production instance (startup with oracle), and the pasive node the rman catalog.
    There is only one oracle software in each node (which belongs to oracle)
    When I try to start rman catalog with orarman in the second node, it only starts up with oracle user and not with orarman.
    orarman@wareflow2:~> sqlplus "/as sysdba"
    SQL*Plus: Release 10.2.0.4.0 - Production on Fri May 13 12:16:47 2011
    Copyright (c) 1982, 2007, Oracle. All Rights Reserved.
    Connected to:
    Oracle Database 10g Release 10.2.0.4.0 - 64bit Production
    SQL> select * from v$Instance;
    INSTANCE_NUMBER INSTANCE_NAME
    HOST_NAME
    VERSION STARTUP_T STATUS PAR THREAD# ARCHIVE LOG_SWITCH_WAIT
    LOGINS SHU DATABASE_STATUS INSTANCE_ROLE ACTIVE_ST BLO
    1 RMAN10
    wareflow2
    10.2.0.4.0 13-MAY-11 OPEN NO 1 STOPPED
    ALLOWED NO ACTIVE PRIMARY_INSTANCE NORMAL NO
    SQL> ! ps -ef | grep pmon
    orarman 12651 9108 0 12:17 pts/15 00:00:00 /bin/bash -c ps -ef | grep pmon
    orarman 12653 12651 0 12:17 pts/15 00:00:00 grep pmon
    oracle 31082 1 0 12:14 ? 00:00:00 ora_pmon_RMAN10
    orarman@wareflow2:~> which sqlplus
    /oracleeng/app/oraclese/bin/sqlplus
    orarman@wareflow2:~> ls -lrta /oracleeng/app/oraclese/bin/sqlplus
    -rwxr-x--x 1 oracle oinstall 9523 2011-01-27 00:16 /oracleeng/app/oraclese/bin/sqlplus
    I have tried everything...
    Executing with root: su - orarman -c /home/orarman/arranca.sh
    Does someone how to do?? Thanks in advance!!!

    Welcome to the forums.
    Provided the orarman user is in the Unix dba group, you should be able to startup the database.
    In your post you don't show the result of a startup command, not even a startup nomount.
    So far no one can see what you did to reach the result the instance is stopped.
    Can you
    sqlplus / as sysdba
    startup nomount
    if this doesn't work stop here and post the error message.
    alter database mount;
    again if this doesn't work stop here and post the error message.
    alter database open;
    ditto
    Sybrand Bakker
    Senior Oracle DBA

  • Getting the table names in an MS Access database

    Hi,
    I am new to JDBC and making a client/server application that updates a MS Access database through jdbc:odbc.
    I need to get a list of existing user tables in the db. I have found a great document on the net which has the code, however the code doesn't work. I have tried different ways and looked every where with no success. (link to the doco: http://www-128.ibm.com/developerworks/opensource/library/j-jdbc-objects/)
    Here is my dbManager class that handles all db related services in my application. I would appreciate any help I can get as I have exhusted all my avenues.
    Thanks
    Sep,
    * dbManager.java
    * Created on 31 October 2005, 10:20
    * To change this template, choose Tools | Options and locate the template under
    * the Source Creation and Management node. Right-click the template and choose
    * Open. You can then make changes to the template in the Source Editor.
    import java.io.*;
    import java.sql.*;
    import java.util.regex.*;
    * @author AUMahdavSe
    public class dbManager {
        /** Constant Declaration                */
        public static final String Driver = "sun.jdbc.odbc.JdbcOdbcDriver";
        public static final
            String sqlCreateTable = "create table TABLENAME (" +
                "name varchar (100)," +
                "surname varchar(100)," +
                "computerType integer," +
                "computerNAL varchar(20)," +
                "haveMonitor integer," +
                "monitorNAL varchar (20)," +
                "auditDate varchar(10) );";
        public static final String sqlUpdateTable = "insert into TABLENAME values" +
                " (NAMEHOLDER, SURNAMEHOLDER, COMPTYPE, COMPNAL, HAVEMON, MONNAL);";
        /** Attributes                          */
        private String dbURL = "jdbc:odbc:";
        private String Username = "admin";  // user input
        private String Password = "purina123";  // user input
        private String ODBCDataSource;  // config file
        private String dbPath;  // set through config file or defaults to current folder
        private String configFile = "config.txt"; // set either at commandline or defaults to current folder
        private Connection con = null;
        private Statement stmt = null;
        private ResultSet tables;
        private DatabaseMetaData dma;
        private ResultSetMetaData rsmd;
        private String CurrentAuditTable = "TestTable2";
        int numCols, i;
        /** Set Methodes                        */
        public void setUsername( String usr ) {
            this.Username = usr;
        public void setPassword( String pswd ) {
            this.Password = pswd;
        public void setDbPath( String path ) {
            this.dbPath = path;
        public void setODBCDataSource( String ds ) {
            this.ODBCDataSource = ds;
        public void setDbURL( String dsname ) {
            this.dbURL = this.dbURL + dsname;
        /** Get Methodes                        */
        public String getDriver() {
            return this.Driver;
        // can be run only after a connection obj is setup
        public void getMDA() {
            try {
                this.dma = this.con.getMetaData();           
            catch (SQLException ex) {
                System.err.println("database connection: " + ex.getMessage());
        public void getDBTables() {
            //now dump out the names of the tables in the database
            String[] types = new String[1];
            types[0] = "TABLES"; //set table type mask
            //note the %-sign is a wild card (not '*')
            try {
                this.tables = this.dma.getTables(null, null, "%", types);
                dumpResults("--Tables--");
                this.tables.close();
                //this.listTables();
            catch (SQLException ex) {
                System.err.println("database connection: " + ex.getMessage());
            // listing tables
            /*int count = 0;
            int numCols = 0;
            //ResultSetMetaData rsmd;
            try {
                System.out.println("Listing db tables ...");
                //this.tables.beforeFirst();
                rsmd = this.tables.getMetaData();
                numCols = rsmd.getColumnCount();
                System.out.println("number of cols: " + numCols);
                boolean more = this.tables.first();
                System.out.println("this is why: " + more);
                while ( more ) {
                    count++;
                    for (int i = 1; i <= numCols; i++)
                        System.out.print( "Table-" + count + " -> " + this.tables.getString(count)+"    " );
                    System.out.println();
                    more = this.tables.next();
            catch ( SQLException ex ) {
                System.out.println( "problem listing db tables: " + ex.getMessage() );
        /** Other Methodes                      */
        // Initialize the db parameters, like driver, username, passwd, etc.
        public void dbInitialize() {
            // load configuration from config.txt (dbPath and ODBC Data Source name)
            this.loadDbConfig();
            // loadDriver
            this.loadDriver();
            // get username and password for the ODBC from user
            this.getDSSecurity();
            // populate dbURL, username and password
            this.setDbURL( this.ODBCDataSource );
            // connect to db
            this.dbConnect();
            // get db metadata
            this.getMDA();
            // get a list of tables in db
            this.getDBTables();
        // load JDBC driver
        public void loadDriver() {
            try {
                Class.forName( getDriver() );
            } catch (Exception e) {
                System.out.println("Failed to load JDBC/ODBC driver.");
                return;
        // connects to db and create a Connection obj and a Statement obj
        public void dbConnect() {
           try {
                this.con = DriverManager.getConnection (
                    this.dbURL,
                    this.Username,
                    this.Password);
                this.stmt = con.createStatement();
            } catch (Exception e) {
                System.err.println("problems connecting to "+this.dbURL);
        // creates table tblname in db
        public void CreateTable( String tblname ) {
            try {
                String sqlcommand = mergeTblName(sqlCreateTable, tblname);
                this.stmt.execute( sqlcommand );
            catch (SQLException ex) {
                System.err.println("problems with SQL statement sent to "+this.dbURL+
                    ": "+ex.getMessage());
                System.out.println("SQL Command: " + mergeTblName(sqlCreateTable, tblname) );
        // updates db with new record(s) by executing the SQL query sqlstmt
        // and closes db connection
        public void dbUpdate( String sqlstmt ) {
            try {
                // execute SQL commands to create table, insert data
                this.stmt.execute( sqlstmt );
                this.con.close();
            } catch (Exception e) {
                System.err.println("problems with SQL sent to "+this.dbURL+
                    ": "+e.getMessage());
        // list all user tables in the db
        public void listTables() {
            //now dump out the names of the tables in the database
            int count = 0;       
            try {
                System.out.println("Listing db tables ...");
                //this.tables.beforeFirst();
                while ( this.tables.next() ) {
                    count++;
                    System.out.print( "Table-" + count + " -> " + this.tables.getString(1) );
                    System.out.println();
            catch ( SQLException ex ) {
                System.out.println( "problem listing db tables: " + ex.getMessage() );
        // checks whether tbname exist in db as a table
        // this function has to be called after dbConnect
        public boolean tableExists( String tbname ) {
            boolean tbexists = false;
            //get the database metadata
            try {
                dma = con.getMetaData();           
            catch (SQLException ex) {
                System.err.println("database connection: " + ex.getMessage());
            //now dump out the names of the tables in the database
            String[] types = new String[1];
            types[0] = "TABLES"; //set table type mask
            //note the %-sign is a wild card (not '*')
            try {
                tables = dma.getTables(null, null, "%", types);
            catch (SQLException ex) {
                System.err.println("database connection: " + ex.getMessage());
            try {
                while ( tables.next() ) {
                    if ( tbname.equalsIgnoreCase( tables.getString(1) ) ) {
                        tbexists = true;
            catch ( SQLException ex ) {
                System.err.println("database connection: " + ex.getMessage());
            return tbexists;
        // merge tablename using REGEX
        public String mergeTblName( String sqlcommand, String tbname ) {
            String REGEX = "TABLENAME";
            String INPUT = sqlcommand;
            String REPLACE = tbname;
            Pattern p = Pattern.compile(REGEX);
            Matcher m = p.matcher(INPUT); // get a matcher object
            INPUT = m.replaceAll(REPLACE);
            //System.out.println(INPUT);
            return INPUT;
        // merge feildnames specific terms using REGEX
        public String mergeFldName( Message msg ) {
            String sqlcommand;
            sqlcommand = "insert into TABLENAME values" +
                    " ('" + msg.getName() + "', '" + msg.getSurname() + "', " +
                    msg.getComputerType() + ", '" + msg.getComputerNAL() + "', " +
                    msg.getHaveMonitor() + ", '" + msg.getMonitorNAL() + "', '" +
                    msg.getDateOfMsg() + "');";
            sqlcommand = mergeTblName( sqlcommand, CurrentAuditTable );
            return sqlcommand;
        // get users input char
        /**public char getChar() {
            int i = System.in.read();
            while (i != -1) {
              // here's your character
              char c = (char) i;
              i = System.in.read();
            return (char) i;
        // load the config parameters from config.txt
        public void loadDbConfig() {
            // make a file obj pointing to the config file config.txt
            File configFile = new File( this.configFile );
            //...checks on configFile are elided
            StringBuffer contents = new StringBuffer();
            //declared here only to make visible to finally clause
            BufferedReader input = null;
            try {
              //use buffering
              //this implementation reads one line at a time
              input = new BufferedReader( new FileReader(configFile) );
              String line = null; //not declared within while loop
              int count = 0;
              while (( line = input.readLine()) != null){
                //first line in config file is dbPath
                if(count == 0) this.setDbPath( line.trim() );
                //second line in config file is ODBCDataSource
                if(count == 1) this.setODBCDataSource( line.trim() );
                count++; 
                //contents.append(line);
                //contents.append(System.getProperty("line.separator"));
            catch (FileNotFoundException ex) {
                System.err.println("the file congif.txt cannot be found ...");
                System.err.print("Enter the path to db file (e.g. c:\\temp): ");
                BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
                //  read the db path from the command-line; need to use try/catch with the
                //  readLine() method
                try {
                    this.setDbPath( br.readLine() );
                catch (IOException ioe) {
                    System.out.println("IO error trying to read user input.");
                    System.exit(1);
                System.err.print("Enter the name of the ODBC Data Source: ");
                //  read the ODBC Data Source name from the command-line; need to use try/catch with the
                //  readLine() method
                try {
                    this.setODBCDataSource( br.readLine() );
                catch (IOException ioe) {
                    System.out.println("IO error trying to read user input.");
                    System.exit(1);
                ex.printStackTrace();
            catch (IOException ex){
              //ex.printStackTrace();
            finally {
              try {
                if (input!= null) {
                  //flush and close both "input" and its underlying FileReader
                  input.close();
              catch (IOException ex) {
                //ex.printStackTrace();
            //return contents.toString();
        // get datasource security details i.e. username and password
        public void getDSSecurity() {
            // get username
            System.out.print("Enter username for the ODBC DataSource: ");
            BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
            //  read the username from the command-line; need to use try/catch with the
            //  readLine() method
            try {
                this.setUsername( br.readLine() );
            catch (IOException ioe) {
                System.out.println("IO error trying to read username.");
                System.exit(1);
            // get password
            System.out.print("Enter password: ");
            //  read the username from the command-line; need to use try/catch with the
            //  readLine() method
            try {
                this.setPassword( br.readLine() );
            catch (IOException ioe) {
                System.out.println("IO error trying to read password.");
                System.exit(1);
        private void dumpResults(String head)
         //this is a general routine to print out
         //column headers and the contents of each column
         System.out.println(head);
          try
           //get the number of columns from the metadata
           this.rsmd = this.tables.getMetaData();      
           numCols = this.rsmd.getColumnCount();
           //print out the column names
           for (i = 1; i<= numCols; i++)
             System.out.print(rsmd.getColumnName(i)+"     ");
           System.out.println();
           //print out the column contents
           boolean more = this.tables.next();
           while (more)
             for (i = 1; i <= numCols; i++)
               System.out.print(this.tables.getString(i)+"     ");
             System.out.println();
             more = this.tables.next();
         catch(Exception e)
           {System.out.println(e.getMessage());}
        /** Creates a new instance of dbManager */
        public dbManager() {
            this.dbInitialize();
    }here is the result when I make a new dbManager obj from my server class which is a multithreaded one.
    H:\java>java EchoServer
    Enter username for the ODBC DataSource: admin
    Enter password: purina123
    Tables
    TABLE_CAT TABLE_SCHEM TABLE_NAME TABLE_TYPE REMARKS
    Listening for clients on 12111...
    here is the code of my server class called EchoServer:
    import java.net.*;
    import java.io.*;
    public class EchoServer
        ServerSocket m_ServerSocket;
        dbManager haDB;
        public EchoServer() 
            // db methods to setup a jdbc connection to the database
            haDB = new dbManager();
            // list tables
            //haDB.listTables();       
            //haDB.getDBTables();
            // create table
            //haDB.CreateTable("TestTable2");
            // update table
            // server code
            try
                // Create the server socket.
                m_ServerSocket = new ServerSocket(12111);
            catch(IOException ioe)
                System.out.println("Could not create server socket at 12111. Quitting.");
                System.exit(-1);
            System.out.println("Listening for clients on 12111...");
            // Successfully created Server Socket. Now wait for connections.
            int id = 0;
            while(true)
                try
                    // Accept incoming connections.
                    Socket clientSocket = m_ServerSocket.accept();
                    // accept() will block until a client connects to the server.
                    // If execution reaches this point, then it means that a client
                    // socket has been accepted.
                    // For each client, we will start a service thread to
                    // service the client requests. This is to demonstrate a
                    // multithreaded server, although not required for such a
                    // trivial application. Starting a thread also lets our
                    // EchoServer accept multiple connections simultaneously.
                    // Start a service thread
                    ClientServiceThread cliThread = new ClientServiceThread(clientSocket, id++, haDB);
                    cliThread.start();
                catch(IOException ioe)
                    System.out.println("Exception encountered on accept. Ignoring. Stack Trace :");
                    ioe.printStackTrace();
        public static void main (String[] args)
            new EchoServer();    
        class ClientServiceThread extends Thread
            Socket m_clientSocket;        
            int m_clientID = -1;
            dbManager m_db;
            boolean m_bRunThread = true;
            ClientServiceThread(Socket s, int clientID, dbManager db)
                m_clientSocket = s;
                m_clientID = clientID;
                m_db = db;
            public void run()
                // Obtain the input stream and the output stream for the socket
                // A good practice is to encapsulate them with a BufferedReader
                // and a PrintWriter as shown below.
                BufferedReader in = null; 
                PrintWriter out = null;
                Message msg = new Message();
                // Print out details of this connection
                System.out.println("Accepted Client : ID - " + m_clientID + " : Address - " + 
                                 m_clientSocket.getInetAddress().getHostName());
                try
                    in = new BufferedReader(new InputStreamReader(m_clientSocket.getInputStream()));
                    out = new PrintWriter(new OutputStreamWriter(m_clientSocket.getOutputStream()));
                    // At this point, we can read for input and reply with appropriate output.
                    // Run in a loop until m_bRunThread is set to false
                    while(m_bRunThread)
                        // read incoming stream
                        String clientCommand = in.readLine();
                        if ( clientCommand.indexOf(",") != -1 ) {
                            msg.deserialize( clientCommand );
                            System.out.println("SQL command: " + m_db.mergeFldName(msg) );
                            m_db.dbUpdate( m_db.mergeFldName(msg) );
                            //System.out.println("Name :" + msg.getName() );
                            //System.out.println("Surname :" + msg.getSurname() );
                            //System.out.println("ComputerType :" + msg.getComputerType() );
                            //System.out.println("ComputerNAL :" + msg.getComputerNAL() );
                            //System.out.println("HaveMonitor :" + msg.getHaveMonitor() );
                            //System.out.println("Monitor NAL :" + msg.getMonitorNAL() );
                            //System.out.println("AuditDate :" + msg.getDateOfMsg() );                       
                        System.out.println("Client Says :" + clientCommand);
                        if(clientCommand.equalsIgnoreCase("quit"))
                            // Special command. Quit this thread
                            m_bRunThread = false;   
                            System.out.print("Stopping client thread for client : " + m_clientID);
                        else
                            // Echo it back to the client.
                            out.println(clientCommand);
                            out.flush();
                catch(Exception e)
                    e.printStackTrace();
                finally
                    // Clean up
                    try
                        in.close();
                        out.close();
                        m_clientSocket.close();
                        System.out.println("...Stopped");
                    catch(IOException ioe)
                        ioe.printStackTrace();
    }

    I find that taking any problem and reducing it to the simplest thing is the best way to approach it.
    Why you had to post all that bloody code (especially since you didn't write it) is beyond me.
    This will list all the tables in an Access database (or any other, for that matter):
    import java.sql.Connection;
    import java.sql.DatabaseMetaData;
    import java.sql.DriverManager;
    import java.sql.ResultSet;
    import java.sql.ResultSetMetaData;
    import java.sql.SQLException;
    import java.util.ArrayList;
    import java.util.List;
    import org.jdom.Element;
    import org.jdom.Document;
    import org.jdom.output.XMLOutputter;
    public class TableLister
        public static final String DRIVER   = "sun.jdbc.odbc.JdbcOdbcDriver";
        public static final String DATABASE = "jdbc:odbc:DRIVER={Microsoft Access Driver (*.mdb)};DBQ=c:\\Edu\\Java\\Forum\\DataConnection.mdb";
        public static final String USERNAME = "admin";
        public static final String PASSWORD = "";
        public static void main(String [] args)
            try
                String driver           = ((args.length > 0) ? args[0] : DRIVER);
                String url              = ((args.length > 1) ? args[1] : DATABASE);
                String username         = ((args.length > 2) ? args[2] : USERNAME);
                String password         = ((args.length > 3) ? args[3] : PASSWORD);
                Class.forName(driver);
                Connection conn         = DriverManager.getConnection(url, username, password);
                DatabaseMetaData meta   = conn.getMetaData();
                // Bring back ALL tables and views, including SYSTEM tables.
                ResultSet tables        = meta.getTables(null, null, null, null);
                ResultSetMetaData rsmd  = tables.getMetaData();
                int numColumns          = rsmd.getColumnCount();
                List columnNames        = new ArrayList();
                for (int j = 0; j < numColumns; ++j)
                    columnNames.add(rsmd.getColumnName(j+1));
                Element root = new Element("tables");
                int tableCount = 0;
                while (tables.next())
                    Element table = new Element("table");
                    table.setAttribute("id", Integer.toString(++tableCount));
                    for (int j = 0; j < numColumns; ++j)
                        Element column = new Element((String)columnNames.get(j));
                        column.setText(tables.getString((String)columnNames.get(j)));
                        table.addContent(column);
                    root.addContent(table);
                conn.close();
                Document doc = new Document(root);
                XMLOutputter outputter = new XMLOutputter("   ", true);
                System.out.println(outputter.outputString(doc));
            catch (ClassNotFoundException e)
                System.err.println("Couldn't load JDBC driver class");
                e.printStackTrace();
            catch (SQLException e)
                System.err.println("SQL state: " + e.getSQLState());
                System.err.println("SQL error: " + e.getErrorCode());
                e.printStackTrace();
            catch (Exception e)
                e.printStackTrace();
    }Run it and see if it works for you. If it does, put the essence of the code into your stuff.
    %

  • Problems with Dynamical SQL Querys on Access Databases!

    This thread is for everyone who has the same problems like me.
    I tried to change SQL-Querys via Javascript to fill in my PDF sheet some data from my database.
    But whenever I want to change the Query, I never get some data back.
    The main problem was:
    THE ACCESS DATABASE
    Access has locked the database whenever I tried to run the Query.
    Now Iam using MySQL and everything is working fine.

    This thread is for everyone who has the same problems like me.
    I tried to change SQL-Querys via Javascript to fill in my PDF sheet some data from my database.
    But whenever I want to change the Query, I never get some data back.
    The main problem was:
    THE ACCESS DATABASE
    Access has locked the database whenever I tried to run the Query.
    Now Iam using MySQL and everything is working fine.

  • Re: To few parameters exception in Access database

    I used to deal with Access quite a bit in the past.
    This error can occur for a few reasons:
    1. One of your field names is a reserved word for Access. You can work around this by changing the name of the field OR by putting square brackets around the field name. For list of reserved words see:
    http://support.microsoft.com/default.aspx?scid=kb;EN-US;321266
    So for example if your field name is BINARY you need to say:
    select [BINARY] From Table1
    2. This can also happen if you have a typo in a field name. Any token that Access cannot understand it turns into a parameter, check the spelling of the fields.
    3. In rare cases this could be that you are hitting a query and not a table and the query has a parameter in it. If you run the query in Access itself and a dialog box pops up asking you to enter a value this is the case.

    Hello there
    Thank you for your post first of all.
    Well, the first and the last are not the case. I wrote in the initial post that the query runs just fine in Access, and I have no reserved words that I use in my query.
    For the second reasons, I understand that if one of my fields from within the query does not corespond to a column in the access database, Access will turn it into a parameter. Well since the query runs just fine in Access, and I have problem when I run it from a Java program, then I think this reason does not apply also.
    Any further suggestions will be apreciated.
    Regards,
    Mihai

  • Allow other users when upgrading from version 8 to 9

    When I originally installed Parallels 8 I did not allow access to Windows to other users on my iMac.  I am now upgrading to Parallels 9 and want to enable another user on my computer to access my Windows programs.  Will I be prompted to allow other users when I install the Parallels 9 upgrade or will I have to go into Parallels 9 later to allow this.  If I have to go in later, how do i do it.

    You might want to ask in the Parallels forum as to how Parallels 9 works. http://forum.parallels.com/forum.php

  • Exchange 2010 - Outlook can only open 8 other users' calendars

    I have a company that I moved to Exchange 2010 from Exchange 2003 recently. The old Exchange 2003 server has been removed from the organization. They have 30 mailboxes on a single server. Everything has been running smoothly but I have just discovered an issue.
    In this office there is one person who coordinates meetings, decides who uses what conference room for a given meeting, etc. She has full access to all of the other users' mailboxes. With Exchange 2003 she could access all of the other users' calendars simultaneously and would view them in overlay mode in Outlook 2003 and/or Outlook 2007.
    With Exchange 2010 she can only view the first 8 calendars she clicks on. If she tries to open a 9th calendar Outlook responds with the error message "The set pf folders could not be opened."
    I don't believe it to be a rights issue as she can open any 8 calendars upon first running Outlook. To access any others she has to uncheck one or more of the calendars previously selected, exit Outlook, restart Outlook and select different users calendars.
    This is only happening with Exchange 2010 - I've tested it on my Exchange 2007 server and another client's Exchange 2003 server and one can open as many other users calendars as there are.
    Is this a known limitation of Exchange 2010 or a new bug? Any workarounds?

    I'm betting that you have met the Exchange 2010 throttling policy......
    Take a read through this post please, the section on throttling:
    http://blogs.technet.com/b/rmilne/archive/2013/03/26/kicking-it-old-school-outlook-2003-partying-with-exchange-2010.aspx
    Cheers,
    Rhoderick
    Microsoft Senior Exchange PFE
    Blog:
    http://blogs.technet.com/rmilne 
    Twitter:   LinkedIn:
      Facebook:
      XING:
    Note: Posts are provided “AS IS” without warranty of any kind, either expressed or implied, including but not limited to the implied warranties of merchantability and/or fitness for a particular purpose.

  • How to access unread mails of all users in Exchange server without having Passwords and without giving mailbox access to other user.

    Hi all,
       I am using Exchange server 2013, my task is to create
    Service , that
    need's to  monitor continuously for new mails of all Mailboxes in
    my server. if any user got new mail i need to get that Mail Subject, Mail Body, Sender Email Address [From emailId] .  
    Limitation
    : I don't have Passwords of mailboxes , so i gave all mailbox access permission  to one user , then i completed this   service using below code.
     But now, Client
    not willing to give Mailbox Permissions to one user because of security problems.
    How can i do this without passwords and without giving permissions to other user ?
    i don't want all mailbox access , i just need only
    access Mail Subject , Body and Sender mail address .
    How can i achieve
    this ?
    Process i follow
    => I created new user in server , and then i gave full permissions of all Mailboxes to newly created user[ex: james] in database level.
         i use below command for giving permissions in database level.
    Get-MailboxDatabase -Identity <Database Name> | Add-ADPermission -User <User> -AccessRights GenericAll
     => using below code i am searching unread mails of all user Mailboxes and then getting Subject, body and Sender Email            address . here i am have list of users,
    ExchangeService service = new ExchangeService(ExchangeVersion.Exchange2013);
    service.Credentials = new WebCredentials("[email protected]", "password");
    service.AutodiscoverUrl("[email protected]");  foreach (Object obj in usersList) // here i have Mailbox users list in usersList
                 { var userMailbox = new Mailbox(obj.user);
    var folderId = new FolderId(WellKnownFolderName.Inbox, userMailbox);
    SearchFilter.IsEqualTo filter1 = new SearchFilter.IsEqualTo(EmailMessageSchema.IsRead, false);
    var itemView = new ItemView(50);
    var userItems = service.FindItems(folderId, filter1, itemView);
    foreach (var item in userItems)
    item.Load();
    var senderEmail = ((EmailMessage)item).From;
    var subject = item.Subject;
    var body = item.Body;

    You would need to check that possibilities via WebServices but suggest you to post this in Development forum to get help from programmers....
    http://social.technet.microsoft.com/Forums/office/en-US/home?forum=exchangesvrdevelopment
    Blog |
    Get Your Exchange Powershell Tip of the Day from here

  • Only one user at a time allowed to open MS Access database on a Mac share

    I have an issue trying to open a Microsoft Access database from our Mac OS X Server running on XServe.
    The MS Access file is stored on a Share Point on the XServe. Windows XP clients open the database. The problem is that it will only allow one user at a time to open the file. The has previously been operating fine when it was stored on a Windows server.
    The Group's permissions for this Share Point allow Read & Write.
    Any thoughts would be much appreciated.

    I think you're being misled a bit by the interface: the checkbox labelled "Strict locking" doesn't just allow strict locking, it requires it (and thus disallows byte-range locking). That is, with strict locking enabled, any client that tries to lock any part of the file actually locks the entire file. Access normally depends on byte-range locking to allow different clients to share the database (as long as they aren't trying to modify the same part of it at the same time), but with strict locking the first client locks all others out.

Maybe you are looking for

  • Can two users share the same catalog in PSE 10 on OSX Lion?

    Subject line says it all. I was able to do this with PSE7 on Windows 7, just by placing the catalog in a shared folder.  I tried something similar on Mac, creating a catalog under \Users\Shared, but only the user who created it is able to open it.

  • Problem after Windows 7 update 18. July 2013

    When trying to open a new project or to open any existing project Premiere Elements 9 starts to load files but stops after some 20 seconds without error message. Is there a way to solve this problem without uninstalling the recent updates?

  • How to increase space between two buttons in iphone

    Hi Iam creating 10 uibuttons dynamically and animate randomly. but any of two or four buttons are overlapped. plz tell me the solution. i have the following code in my ipad app: -(void)AnimateNumbers     for(NSMutableDictionary *dict in self.buttonAr

  • Crystal Reports and Sharepoint Access Services Connectivity

    How do I establish a connection between Crystal Reports and an access database hosted on a Sharepoint Access Services site? I've searched the forums but can't find any guidance. Thanks in advance, Angela

  • Drill Down with Union ALL in a query

    Why when i use a UNION ALL in a query or some sentences of SQL the drilldown disappears ? Does exists a special syntax ?? A query example: SELECT DISTINCT CASE T0.[ObjType] WHEN '13' THEN 'Factura' WHEN '203' THEN 'F. Anticipo' END AS Documento, T0.[