Cannot sqlplus sys as sysdba from remote server :ORA-12154

Hi,
I am trying to connect from linux VM app server to the database as sys as sysdba but it returns TNS error. I verified that listener is up, the REMOTE_LOGIN_PASSWORDFILE is exclusive and there is password file.
[ORACLE@SERVER admin]$ sqlplus sys as sysdba
SQL*Plus: Release 11.2.0.1.0 Production on Fri Apr 12 21:45:08 2013
Copyright (c) 1982, 2009, Oracle. All rights reserved.
Enter password:
ERROR:
ORA-12154: TNS:could not resolve the connect identifier specified
==============================================
It works when I give the DB name
[ORACLE@SERVER admin]$ sqlplus sys@ODB2 as sysdba
SQL*Plus: Release 11.2.0.1.0 Production on Fri Apr 12 21:49:50 2013
Copyright (c) 1982, 2009, Oracle. All rights reserved.
Enter password:
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL>
==================================================
Could anyone please help me with the issue ?
Edited by: Cherrish on Apr 12, 2013 10:53 PM

Cherrish wrote:
Hi,
I am trying to connect from linux VM app server to the database as sys as sysdba but it returns TNS error. I verified that listener is up, the REMOTE_LOGIN_PASSWORDFILE is exclusive and there is password file.
[ORACLE@SERVER admin]$ sqlplus sys as sysdba
SQL*Plus: Release 11.2.0.1.0 Production on Fri Apr 12 21:45:08 2013
Copyright (c) 1982, 2009, Oracle. All rights reserved.
Enter password:
ERROR:
ORA-12154: TNS:could not resolve the connect identifier specifiedRealize that sqlplus line above shows no @TNS_ALIAS so no SQL*Net should be used to connect.
please type EXACTLY (line for line) as shown below
env | sort
sqlplus
/ as sysdba
COPY the results from above then PASTE all back here

