Need help trouble shooting Database Gateway for MS SQL Server setup, getting ORA-28546 error

Dear All,
I am trying to setup Oracle Database Gateway for MS SQL Server(I don't have admin access to the MS SQL Server).  When I try to test the dblink connection, I get the following error.
I issued select * from dual@xyz;
ORA-28546: connection initialization failed, probable Net8 admin error
ORA-28511: lost RPC connection to heterogeneous remote agent using SID=(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=localhost)(PORT=1521))(CONNECT_DATA=(SID=dg4msql)))
ORA-02063: preceding 2 lines from xyz
28546. 0000 -  "connection initialization failed, probable Net8 admin error"
My setup is the following.
1. Oracle 11gR2 running on Oracle Linux 6, the same version gateway is installed on the same server, but different home directory.
2. Oracle DB home directory is /u01/app/oracle/product/11.2.0/dbhome_1, gateway home directory is /u01/gateway.
3. I use the same listener.ora file for both the db and the gateway.
4. the contents of my listener.ora, tnsnames.ora and the initdg4msql.ora are below.
/u01/app/oracle/product/11.2.0/dbhome_1/network/admin/listener.ora
LISTENER =
  (DESCRIPTION_LIST =
    (DESCRIPTION =
      #(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1522))
      (ADDRESS = (PROTOCOL = TCP)(HOST = db.abc.com.tw)(PORT = 1522))
mssql =
  (DESCRIPTION_LIST =
    (DESCRIPTION =
      (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
SID_LIST_LISTENER =
  (SID_LIST =
    (SID_DESC =
      (GLOBAL_DBNAME=db.abc.com.tw)
      (ORACLE_HOME=/u01/app/oracle/product/11.2.0/dbhome_1)
      (SID_NAME=orcl)
SID_LIST_mssql =
  (SID_LIST =
    (SID_DESC =
      (SID_NAME=dg4msql)
      (ENVS=LD_LIBRARY_PATH=/u01/gateway/dg4msql/driver/lib:/u01/gateway/lib)
      (PROGRAM_NAME=/u01/gateway/bin/dg4msql)
/u01/app/oracle/product/11.2.0/dbhome_1/network/admin/tnsnames.ora
LISTENER_ORCL =
  (ADDRESS = (PROTOCOL = TCP)(HOST = db.abc.com.tw)(PORT = 1522))
ORCL =
  (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = db.abc.com.tw)(PORT = 1522))
    (CONNECT_DATA =
      (SERVER = DEDICATED)
      (SERVICE_NAME = orcl.abc.com.tw)
dg4msql  =
  (DESCRIPTION=
    (ADDRESS=(PROTOCOL=TCP) (HOST=localhost)(PORT = 1521))
    (CONNECT_DATA=(SID=dg4msql))
    (HS=OK)
/u01/gateway/dg4msql/admin/initdg4msql.ora
HS_FDS_CONNECT_INFO=[192.168.0.1]:1433//XIETEST
# alternate connect format is hostname/serverinstance/databasename
HS_FDS_TRACE_LEVEL=255
HS_FDS_RECOVERY_ACCOUNT=RECOVER
HS_FDS_RECOVERY_PWD=RECOVER
dblink was created using statement below.
CREATE DATABASE LINK "xyz.abc.COM.TW"
CONNECT TO SA IDENTIFIED BY
USING 'dg4msql';
Couple more things, that I have done to check the work above.
[oracle@db admin]$ ping 192.168.0.1
PING 192.168.0.1 (192.168.0.1) 56(84) bytes of data.
64 bytes from 192.168.0.1: icmp_seq=1 ttl=61 time=7.61 ms
64 bytes from 192.168.0.1: icmp_seq=2 ttl=61 time=7.41 ms
^C
--- 192.168.0.1 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1818ms
rtt min/avg/max/mdev = 7.417/7.516/7.615/0.099 ms
[oracle@db admin]$ tnsping dg4msql
TNS Ping Utility for Linux: Version 11.2.0.1.0 - Production on 11-SEP-2013 10:53:11
Copyright (c) 1997, 2009, Oracle.  All rights reserved.
Used parameter files:
/u01/app/oracle/product/11.2.0/dbhome_1/network/admin/sqlnet.ora
Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION= (ADDRESS=(PROTOCOL=TCP) (HOST=localhost)(PORT = 1521)) (CONNECT_DATA=(SID=dg4msql)) (HS=OK))
OK (0 msec)
[oracle@db admin]$ lsnrctl status mssql
LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 11-SEP-2013 10:54:23
Copyright (c) 1991, 2009, Oracle.  All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=localhost)(PORT=1521)))
STATUS of the LISTENER
Alias                     mssql
Version                   TNSLSNR for Linux: Version 11.2.0.1.0 - Production
Start Date                11-SEP-2013 10:09:46
Uptime                    0 days 0 hr. 44 min. 37 sec
Trace Level               off
Security                  ON: Local OS Authentication
SNMP                      OFF
Listener Parameter File   /u01/app/oracle/product/11.2.0/dbhome_1/network/admin/listener.ora
Listener Log File         /u01/app/oracle/diag/tnslsnr/db/mssql/alert/log.xml
Listening Endpoints Summary...
  (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=1521)))
Services Summary...
Service "dg4msql" has 1 instance(s).
  Instance "dg4msql", status UNKNOWN, has 1 handler(s) for this service...
The command completed successfully
Obviously, I would like to get this setup to work, but I also have couple other questions regarding this setup.
1. When installing the gateway, it asks to run the root.sh script.  the root.sh script as for the following.
Enter the full pathname of the local bin directory: [/usr/local/bin]:
The file "dbhome" already exists in /usr/local/bin.  Overwrite it? (y/n)
[n]: n
The file "oraenv" already exists in /usr/local/bin.  Overwrite it? (y/n)
[n]: n
The file "coraenv" already exists in /usr/local/bin.  Overwrite it? (y/n)
[n]: n
is the above answer correct?
Thanks for reading.

Dear Klaus,
I did start a new SQL*PLUS session
The output of  /u01/gateway/bin/dg4msql is
[oracle@db log]$ /u01/gateway/bin/dg4msql
Oracle Corporation --- WEDNESDAY SEP 11 2013 14:45:06.604
Heterogeneous Agent Release 11.2.0.1.0 - 64bit Production  Built with
   Oracle Database Gateway for MSSQL
The output of env is
HOSTNAME=db.abc.com.tw
SHELL=/bin/bash
TERM=xterm
HISTSIZE=1000
ORACLE_UNQNAME=orcl
TMPDIR=/tmp
QTDIR=/usr/lib64/qt-3.3
QTINC=/usr/lib64/qt-3.3/include
USER=oracle
LD_LIBRARY_PATH=/u01/app/oracle/product/11.2.0/dbhome_1/lib:/lib:/usr/lib
LS_COLORS=rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=01;05;37;41:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lz=01;31:*.xz=01;31:*.bz2=01;31:*.tbz=01;31:*.tbz2=01;31:*.bz=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.rar=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.axv=01;35:*.anx=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=01;36:*.au=01;36:*.flac=01;36:*.mid=01;36:*.midi=01;36:*.mka=01;36:*.mp3=01;36:*.mpc=01;36:*.ogg=01;36:*.ra=01;36:*.wav=01;36:*.axa=01;36:*.oga=01;36:*.spx=01;36:*.xspf=01;36:
ORACLE_SID=orcl
ORACLE_BASE=/u01/app/oracle
ORACLE_HOSTNAME=db.abc.com.tw
MAIL=/var/spool/mail/oracle
PATH=/u01/app/oracle/product/11.2.0/dbhome_1/bin:/usr/sbin:/usr/lib64/qt-3.3/bin:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:/home/oracle/bin
PWD=/home/oracle
LANG=en_US.UTF-8
SSH_ASKPASS=/usr/libexec/openssh/gnome-ssh-askpass
HISTCONTROL=ignoredups
SHLVL=1
HOME=/home/oracle
TMP=/tmp
LOGNAME=oracle
QTLIB=/usr/lib64/qt-3.3/lib
CVS_RSH=ssh
CLASSPATH=/u01/app/oracle/product/11.2.0/dbhome_1/jlib:/u01/app/oracle/product/11.2.0/dbhome_1/rdbms/jlib
LESSOPEN=|/usr/bin/lesspipe.sh %s
ORACLE_HOME=/u01/app/oracle/product/11.2.0/dbhome_1
G_BROKEN_FILENAMES=1
_=/bin/env

Similar Messages

  • Oracle Database Gateway for MS SQL server

    Hi,
    we have Oracle Database Appliance.
    OS: Oracle Linux 5 x64
    DB: 11.2.0.3 enterprise (Oracle Database Gateway for MS SQL server at the same version)
    Communication with remote DB is OK, but CPU load is too high without any reason. CPU waste, useless HW load, energy waste.
    Enterprise manager console:
    http://81.89.49.222/em.JPG
    OS top:
    http://81.89.49.222/top.JPG
    Please can you help me how to solve this issue? How can I restart these procesess? Any ideas?
    Thank you
    Michal

    Hi,
    we are using connection to multiple MS SQL servers:
    [oracle@odamaind1 ~]$ cat /u01/app/oracle/product/11.2.0.3/dbhome_1/dg4msql/admin/initaqpdb01.ora
    # This is a customized agent init file that contains the HS parameters
    # that are needed for the Database Gateway for Microsoft SQL Server
    # HS init parameters
    HS_FDS_CONNECT_INFO=[172.18.250.141]://master
    # alternate connect format is hostname/serverinstance/databasename
    HS_FDS_TRACE_LEVEL=OFF
    HS_FDS_RECOVERY_ACCOUNT=RECOVER
    HS_FDS_RECOVERY_PWD=RECOVER
    HS_FDS_SUPPORT_STATISTICS=FALSE
    HS_KEEP_REMOTE_COLUMN_SIZE=LOCAL
    HS_NLS_LENGTH_SEMANTICS=CHAR
    HS_FDS_TRANSACTION_MODEL=READ_ONLY
    HS_FDS_TRANSACTION_ISOLATION=UNCOMMITTED
    [oracle@odamaind1 ~]$ cat /u01/app/oracle/product/11.2.0.3/dbhome_1/dg4msql/admin/initcosima.ora
    # This is a customized agent init file that contains the HS parameters
    # that are needed for the Database Gateway for Microsoft SQL Server
    # HS init parameters
    HS_FDS_CONNECT_INFO=[172.20.250.99]//COSIMA
    HS_FDS_TRACE_LEVEL=OFF
    HS_FDS_RECOVERY_ACCOUNT=RECOVER
    HS_FDS_RECOVERY_PWD=RECOVER
    # custom init parameters
    HS_FDS_SUPPORT_STATISTICS=FALSE
    HS_KEEP_REMOTE_COLUMN_SIZE=LOCAL
    HS_NLS_LENGTH_SEMANTICS=CHAR
    HS_FDS_TRANSACTION_MODEL=READ_ONLY
    HS_FDS_TRANSACTION_ISOLATION=UNCOMMITTED
    [oracle@odamaind1 ~]$ cat /u01/app/oracle/product/11.2.0.3/dbhome_1/dg4msql/admin/initepos.ora
    # This is a customized agent init file that contains the HS parameters
    # that are needed for the Database Gateway for Microsoft SQL Server
    # HS init parameters
    HS_FDS_CONNECT_INFO=[172.18.250.41]:1433//epos
    # alternate connect format is hostname/serverinstance/databasename
    HS_FDS_TRACE_LEVEL=OFF
    HS_FDS_RECOVERY_ACCOUNT=RECOVER
    HS_FDS_RECOVERY_PWD=RECOVER
    HS_FDS_SUPPORT_STATISTICS=FALSE
    HS_KEEP_REMOTE_COLUMN_SIZE=LOCAL
    HS_NLS_LENGTH_SEMANTICS=CHAR
    HS_FDS_TRANSACTION_MODEL=READ_ONLY
    HS_FDS_TRANSACTION_ISOLATION=UNCOMMITTED
    [oracle@odamaind1 ~]$ cat /u01/app/oracle/product/11.2.0.3/dbhome_1/dg4msql/admin/initepospasohlavky.ora
    # This is a customized agent init file that contains the HS parameters
    # that are needed for the Database Gateway for Microsoft SQL Server
    # HS init parameters
    HS_FDS_CONNECT_INFO=[172.31.250.41]/SQL2012/epos
    # alternate connect format is hostname/serverinstance/databasename
    HS_FDS_TRACE_LEVEL=OFF
    HS_FDS_RECOVERY_ACCOUNT=RECOVER
    HS_FDS_RECOVERY_PWD=RECOVER
    HS_FDS_SUPPORT_STATISTICS=FALSE
    HS_KEEP_REMOTE_COLUMN_SIZE=LOCAL
    HS_NLS_LENGTH_SEMANTICS=CHAR
    HS_FDS_TRANSACTION_MODEL=READ_ONLY
    HS_FDS_TRANSACTION_ISOLATION=UNCOMMITTED
    dg4msl process, look at posted attachment (print screen of enterprise manager and top from OS).
    Thank you
    Michal

  • Oracle Gateway for MS SQL Server

    I have a oracle 10g database installed on Linux platform. I have installed oracle 11g gateways in the same system in a different location other than that of ORACLE_HOME.
    I have configured the initdg4msql.ora and configured the listener in the ORACLE_HOMEs listener.ora
    When I try to query the SQL Server table with the db link then I am getting the following error
    Error starting at line 1 in command:
    select * from dbo.jobs@testlink
    Error at Command Line:1 Column:23
    Error report:
    SQL Error: ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
    [Oracle][ODBC SQL Server Driver][libssclient22]ConnectionOpen.[Oracle][ODBC SQL Server Driver]Invalid connection string attribute
    ORA-02063: preceding 2 lines from TESTLINK
    the following is my initdg4msql.ora configuration:
    # This is a customized agent init file that contains the HS parameters
    # that are needed for the Database Gateway for Microsoft SQL Server
    # HS init parameters
    HS_FDS_CONNECT_INFO=sqlserv:1433//pubs
    # alternate connect format is hostname/serverinstance/databasename
    HS_FDS_TRACE_LEVEL=DEBUG
    HS_FDS_RECOVERY_ACCOUNT=RECOVER
    HS_FDS_RECOVERY_PWD=RECOVER
    can anyone tell me where am I going wrong?

    the patch is not applied to 10g db. Here is the last few lines of the dg4msql trace file
    Entered hgocont at 2007/11/13-12:38:05
    HS_FDS_CONNECT_INFO = "sqlserv:1433//pubs"
    RC=-1 from HOSGIP for "HS_FDS_CONNECT_STRING"
    Entered hgogenconstr at 2007/11/13-12:38:05
    dsn:sqlserv:1433//pubs, name:sa
    optn:
    Entered shgogohn at 2007/11/13-12:38:05
    Exiting shgogohn, rc=28500 at 2007/11/13-12:38:05
    Entered hgocont_OracleCsidToIANA at 2007/11/13-12:38:05
    Returning 3
    Exiting hgocont_OracleCsidToIANA at 2007/11/13-12:38:05
    ##>Connect Parameters (len=200)<##
    ## DRIVER=Oracle 11g dg4msql;
    ## Address=sqlserv,1433;
    ## Database=pubs;
    #! UID=sa;
    #! PWD=*
    ## AnsiNPW=Yes;
    ## QuotedId=Yes;
    ## IANAAppCodePage=3;
    ## ArraySize=100;
    ## PadVarbinary=0;
    ## SupportNumericPrecisionGreaterThan38=1;
    Exiting hgogenconstr, rc=0 at 2007/11/13-12:38:05
    Entered hgopoer at 2007/11/13-12:41:14
    hgopoer, line 159: got native error 0 and sqlstate HYT00; message follows...
    [Oracle][ODBC SQL Server Driver][libssclient22]ConnectionOpen.[Oracle][ODBC SQL Server Driver]Invalid connection string attribute
    Exiting hgopoer, rc=0 at 2007/11/13-12:41:14
    hgocont, line 1890: calling SqlDriverConnect got sqlstate HYT00
    Exiting hgocont, rc=28500 at 2007/11/13-12:41:14 with error ptr FILE:hgocont.c LINE:1910 FUNCTION:hgocont() ID:Something other than invalid authorization
    Exiting hgolgon, rc=28500 at 2007/11/13-12:41:14 with error ptr FILE:hgolgon.c LINE:612 FUNCTION:hgolgon() ID:Calling hgocont
    Entered hgoexit at 2007/11/13-12:41:14
    Exiting hgoexit, rc=0 at 2007/11/13-12:41:14

  • Help Configuring Transparent Gateway for Ms Sql Server

    I have Installed Oracle 9.2.0.1.0 with Transparent Gateway for Ms Sql Server.
    Followed the configuration furnished therein the Documents for Tnsnames.ora & Listener.ora.
    Connection to Sql Server 2000 is NOT SUCCESSFUL. Trace File contents from Tg4sql is furnished below :
    Oracle Corporation --- WEDNESDAY DEC 18 2002 22:32:50.625
    Heterogeneous Agent Release
    9.2.0.1.0
    HS Agent diagnosed error on initial communication,
    probable cause is an error in network administration
    Network error 2: NCR-00002: NCR: Invalid usage
    Note :- Sql Server & Oracle Server are on the same Machine running of Windows 2000 Server.
    Am i missing something !!!
    TIA

    Please guide me, would appreciate your suggestions to solve this heck....
    TIA

  • Oracle Transparent Gateway for MS SQL Server

    Hello,
    I successfully installed the Oracle transparent Gateway for MS SQL Server for Oracle 8i. Now I am doing the same for Oracle 9i.
    Does anyone know how to 'create a new gateway service' on 9i???
    This is how you would do that on 8i on the Windows box...
    1) At the MS-DOS prompt, enter:
    > set GTW_EXE=TG4MSQL.EXE
    2) To create a new gateway service name, enter:
    > GTWSRV73 sid -CREATE | MORE
    -where sid is the gateway sid.
    Does anyone know how to do those steps for 9i Oracle Transparent Gateway?
    Thank you.

    Hi
    I need oracle Tranparent Gateway for Microsoft Sqlserver (tg4msql) for oracle 10g on linux x86-64 bit. I have searched for it on otn.oracle.com and on edelivery.oracle.com. But couldn't find it.
    Can any one help me in this regard.
    Regards
    Nadir.

  • Oracle gateway for MS sql server 2005

    Is Oracle 9i Gateway for MS SQL Server compatible with SQL 2005? If not what are the other options?

    Check the support matrix at metalink.
    But be advised that Oracle 9i is in desupport mode.

  • Need help with Thin JDBC connecting Oracle to SQL server.

    I am fairly new to JAVA. We have ORACLE 8.1.7 running on Solaris 8. I have a need to
    periodically extract data from ORACLE DB and transfer it to SQL Server. I am limited to
    moving data from the ORACLE/UNIX environment to SQL Server side.
    From what I have read, Server-side Thin driver should work.
    1) Are there any issues in trying to achieve this with ORACLE running on the UNIX platform?
    2) Will the Server-side Thin driver talk to both the DBs ?
    3) Is it possible to provide some sample code ?
    Thanks in advance,
    Solomon

    Quattro,
    I had complete success in reading from Oracle and writing to SQL Server. First of all let me thank you for all your help. I do have one last request. Its more on optimization than any thing else.
    I was trying to optimize my code by grouping both the connections in one place and to keep my reads and inserts together so that I don't commit at the end of each insert etc. I don't seem to have the scope rules under control yet. Could you suggest how to improve this:
    import java.sql.*;
    public class Test_Combined2 {
    public static void main(String args[]) throws SQLException {
    // Load the Oracle JDBC driver
    DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
    // Connect to the database
    // You must put a database name after the @ sign in the connection URL.
    // You can use either the fully specified SQL*net syntax or a short cut
    // syntax as <host>:<port>:<sid>. The example uses the short cut syntax.
    Connection con2 = DriverManager.getConnection ("jdbc:oracle:thin:@Test:1521:PSDEVElOP",
    "SOLOMON","SOL1");
    // Create a Statement
    Statement stmt2 = con2.createStatement ();
    String url = "jdbc:microsoft:sqlserver://INTRADEV:1433;DatabaseName=Measure";
    Connection con;
    String query = "select dataYear, dataMonth, yieldRate from tblYield " ;
    Statement stmt;
    try {
    Class.forName("com.microsoft.jdbc.sqlserver.SQLServerDriver");
    } catch(java.lang.ClassNotFoundException e) {
    System.err.print("ClassNotFoundException: ");
    System.err.print(e.getMessage());
    // Select the ENAME column from the EMP table
    ResultSet rset = stmt2.executeQuery ("select year_start, monthofyear, percent_comp " +
    " from ps_usm_ytd_yield ");
    // Iterate through the result and print the employee names
    while (rset.next ()) {
    System.out.println (rset.getFloat (3));
    int ps_dataYear = rset.getInt(1);
    int ps_dataMonth = rset.getInt(2);
    float ps_yieldRate = rset.getFloat(3);
    try{
    con = DriverManager.getConnection (url, "tmpuser","tmppush");
    stmt = con.createStatement();
    PreparedStatement insertTblYield;
    String insertString = "insert into tblYield " +
    " values(?, ?, ?)";
    //con.setAutoCommit(false);
    insertTblYield = con.prepareStatement(insertString);
    insertTblYield.setInt(1, ps_dataYear);
    insertTblYield.setInt(2, ps_dataMonth);
    insertTblYield.setFloat(3, ps_yieldRate);
    insertTblYield.executeUpdate();
    con.commit();
    //con.setAutoCommit(false);
    /*ResultSet rs = stmt.executeQuery(query);
    System.out.println("dataYear, dataMonth, yieldRate");
    while (rs.next()) {
    int dataYear = rs.getInt(1);
    int dataMonth = rs.getInt(2);
    float yieldRate = rs.getFloat(3);
    System.out.println(" " + dataYear + ", " + dataMonth + ", " + yieldRate);
    stmt.close();
    con.close();
    } catch(SQLException ex) {
    System.err.print("SQLException: ");
    System.err.println(ex.getMessage());
    } //while
    stmt2.close();
    con2.close();

  • Need help trouble shooting on how to fix my MacBook Pro so it will start

    Ok, this is going to be a bit of a long one, cuz there are a good amount of details that go into the problem and how I have tried to fix it.
    To start, late last summer I got my Macbook Pro 15" with high resolution anti-glare, 500 GB X 7200 RPM hard drive, and everythin else standard.
    Next part of the story is that i decided to upgrade from my 3-year-old iPhone 3GS. So I preordered an iPhone 5 (never doing that again), and finally received it 10/05/12.
    Wanting to synch my new iPhone 5 ASAP so I could fully play with it, I finally synched my old iPhone 3GS with my MacBook Pro for the first time. I had not previously synched it with my MacBook Pro, because all of the songs and stuff that were on it were from being synched with my family's desktop (from maybe a year or so ago; I don't synch my phones often.). I also had been lazy this whole time in not transferring the songs and stuff from the desktop to my MacBook Pro, so thats why I didn't synch my 3GS, because I didn't want to lose that stuff on my phone until I had made time to transfer the data. Because of this, I didn't use iTunes that much and I updated it only 2 or 3 times over the year that I had if before I got my iPhone 5.
    After synching my old phone, I then tried synching the i5, but an iTunes pop up said that I needed to update to iTunes 7.0 in order to synch the new phone.
    So I canceled the pop-up, and checked the updates in iTunes, and selected update (I can't remember what it said I was updating to, but I don't think it was 7.0).
    After it started updating, it asked if I wanted to update something something else (I think it was an iOS update or something thing like that.).
    I select update, because it looks legit, and why not update the whole computer when I'm taking the time to update iTunes? So the 15-20 minute installation estimation time turns into 2 hours (I think that it said that there was 2GB of update, but not sure.).
    At that time, I think of how I don't remember if the update was 7.0 or not (maybe 6.9 or something like that was my thought.). So I tried to re-synched my i5 to make the pop up for iTunes 7.0 to come up. It came up, and I clicked the link to take me to Apple's site. I clicked the update to iTunes 7.0, and it started downloading from the internet, and it gave some download estimation time. Remember that the other iTunes and iOS thing was still updating while iTunes 7.0 was downloading. The problem was that I had to go to work a few minutes before the download of the iTunes 7.0 from Apple's site would complete and 1.5 hours before the other updates would finish. So I just left my MacBook Pro open, running, and updating/downloading.
    After work, I checked my laptop, and it said something about finalizing the installation. So I hit that button to finalize or whatever it said, and it starts finalizing.
    After waiting 10 or so minutes I check my MacBook Pro again, and it says that it needs to restart to complete the process. So I hit the restart button on the pop up.
    It restarted, and against a blue screen there was a grey pop up that said that there was some error or something like that in the installation and that I needed to restart the computer again. There was only one button on the pop up, and it was the "Restart" button. So I pressed it, and it restarted again.
    However, it didn't fully boot up (and to this day still doesn't) and get past the grey screen with the apple and the spinning gear thingy underneath it.
    After like 20 minutes, I did a forced shut off, and rebooted while holding the option button to see if I could start my Windows side, since I have my computer bootcamped, though I haven't used Windows on it yet. The three options appeared: Windows something, Macintosh something, and Recovery HD. I clicked the Windows button, and after loading and stuff, Windows was running and working. So I'm pretty sure that my problem isn't a hardware problem, but a software problem.
    So I asked a friend who is studying to be some kind of computer guy, and he suggested that I put in the Mac iOS X disk that I got with my MacBook Pro when I start up and try to get to Disk Utility. I did that, and was able to get to Disk Utility. And as he instructed, I (on the First Aid tab, I think) pressed "Verify Disk". He said that it started to look for problems and stuff. Then when it was done, I pressed the "Repair Disk", and he said it started fixing those problems. After it was done, I performed another forced shut off. I then turned my MacBook Pro on with crossed fingers, but it was still stuck on the gray screen with the apple and the gear.
    He then suggested that we try to start it in Safe Mode, so we researched how to do it on my family's desktop. I tried holding Shift after the turn on tone and releasing it when the spinning gear appeared, but that didn't work. I'm still not sure if that's the right way to start in safe mode.
    So right now I don't have any other ideas, besides spending money to get it fixed, which I don't want to do, cuz I'm not rich and I work hard for all these fancy toys.
    It ***** to have the joy of getting the newest iPhone overshadowed by my MacBook Pro not working.
    Someone, please help!!!

    First off your older OS X boot disks are no good as you upgraded OS X to a later version.
    When you held the option key down at boot, this entered Startup Manager and by what your describing you have Recovery HD, Macintosh HD (your OS X boot partition), and Windows BootCamp partition.
    To repair the drive, you enter Recovery HD and use Disk Utiltiy there to repair the Macintish HD partition.
    You also use Recovery HD to reinstall OS X 10.7 or 10.8 from Apple's servers, this should fix your problems without deleting your programs or files. (some third party with at boot kernel extension ones will have to be reinstalled)
    All you need to know is here
    Step by Step to fix your Mac
    https://discussions.apple.com/community/notebooks/macbook_pro?view=documents

  • Need help trouble shooting psinfo

    Folks... I am confused... I need to programatically read the command line arguments in /proc/<pid>/as.
    For 2 processes I get the message "as open: Permission denied". The processes are
    smmsp 366 1 1 1 0 Jun 20 ? 0:05 /usr/lib/sendmail -Ac -q15m
    AND
    root 367 1 0 Jun 20 ? 1:02 /usr/lib/sendmail -bd -q15m
    I am running my code as root... When I try using pargs I get the message "pargs: cannot examine 366: permission denied"
    Can anyone explain why it these 2 processes that are in trouble? Is this real?
    Thanx
    Siva

    Thanks for your suggestion regarding contacting Apple. I called the Express service and talked for a couple of hours trying to resolve the issues.
    One, to deal with the password issue, Keychain Access > Preferences > click on Reset My Default Keychain, close.
    For the original issue of mail downloading messesges from my server every time I checked mail,
    Library > Mail folder > messagealreadydownloaded3 > drag to trash. Issues resolved!!!
    As for creating a pretty good mess... well all I can say is that I was following suggestions from other users that have posted online with similar issue. Lesson learned??? Not sure if there was one:-)

  • Need help trouble shooting mail issue

    Mail issue started when the compter (imac intel, g4, os 10.6.8) said it needed to restart during a mail download. I restarted, then the mail program would not stop downloading older messages. I went online and followed a whole bunch of suggestions, which only made matters worse (preferences... drag com.mail.plist to desktop, add it back, rebuild mail) nothing worked. I then trashed the mail program, and trashed some of the mail cache (not wanting to lose preferences, I lett this cache). Then mail I could not access mail without the set-up assistant showing on screen. So... (digging a deeper and deeper hole!) I tried to restore mail from my time machine back-up (severl days prior to issue) and it did not help. I then reinstalled applications from snow leopard... not helpful. I then figured I could use migration assistant to copy my working mail program from my mac pro and this did not solve the issues. Of course all of this taking me away from my Christmas shopping:-)
    So, I tried to set it up manually, but the program will not save the password and it keeps asking for the password but rejecting it each time.
    Any ideas??

    Thanks for your suggestion regarding contacting Apple. I called the Express service and talked for a couple of hours trying to resolve the issues.
    One, to deal with the password issue, Keychain Access > Preferences > click on Reset My Default Keychain, close.
    For the original issue of mail downloading messesges from my server every time I checked mail,
    Library > Mail folder > messagealreadydownloaded3 > drag to trash. Issues resolved!!!
    As for creating a pretty good mess... well all I can say is that I was following suggestions from other users that have posted online with similar issue. Lesson learned??? Not sure if there was one:-)

  • I need help trouble shooting my 2 apple TV set up in home.

    I have 2 Apple TVs in my home.  One Gen1 and 1 Gen2.  The gen1 is working fine with home sharing and finding the movies, etc.  But the gen 2 is not showing up in iTunes under devices and I can't get it to pull down the content (movies, songs, etc).  What should I do?

    ATV1 doesn't use Home Sharing but ATV2 does.
    ATV1 was set up using an onscreen code you entered in iTunes for that device.
    On ATV2 as you set up Home Sharing credentials on the unit it then finds Home Shared itunes libraries without the numeric code step.  Consequently ATV2's never show in Devices (unless restoring them over USB).
    ATV1 had a hard drive to store contemt. ATV2 has solid state memory and only a small amount so cannot store any content permanently like ATV1. ATV2 only streams.  Do you see the iTunes library under the Computers column?

  • I need help trouble shooting.... Screen/Monitor related.

    My monitor was going reddish/flickering and the backlight was going out so i can i could only barely see what's on the screen. The screen would also just blackout if it was on the brightest setting before. 
    A couple of days ago i replaced the CCFL backlight. No problems lights up nicely when the screen is not attached.  When i try to attach the screen to the hinges it will short out the lamp.  So basically, if the lcd frame (metal portion) touches the left or right hand sided "hinges or metal" that it screws into it will short hte lamp out.  I just have to put it back into sleep mode and then restart it w/o the lcd touching hte metal.  I've replaced the inverter, that did not help. 
    I am replacing the LCD cable when the part comes in.  The whole laptop is taken apart. I can not find any exposed wires.  Does anybody have anymore suggestions. I am out of ideas.
    T60, model 2007-64U, 14.1 screen.  HELP

    I give up!!!
    All parts don't fix the problem... I tried insulating the metal pseudo works... now the screen shuts off when its touched or moved. Different problems now....
    I have decided after a week and half of fixing and spending $50 in replacing CCFL, inverter, and LCD cable I am junking the T60 and leaving IBM/Lenovo.
    Going to go get a Mac Book Pro.  
    Cheers to everyone here... see ya.

  • Need help in improving the performance for the sql query

    Thanks in advance for helping me.
    I was trying to improve the performance of the below query. I tried the following methods used merge instead of update, used bulk collect / Forall update, used ordered hint, created a temp table and upadated the target table using the same. The methods which I used did not improve any performance. The data count which is updated in the target table is 2 million records and the target table has 15 million records.
    Any suggestions or solutions for improving performance are appreciated
    SQL query:
    update targettable tt
    set mnop = 'G',
    where ( x,y,z ) in
    select a.x, a.y,a.z
    from table1 a
    where (a.x, a.y,a.z) not in (
    select b.x,b.y,b.z
    from table2 b
    where 'O' = b.defg
    and mnop = 'P'
    and hijkl = 'UVW';

    987981 wrote:
    I was trying to improve the performance of the below query. I tried the following methods used merge instead of update, used bulk collect / Forall update, used ordered hint, created a temp table and upadated the target table using the same. The methods which I used did not improve any performance. And that meant what? Surely if you spend all that time and effort to try various approaches, it should mean something? Failures are as important teachers as successes. You need to learn from failures too. :-)
    The data count which is updated in the target table is 2 million records and the target table has 15 million records.Tables have rows btw, not records. Database people tend to get upset when rows are called records, as records exist in files and a database is not a mere collection of records and files.
    The failure to find a single faster method with the approaches you tried, points to that you do not know what the actual performance problem is. And without knowing the problem, you still went ahead, guns blazing.
    The very first step in dealing with any software engineering problem, is to identify the problem. Seeing the symptoms (slow performance) is still a long way from problem identification.
    Part of identifying the performance problem, is understanding the workload. Just what does the code task the database to do?
    From your comments, it needs to find 2 million rows from 15 million rows. Change these rows. And then write 2 million rows back to disk.
    That is not a small workload. Simple example. Let's say that the 2 million row find is 1ms/row and the 2 million row write is also 1ms/row. This means a 66 minute workload. Due to the number of rows, an increase in time/row either way, will potentially have 2 million fold impact.
    So where is the performance problem? Time spend finding the 2 million rows (where other tables need to be read, indexes used, etc)? Time spend writing the 2 million rows (where triggers and indexes need to be fired and maintained)? Both?

  • New to sap - need help in configure backup strategy for SAP XI server.

    hi gurus
    being a netweaver guy, recently i have been given  the responsibility of few basis activities.like database backup.
    can any one tell me clear procedure to take both daily online and weekend full offline backup of oracle in to disk first and then to tape.   i have seen in the internet  material few discussing about brbackup and few about sap DB13. i am totally confused which one to use, and which is good. please help
    akhil

    Hi,
    welcome on board as SAP Netweaver guy,
    don't be confused both DB13 and BRtools are the same both of them will call brbackup.
    to configure the brtools you have to change in your brtools profiles located at  %ORACLE_HOME%/dbs
    please before changing any thing take backup from that folder.
    - to take the backup to disk then to tape you will need extra backup software, because using the SAP slandered tools you have to select either Disk or Tape.
    Thanks
    Sherif

  • Transparent Gateway for MS SQL Server on Win 2000

    Can anyone tell me where I can get this software from? I was led
    to believe it was part of the 9.0.1 CD Pack for Microsoft
    Windows but it doesnt appear to part of it. Do I have to
    purchase another piece of software or can I download it from
    somewhere?
    Regards,

    The gateway is available on the Oracle database CD v9.0.1. There
    is no separate CD for the gateway as of v9.0.1.
    You can install the gateway but choosing the custom install
    option during the installation process.

Maybe you are looking for