Similar Messages

  • Cant conect "sys as sysdba" from remote

    Hi all ,
    A strange thing happening with me ..
    my database is on ip(prod1) and client is ip(Host)
    When I make connecttion from prod1 as follows :
    sqlplus sys@prod1 as sysdba
    connected ...
    Its giving me sys connection .
    But from IP (remote HOst client )
    when i fire
    sqlplus sys@prod1 as sysdba
    LOGON denied ...
    But from IP(remote Host client )when i firng
    sqlplus scott/tiger@prod1
    connected ....
    1.i m typing crrect password
    2. my remote_login_passwordfile = EXCLUSIVE

    1. Are you connecting to the right database ?
    On you remote client:
    $ORACLE_HOME/bin/tnsping prod1 and make sure that it'is resolving to the right service.
    2. Try to connect via EZCONNECT (NAMES.DIRECTORY_PATH should contain ezconnect value):
    $ORACLE_HOME/bin/sqlplus sys@hostname:port/service as sysdba
    On your server
    3. Check your $TNS_ADMIN/sqlnet.ora Make sure there is no such a line as
    tcp.validnode_checking = yes
    If so, make sure that your remote client is a part of tcp.invited_nodes

  • Oracle connection from remote server where oracle client is installed not happening.

    Hi  ,
    I am facing problem today , that i am not able to reach oracle DB from other machine where i have installed Oracle clinet few months ago. Same was heppeing till yesterday.
    OS: Windows
    Version: 11G
    Oracle DB TNS:
    # tnsnames.ora Network Configuration File: C:\app\oracluadmin\product\11.2.0\dbhome_1\NETWORK\ADMIN\tnsnames.ora
    # Generated by Oracle configuration tools.
    DFCCDB =
      (DESCRIPTION =
        (ADDRESS_LIST =
          (ADDRESS = (PROTOCOL = TCP)(HOST = 10.199.4.130)(PORT = 1521))
        (CONNECT_DATA =
          (SERVER = DEDICATED)
          (SERVICE_NAME = dfccdb.dfcc.co.in)
    ORACLR_CONNECTION_DATA =
      (DESCRIPTION =
        (ADDRESS_LIST =
          (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
        (CONNECT_DATA =
          (SID = CLRExtProc)
    Output from DB server:
    C:\Users\oracluadmin>tnsping DFCCDB
    TNS Ping Utility for 64-bit Windows: Version 11.2.0.3.0 - Production on 28-JAN-2014 14:51:22
    Copyright (c) 1997, 2011, Oracle.  All rights reserved.
    Used parameter files:
    C:\app\oracluadmin\product\11.2.0\dbhome_1\network\admin\sqlnet.ora
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = 10.199.4.130)(PORT = 1521))) (CONNECT_DATA = (SERVER
    = DEDICATED) (SERVICE_NAME = dfccdb.dfcc.co.in)))
    OK (0 msec)
    C:\Users\oracluadmin>sqlplus SYS AS SYSDBA@DFCCDB
    SQL*Plus: Release 11.2.0.3.0 Production on Tue Jan 28 14:56:15 2014
    Copyright (c) 1982, 2011, Oracle.  All rights reserved.
    Enter password:
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    SQL>
    Clinet server TNS:
    DFCCDB =
      (DESCRIPTION =
        (ADDRESS_LIST =
          (ADDRESS = (PROTOCOL = TCP)(HOST = 10.199.4.130)(PORT = 1521))
        (CONNECT_DATA =
          (SERVER = DEDICATED)
          (SERVICE_NAME = dfccdb.dfcc.co.in)
    Output from client server:
    C:\Users\gisadmin>tnsping DFCCDB
    TNS Ping Utility for 64-bit Windows: Version 11.2.0.1.0 - Production on 28-JAN
    014 15:06:18
    Copyright (c) 1997, 2010, Oracle.  All rights reserved.
    Used parameter files:
    C:\app\gisadmin\product\11.2.0\client_1\network\admin\sqlnet.ora
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TC
    (HOST = 10.199.4.130)(PORT = 1521))) (CONNECT_DATA = (SERVICE_NAME = dfccdb.df
    .co.in)))
    OK (10 msec)
    C:\Users\gisadmin>sqlplus SYS AS SYSDBA@DFCCDB
    SQL*Plus: Release 11.2.0.1.0 Production on Tue Jan 28 15:06:36 2014
    Copyright (c) 1982, 2010, Oracle.  All rights reserved.
    Enter password:
    ERROR:
    ORA-12560: TNS:protocol adapter error
    Enter user-name:
    Thnaks....

    Hi,
    Refer the logs:
    <msg time='2014-02-11T10:43:10.455+05:30' org_id='oracle' comp_id='tnslsnr'
    type='UNKNOWN' level='16' host_id='DFCC-GISDB-01'
    host_addr='10.199.4.58'>
    <txt>11-FEB-2014 10:43:10 * (CONNECT_DATA=(SERVICE_NAME=dfccdb.dfcc.co.in)(CID=(PROGRAM=C:\app\gisadmin\product\11.2.0\client_1\bin\sqlplus.exe)(HOST=DFCC-GISAPP-01)(USER=gisadmin))) * (ADDRESS=(PROTOCOL=tcp)(HOST=10.199.4.55)(PORT=25229)) * establish * dfccdb.dfcc.co.in * 12514
    </txt>
    </msg>
    <msg time='2014-02-11T10:43:10.455+05:30' org_id='oracle' comp_id='tnslsnr'
    type='UNKNOWN' level='16' host_id='DFCC-GISDB-01'
    host_addr='10.199.4.58'>
    <txt>TNS-12514: TNS:listener does not currently know of service requested in connect descriptor
    </txt>
    </msg>
    <msg time='2014-02-11T10:43:58.706+05:30' org_id='oracle' comp_id='tnslsnr'
    type='UNKNOWN' level='16' host_id='DFCC-GISDB-01'
    host_addr='10.199.4.58'>
    <txt>11-FEB-2014 10:43:58 * (CONNECT_DATA=(SERVICE_NAME=dfccdb.dfcc.co.in)(CID=(PROGRAM=C:\app\gisadmin\product\11.2.0\client_1\bin\sqlplus.exe)(HOST=DFCC-GISAPP-01)(USER=gisadmin))) * (ADDRESS=(PROTOCOL=tcp)(HOST=10.199.4.55)(PORT=25230)) * establish * dfccdb.dfcc.co.in * 12514
    </txt>
    </msg>
    <msg time='2014-02-11T10:43:58.722+05:30' org_id='oracle' comp_id='tnslsnr'
    type='UNKNOWN' level='16' host_id='DFCC-GISDB-01'
    host_addr='10.199.4.58'>
    <txt>TNS-12514: TNS:listener does not currently know of service requested in connect descriptor
    </txt>
    </msg>
    <msg time='2014-02-11T10:44:33.120+05:30' org_id='oracle' comp_id='tnslsnr'
    type='UNKNOWN' level='16' host_id='DFCC-GISDB-01'
    host_addr='10.199.4.58'>
    <txt>11-FEB-2014 10:44:33 * (CONNECT_DATA=(SERVICE_NAME=dfccdb.dfcc.co.in)(CID=(PROGRAM=C:\app\gisadmin\product\11.2.0\client_1\bin\sqlplus.exe)(HOST=DFCC-GISAPP-01)(USER=gisadmin))) * (ADDRESS=(PROTOCOL=tcp)(HOST=10.199.4.55)(PORT=25231)) * establish * dfccdb.dfcc.co.in * 12514
    </txt>
    </msg>
    <msg time='2014-02-11T10:44:33.136+05:30' org_id='oracle' comp_id='tnslsnr'
    type='UNKNOWN' level='16' host_id='DFCC-GISDB-01'
    host_addr='10.199.4.58'>
    <txt>TNS-12514: TNS:listener does not currently know of service requested in connect descriptor
    </txt>
    </msg>
    <msg time='2014-02-11T10:45:24.662+05:30' org_id='oracle' comp_id='tnslsnr'
    type='UNKNOWN' level='16' host_id='DFCC-GISDB-01'
    host_addr='10.199.4.58'>
    <txt>11-FEB-2014 10:45:24 * (CONNECT_DATA=(SERVICE_NAME=dfccdb.dfcc.co.in)(CID=(PROGRAM=C:\app\gisadmin\product\11.2.0\client_1\bin\sqlplus.exe)(HOST=DFCC-GISAPP-01)(USER=gisadmin))) * (ADDRESS=(PROTOCOL=tcp)(HOST=10.199.4.55)(PORT=25280)) * establish * dfccdb.dfcc.co.in * 12514
    </txt>
    </msg>
    <msg time='2014-02-11T10:45:24.662+05:30' org_id='oracle' comp_id='tnslsnr'
    type='UNKNOWN' level='16' host_id='DFCC-GISDB-01'
    host_addr='10.199.4.58'>
    <txt>TNS-12514: TNS:listener does not currently know of service requested in connect descriptor
    </txt>
    </msg>
    <msg time='2014-02-11T10:48:00.819+05:30' org_id='oracle' comp_id='tnslsnr'
    type='UNKNOWN' level='16' host_id='DFCC-GISDB-01'
    host_addr='10.199.4.58'>
    <txt>11-FEB-2014 10:48:00 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=)(USER=oracluadmin))(COMMAND=status)(ARGUMENTS=64)(SERVICE=LISTENER)(VERSION=186647296)) * status * 0
    </txt>
    </msg>
    <msg time='2014-02-11T10:48:14.547+05:30' org_id='oracle' comp_id='tnslsnr'
    type='UNKNOWN' level='16' host_id='DFCC-GISDB-01'
    host_addr='10.199.4.58'>
    txt>11-FEB-2014 10:48:14 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=)(USER=oracluadmin))(COMMAND=services)(ARGUMENTS=64)(SERVICE=LISTENER)(VERSION=186647296)) * services * 0
    </txt>
    </msg>

  • HOw to delete files from remote server?

    Hi,
    I want to delete files from a directory on remote server.
    I use the following command to delete on current server:
    find $srcdir -mtime +90 -name "COR*.txt" -exec rm -f {} \;
    Now, how can I delete files from remote server ?
    Thanks!
    Yogini

    Some possible options:
    1. There exists SSH implementation for Windows.
    2. You can make a workaround. You can setup share for specific/wanted directory.
    Then you can mount it on Linux machine and execute command localy and delete files "localy" in mounted directory.
    3. You can setup FTP server on Windows machine and do that remotely via FTP commands.

  • Drag and drop from remoter server

    Drag and drop from remoter server I get this<img src="../My Documents/SITKA/Unnamed Site 6/4coldfront_jacketAD.jpg" width="207" height="207" longdesc="http://www.jonsered.ws" /> what I want is this <img src="http://www.jonsered.ws/coldfront_jacketAD.jpg" width="207" height="207" longdesc= />
    the first one does not work on the web
    How is this done?

    When you click on a file (drag & drop) in Remote Server panel, DW GETS the file and places it in your Local Site folder.
    Your local site is defined in DW as ./My Documents/SITKA/Unnamed Site 6/.  Hence the path name change.
    Make sense?
    Nancy O.

  • PL/SQL: ORA-22992: cannot use LOB locators selected from remote tables

    Dear ALL,
    My O/S is Redhatlinux 5.2 and i had Migrated my Oracle databse to 11g2. But after that while i am retrieving records through dblinks from one of my other Oracle 9.2.0.8 databse it's throwing the error : PL/SQL: ORA-22992: cannot use LOB locators selected from remote tables.* This error i am getting in TOAD as well as SQL Developer.
    Can anybody tell me how to fix this error ? Because am not able to get the records.
    Also am getting another error during retrieving data from some of my tables after migrating i.e the table which having CLOB data type while am accessing to retrieve the records using select query it's throwing the error :
    +(The following error has occurred:+
    A query with LOB's requires OCI8 mode, but OCI7 mode is used.)
    If anyone having any idea kindly share.
    Thanks and Regards
    Biswa

    Hi,
    Ya what u sent that is fine. But already am using one procudure which is accessing LOB data from another databse through DBlink and working fine. But there Both the databse are 9.2.0.8.
    But while am executing the same procedure in oracle 11g where the Dblink accessing the data from Oracle 9i , there am getting this error.
    Kindly tell if u know any resolution.
    Thanks

  • Can't call a VI from remote server

    I have a VI running on a labview development machine(Labview 2010), the main function is handling excel report using report generator. I follow the link http://www.ni.com/white-paper/14469/en to set up labview machine and teststand machine respectly. But when I tried to call the VI from remote server, it is still not able to load the VI front panel and show the connectors. See the  attachment. It looks like it still trying to load VI from local drive because it can't find the builded-in subvis for report generator function.
    What should I do to make it work? Thanks!
    Solved!
    Go to Solution.
    Attachments:
    TestStand error.png ‏107 KB

    For those interested in the solution, the problem turned out to be two things.
    The first is if you want to be able to load a prototype of the VI in TestStand, you will need to either share the VI or create a dummy VI. If the shared VI uses subVIs you do not have access to, then you are better of creating a dummy VI that has matching connector panes.
    The second problem had to do with how the remote VI path was specified. If you have shared the VI, then you will enter in the shared folder path as your remote VI path. If you have not shared it, then you will need to enter in the VI path as it is on the remote machine.
    Rohama K.

  • Debug flex app loaded from remote server

    Hi,
    I'm developing a flex app which gets loaded from a remote
    server and it connects using amf to that server and gets some data.
    Now, I can't test from within the flex builder ide, as the URL will
    be empty. When I test using IE/Firefox pointing to the remote
    server URL where this debug.html is mounted, the swf asks for a
    host ip/name where a flash/flex debugger runs. When I give
    localhost/127.0.0.1, it fails and displays the dialog box again. Is
    there a way to connect the swf from remote server to connect to a
    debug console inside the FB2 ide?

    Well, I ran all commands shipped with FB2and found out that
    fdb does connect and allows to "continue". Still the in IDE
    developing experience and quick turn around isn't there. Is there a
    way to get the URL from which the swf was loaded from within the
    swf, so that if its a remote server, I can get data from it, else
    its in debug state, so I can get data from some hard coded
    host.

  • How to get the entire database from remote server to my server

    Hi,
    I am running a web application with sample data. Now i need to access the original data through this application. But the original data is located in the other server which is located in Mumbai.
    Now i need the copy of that database to my system(Chennai). with minimum effort.
    It is very urgent...
    Thanks in advance...
    Chaitanya.

    Hi
    Nicolas is right. You can also take advantage of exp/imp utility. That would not only get the entire db in one file but also the size will be a fraction of the entire db size.You can search for DataPump (that uses expdp and impdp) utility to expedite the export/import process.
    For simple exp/imp you can do the following.
    From Remote site(MUMBAI) issue
    ORACLE_HOME\BIN\exp file=c:\fulldbexp09sept05.dmp log=c:\fulldbexp09sept05log.log FULL=Y userid=system/pwd@connectstringOfyourdb
    Get a copy of fulldbexp09sept05.dmp and place it on your local drive in Chennai
    On Local Site (Chennai)
    ORACLE_HOME\BIN\imp file=fulldbexp09sept05.dmp log=fulldbimp09sept05 FULL=Y userid=system/pwd@connectstringOfyourlocaldb
    By this you can take advantage of having a different db name on remote and local sites. This is a fairly easy exercise. You just need to be sure that in your TNSNAMES.ORA you have correctly defined the connectString for your db.
    PS: Create a database on local server with default settings.
    Make use of following to create appropriate tablespaces and users if you desire ie.
    1. On Remote Site open SQLPLUS session and issue this command to find out the tablespaces, datafiles and their sizes
    SQL>SELECT SUBSTR(file_name,1,60) FILE_NAME, tablespace_name, bytes
    FROM dba_data_files
    GROUP BY tablespace_name, file_name;
    Now create the tablespaces on local sites using the result of the above query.
    2. On Remote Site open SQLPLUS session and issue this command to spool user creation script.
    SQL>spool c:\createuserscript.lst
    SQL> SELECT 'CREATE USER ||' IDENTIFIED BY VALUES '||'"'||PASSWORD||'"'||' DEFAULT TABLESPACE '||DEFAULT_TABLESPACE||' TEMPORARY TABLESPACE '||TEMPORARY_TABLESPACE||';'
    FROM dba_users
    WHERE username NOT IN ('SYS','SYSTEM')
    ORDER BY username;
    SQL>spool off
    Now edit this createuserscript using any editor and replace " with '. Copy this file to the local server and run it using @. This will create appropriate users.
    Let me know if you have any problems.
    Regards
    Adnan Mashhadi
    Nicolas I am not sure as how to eliminate the " in my script. Any comment will be appreciated.

  • Cannot connect to DB from remote computer (ORA-12545)

    Hello all,
    Please help, I am stumped.  I am trying to connect to a database located at my work from at home.
    I am running into the following issue (see command and error below):
    ansichart@ansivm:~/src/perl$ sqlplus aspxdba/********@aspxp2
    SQL*Plus: Release 11.2.0.3.0 Production on Thu Jul 18 21:15:09 2013
    Copyright (c) 1982, 2011, Oracle.  All rights reserved.
    ERROR:
    ORA-12545: Connect failed because target host or object does not exist
    Here is my tnsnames.ora file (I have the service_name censored out for privacy reasons):
    ansichart@ansivm:~/src/perl$ cat $ORACLE_HOME/network/admin/tnsnames.ora
    aspxp2 =
      (DESCRIPTION =
        (ADDRESS_LIST =
          (ADDRESS = (PROTOCOL = TCP)(HOST = orarac9-scan)(PORT = 1521))
        (CONNECT_DATA =
          (SERVICE_NAME = *****************)(UR=A)
    I have verified that I can establish a TCP connection to this DB server on the port specified, using the same info from the TNSnames.ora file (see below):
    ansichart@ansivm:~/src/perl$ nmap -sT -p 1521 orarac9-scan
    Starting Nmap 5.21 ( http://nmap.org ) at 2013-07-18 20:53 CDT
    Nmap scan report for orarac9-scan (10.1.13.115)
    Host is up (0.0088s latency).
    PORT     STATE SERVICE
    1521/tcp open  oracle
    Nmap done: 1 IP address (1 host up) scanned in 0.09 seconds
    ansichart@ansivm:~/src/perl$
    I have another terminal opened up to a server at work and I can connect to the DB with sqlplus just fine.  I verified that the record for this database on the tnsnames.ora file is the same as it is at work.
    In conclusion, I can connect to the Database at work, but I cannot at home, even though I am using the same connection information and verified that port 1521 is accessible on this Database server from at home.  So why can't I establish a DB connection?
    Any ideas?
    Thanks,
    Ben

    676d3153-d812-4300-9e6a-b1dc87a2ebfe wrote:
    ERROR:
    ORA-12545: Connect failed because target host or object does not exist
    This simply means "hostname unknown". In other words, the hostname used for the connection could not be resolved to an IP address.
    I have verified that I can establish a TCP connection to this DB server on the port specified, using the same info from the TNSnames.ora file (see below):
    You are verifying hostname orarac9-scan only. You are not verifying that the hostname supplied by the Oracle SCAN Listener can be resolved by your platform.
    As you are connecting to a SCAN listener, it will do its magic (load balancing/round robin/whatever) and return a redirect to your client driver - telling it where to find the service name the client requested.
    So your client driver gets a hostname and port in return. It then attempts to connect to that to establish your Oracle client-server session. If the RAC has been setup with the typical RAC hostnames, your client will get hostnames like orarac9-vip1 and orarac9-vip2 returned. Likely as FQDN too.
    This means your platform needs to be able to resolve these hostnames. It does not. Thus the error.
    In your platform's /etc/hosts file, define the complete list of RAC hostnames (SCAN, Public and VIP hostnames).

  • Progressive Flash Not playing properly from remote server

    I have Flash CS3.
    PROBLEM: I've encoded a video using Flash's CS3 "Progressive
    Download" option and then uploaded the resulting video (along with
    it's associated files created by Flash ie: .fla, .swf, script
    folder with action script, etc.) to my server (webpage and video
    was created through Dreamweaver CS3).
    RESULT: A flash video that plays on the web, but has pink
    colored digital boxes that breakup the picture... poor quality.
    Please follow this link for an example:
    http://rivhawk.tripod.com/index.html
    I've watched multiple step-by-step tutorials by Adobe for
    creating and uploading Flash video, both with Flash CS3 and even
    Dreamweaver CS3. I've tested by creating the flash content in Flash
    CS3 and directly through Dreamweaver. The same digital noise, pink
    blocks occured.
    NOTE: Before uploading the flash content and associated
    files, I tested the flash video in my browser through Dreamweaver
    (from my local directory, not remote server)...and it
    plays/operates perfectly. It's only once it's uploaded that the
    problem occurs.
    I've encoded the video with Flash 8 and Flash 9 at low,
    medium and high qualities...same results (even by different
    computers accessing the content on the internet). It happens in
    Firefox and Internet Explorer.
    After 3 days of tests and research (and viewing samples of
    other beautiful progressive download videos on the internet) I'm
    wondering if I am missing something very simple, if there is a bug,
    is this a known issue etc.
    Please help, and please understand that I've been through all
    the tutorials on creating/using Flash Video...and specifically
    using the Progressive Download option for use on remote servers
    that don't have the Flash Media Server.
    Please assist.

    > Hi, I am very new to the video thing. I created a Flash
    swf that plays an
    > flv
    > file and everything works fine when I upload the swf and
    the flv file to
    > the
    > same directory on our web server. We'd like other web
    sites to be able to
    > place
    > this video on their site, but we do not want to give
    them the actual
    > files,
    > rather have the video files pull from our server.
    You can play video from any server by using a full URL ie
    http://www.anotherdomain.com/flashvideo.flv
    <param name="movie" value="videos/rep.swf" />
    Looks like you're building an FLV player in Flash to play
    your video rather
    than embedding it using DW. If so you need to open the source
    FLA you used
    to generate 'rep.swf' and insert a full URL to your flv file,
    then publish
    the swf and upload again.
    > I've tried changing the value and embed source tags to
    be complete urls
    > referencing the actual video location, but I still get
    an error saying the
    > flv
    > file cannot be found. Is there a way to do what I'm
    requesting?
    As above, or you can just embed the video on a web page in
    DW, using a full
    URL to your flv. If your flvs are on a server and you are
    connected to the
    internet, you should be able to play the flv using preview in
    browser before
    uploading the page.

  • Returning Rowset From Remote Server Error

    I'm currently trying to pass a rowset back to my client application via RMI. I keep getting a "java.rmi.UnmarshalException: error unmarshalling return; nested exception is: java.io.EOFException" message. It works fine if I pass a String object. I can pass a rowset if I use localhost rather than my remote server. Any help would be greatly appreciated. Thank you.

    I had this very same problem. The problem is that ResultSet (from java.sql.*) is not Serializable, and cannot be marshalled via RMI (i.e. sent back down the pipe). String, int and Boolean all work. RowSet is abstract and cannot be initialised. The best subclass of RowSet I've found is CachedRowSetImpl, which inherits all the standard RowSet attributes and methods.
    You will need to download the JAR containing "com.sun.rowset" from here:
    http://java.sun.com/developer/earlyAccess/jdbc/jdbc-rowset.html
    ... then take the "rowset.jar" file and place it somewhere your IDE can find it (I placed mine here: C:\Program Files\Java\jdk1.5.0_01\jre\lib\ext). Under NetBeans, you can enter the Platform Manager (Tools) and force NetBeans to see it. Then the command:
    import com.sun.rowset.*;
    ...will allow you to create CachedRowSetImpl objects with the simple constructor:
    CachedRowSetImpl myCRS = new CachedRowSetImpl( );
    You can populate a CRS with the command:
    myCRS.populate(existingResultSet);
    Hope this was helpful.
    JGI

  • How to execute an SSIS package on a scheduled basis from remote server and pass in input files

    I have an application server and a db server.  My db server has all things SQL Server stored on it (DBMS, SSRS, SSIS, etc.)  I have several nightly batch process SSIS packages (dtsx files currently) that will pickup an input file and import them
    into the database.  I would like to execute all batch processes from my application server as I have quite a few other ones as well that do other stuff outside of SQL Server via powershell.  My question is how to do this?  Is there away to execute
    them remotely via DTexec.exe, should I set them up as Agent jobs and somehow pass in the file names\location (how?), create and SSIS catalog, etc.?  
    I need to easily be able to see if the packages execute successfully or not and if not capture the detailed information of why they failed from the remote server so I can use that to drive my process flow logic in the batch processes.

    Hi Jason,
    According to your description, you want to execute a package on a schedule and receive notification when package ends with error in the job.
    After testing the issue in my environment, we can directly add the package in a step of a job, then add a schedule and set the Alert and Notification property in the job to achieve your requirement. For more details, please see:
    Create a Database Mail in the SSMS.
    Right-click the SQL Server Agent services to Enable mail profile, then select the appropriate Mail profile.
    Under the Operators folder, create an operator with the correct E-mail name.
    Right-click the Jobs folder to add a new job.
    In the Steps pane, New a step with SQL Server Integration Services Package Type to run the package.
    In the Schedules pane, New a schedule for the job.
    In the Alerts pane, New an alert with SQL Server event alert, then enable Notify operators option with an operator in the Response pane.
    In the Notifications pane, enable Email option with same operator and When the job fails selection.
    Then when the package fails, the job would be failed and we can receive the error message in the mailbox.
    Besides, please make sure the account that execute the job has correct permissions for the file, for the folder that contains the file, and for the database.
    References:
    Configure Database Mail – Send Email From SQL Database
    How to setup SQL Server alerts and email operator notifications
    Thanks,
    Katherine Xiong
    If you have any feedback on our support, please click
    here.
    Katherine Xiong
    TechNet Community Support

  • Help! Downloading a file from remote Server

    I am currently doing a program for downloading a specified file from the remote server i.e from any website. If the downloading process stops in between due to some problem in the internet connection, then my program needs to start the downloading the file again to the local directory from where it was left.
    My idea is that, getting the size of the remote file initially when the downloading process starts and if the connection is interrupted, i will check the size of the downloaded file in the local directory with the remote file size. If the remote file size is greater than the localfile size, i need to start downloading the file where it was left i.e start downloading the next bit from the remote file.
    Is there any way to get the contents of the remote file from the specified point say 50th byte from a total file size of 100 kb using java?
    which concept to use FtpClient or sockets?
    iam a little bit confused!!!!
    Please help me.
    Thanks in advance.

    For HTTP you can use this function to open the stream with offset:
    InputStream openStream(URL url, long offset) {
        try {
            URLConnection uc = url.openConnection();
            uc.setRequestProperty("Authorization", "Basic " + (new BASE64Encoder()).encode("username:password".getBytes()));
            if (offset != 0 && url.openConnection().getHeaderField(0).toUpperCase().startsWith("HTTP/1.1"))
                uc.setRequestProperty("Range", "bytes=" + offset + "-");
            return new BufferedInputStream(uc.getInputStream());              
        } catch (MalformedURLException mfURLe) {
            System.err.println("Malformed URL in Client Updater. Unable to receive update list: " + mfURLe.getMessage());
        } catch (IOException ioe) {
            System.err.println("Unable to open input stream: " + ioe.getMessage());
        return null;
    }

  • Using scp to copy files from remote server to mac from a newbie

    Hi am a new poster to this forum and getting (re)acquainted with the unix world using terminal on the Mac. I am part of webteam for a large website run by a nonprofit where I have administrative access. I hope that this forum is the correct venue for my question.
    The other day I used terminal tsch to logg onto a remote server where I have admin privaleges. One of the other admins and I were in the process of experimenting with using either rsync or scp to "backup" the server. We are experimenting with different backup strategies over and above those supplied by our web host. After finding out how to open port 22 on my modem and setting services in sharing to allow for remote log on, I logged on to the remote server and ran this command (suggested by another admin):
    scp -r -p -v /remotefolder [email protected]:/Users/drktyler/Documents/serverBU/
    Unfortunately I had severely underestimated the amount of time it would take to perform scp and needed to terminate the scp job. For example, I only got 100 MB onto my Mac in one hour (normally takes about 6 mintues to download a 100 MB file from the internet) I tried to kill the job by doing:
    ctrl -z
    ls ps
    kill (scp pid #)
    This did not work. And I forgot about trying ctrl-c <blush>
    I was able to exit my session on the remote server which "exited" the scp job.
    Oh, before running scp, I did try rsync and it did not work. Unfortunately, I had not set my terminal session to an unlimited buffer size, so the early part of my session rolled off the terminal screen. This means I have no idea what the error was.
    This morning the other admin was performing some backups on the remote server and noticed that there was a an unexplained directory on the remote server named:
    mymacuserid
    It had what he called some rpms. I am not exactly sure what a rpms cache files are, but I think that rpms has some relatationship to the RPM package manager used by many linux systems. I could not account for how the mymacuserid directory got on the remote server because I did not put it there and my log in id to the remote server bears no resemblance to my Mac user id.
    We don't believe that this directory did any harm to the remote server, but I sure as heck would like to know how it got there.
    My question is if there was something about my scp command that
    (1) created this "temporary" mymacuserid directory on the remote server
    (2) did the way I ended the scp job by exiting the terminal mean that this temporary directory was not "cleaned up."?
    (3) what other options might have been available to me to kill the job and clean up after the job? ctrl-c while logged onto the remote server? opening up a second terminal window and killing the ssh job?
    (4) is scp normally that slow?
    My Mac: Mac Mini, 1.66 GHz Intel Core Duo, Memory: 1.5 GB 667 MHz DDR2 SDRAM, Mac OS 10.4.8
    Remote server: CPU AuthenticAMD, AMD Athlon(TM) XP 2600+
    Version psa v8.1.1_build81070716.12 os_CentOS 4.2
    OS Linux 2.6.9-55.0.2.EL {CentOS is built from Red Hat Enterprise Linux}
    Respectfully yours,
    treehugger from nj

    J.V. Thanks so much for your very helpful response!
    The other admin who was trying scp over the weekend also reported that the job ran very slowly, so I suspect the slow response time may be on the remote server end. I do appreciate knowing that you have gotten 80% of your advertised DSL speed with scp.
    Thank-you for being so polite and gentle in your response. No I did not know that if the remote patname has white space in it, that I need to quote the whole path and escape any white space with preceding backslashes as you showed in your rsync example.
    Finally, as for the rogue elements being left on the server, I figured out that these rogue elements were left on the server the day before I did the aborted scp job because I had to quit the terminal in the middle of an active rsync job while logged onto the remote terminal. When I went onto the server this morning, I checked the timestamps on the rogue files and the timestamps match up.
    The other admin has finally succeeded in doing a full server back-up (in addition to the back-up using the back-up utility provided by our web host). So, for the moment we are in pretty good shape. Of course, I'm not sure that I could replicate what he did. <shrug>
    Thanks again. I'm glad I posted on this forum as I have always learned a lot by reading the apple forums I suspect that I will be posting again.
    T.H.
    P.S. Please forgive me for not including copies of your original message in my reply. There is probably a setting that I need to change.

Maybe you are looking for

  • Open and connect to RPD

    I am totally new to the tool. we are using OBIEE 11g and i have a task to figure out to open and coonect to the RPD and the admin is on the remote machie which i have access to. Could some one please help me with the steps how can i open and what i n

  • Windows 8.1 install, partition won't format / install

    I'm having lots of problems installing Windows on my iMac (Retina 5K, 27-inch, Late 2014), OS X Yosemite (10.10.1) I've install windows on it before, but after a drivers issue I had to do a fresh install of windows... that turn into a fresh install o

  • Change destination for Temporary File cache?

    I am using latest FCS versions with Compressor 3.0.2. I am exporting a 1-hour HDV file from FCP for HD DVD disk using the H264 Multipass 10.3Mbps setting. I found to my cost that a temporary file is generated which is about 2x the final file size (i.

  • IMPORTING FOOTAGE INTO FCE AND MERGING FILES WITH FINAL CUT STUDIO

    So I recently purchased Final Cut Express to create off-line, rough cut projects...to be completed by more qualified editors other than myself. But I want to make sure that Final Cut Express is the right system for me. Here are my questions: 1.) I wi

  • Booklet printing to tabloid

    I hope I am posting this correctly. I thought I could get telephone assistance regardless of the cost. My reputation is hanging on this. I would pay any amount at this point. For years I have printed the same tabloid size art catalog from inDesign (C