Open telnet session using PL/SQL

Dear all
I have made a function that returns a value when a remote server runs a specific process. In order to find this, I would like to run a telnet command along with some grep parameters. This can be done using a Java class, but it is not very functional! Is this a way to do using only PL/SQL?
Thanx in advance

I know there are a couple of Java telnet clients out there, I'm not sure whether they support the JDK in your database. What version of Oracle are you using? The other option would be to write a script that does whatever you want to do and just call the batch file.
Justin
Distributed Database Consulting, Inc.
http://www.ddbcinc.com/askDDBC

Similar Messages

  • EM Grid-Control - Targets - Hosts - HOME - Open Telnet Session

    Hello,
    under
    EM Grid-Control ->Targets -> Hosts -> HOME -> Open Telnet Session
    i can possibly open a telnet session.
    Can i change this to open a ssh session and how ?
    regards
    Frank

    Sorry, Simple answer 'No'

  • Setting and retrieving session using pl/sql

    How to set and retrieve session using pl/sql?Can anyone help me?

    mrs wrote:
    create or replace
    function get_login_details(in_user in VARCHAR2,in_pwd in VARCHAR2,in_cname in VARCHAR2)
    ..snipped..The code should look as follows:
    create or replace function AuthenticateUser( userName varchar2, userPassw varchar2, userGroup varchar2 )
    return integer is
      i integer;
    begin
      --// purpose of the SQL is simply to check if such a row exist -
    --// no data from the row needs to be fetched
      select 1 into i from acl_users_gv
      where user_name = userName
      and password = userPassw
      and entity_group_name = userGroup;
      --// if the SQL succeeded, then the row exists and matches
      --// the authentication details
      return( 0 );
    exception when NO_DATA_FOUND then
      --// SQL failed to find a row - authentication details do
      --// not exist
      return( 1 );
    end;No need to fetch data unnecessarily. No need too check the fetched data when the column values are already checked via the SQL filter condition (predicate).
    No need to return a flag variable as a freely formatted text string containing Successful Login and login failed. That is not a robust design to use a string variable like that. Use boolean for true/false. Or use integer values 0/1.
    This is my function get_login_details.And I need to get this 'o_mesg' in other java file also.Standard PL/SQL call from Java. The SQL string to execute contains an anonymous PL/SQL and needs to use bind variables. E.g.
    begin
      :result := AuthenticateUse( :userName, :userPassw, :userGroup );
    end;
    Can you suggest the right way, how I can get this variable in other pages?That depends on whether there is database session state. If there is, authentication can be done once only via a trusted context, that specifies whether the session is authenticated.
    If this is done from an app server that uses a db session pool and stateless db sessions, the state needs to be kept in the app server.
    Do you understand what stateful versus stateless db sessions are, and what the differences are?

  • Setting session using pl/sql

    How to set and retrieve session using pl/sql?Can anyone help me?

    This is the wrong forum for SQL or PL/SQL questions.
    1. Post your question in the SQL and PL/SQL forum
    https://forums.oracle.com/forums/forum.jspa;jsessionid=8d92100c30d7960321c250bf4adeaa5dcac037eb147c.e34SbxmSbNyKai0Lc3mPbhmSbNaLe0?forumID=75&start=0
    2. Edit this thread and post the link to your new question.
    3. Mark this thread ANSWERED so people will follow up in the other forum.
    When you post your new question provide your 4 digit Oracle version (result of SELECT * FROM V$VERSION). You will also need to explain what you mean by 'set and retrieve' session. A session is created when a logon is successful so 'set' and 'retrieve' only have meaning in terms of trying to set or retrieve session parameters that may be in effect.

  • Kill the session Using Pl/sql Script

    Hi,
    I wrote a PL/SQL Script which kills the Specified Schema name..... the Script Run Successfully i got this output message "PL/SQL procedure successfully completed." But the Problem is in session status the status is in KILLED" state for more than 30 minutes.
    Please Advice Why the Session in Killed State for more than 30 minutes and please tell me how to kill the session immediate;
    I am Using Oracle DB 11g R1 and OS is Windows 2003 Server R2
    My Pl/sql Script
    SET SERVEROUTPUT ON;
    DECLARE
    KILLER1 V$SESSION.SID%TYPE;
    KILLER2 V$SESSION.SERIAL#%TYPE;
    CURSOR KILL_SESSION IS SELECT SID,SERIAL# FROM V$SESSION WHERE SCHEMANAME='NAME';
    BEGIN
    OPEN KILL_SESSION;
    LOOP
    FETCH KILL_SESSION INTO KILLER1,KILLER2;
    EXIT WHEN KILL_SESSION%NOTFOUND;
    DBMS_OUTPUT.put_line ('ALTER SYSTEM KILL SESSION '''||KILLER1||','||KILLER2||''' IMMEDAITE');
    EXECUTE IMMEDIATE 'ALTER SYSTEM KILL SESSION'||chr(39)||KILLER1||','||KILLER2||chr(39);
    END LOOP;
    IF (KILLER1 > 0)
    THEN
    EXECUTE IMMEDIATE 'ALTER SYSTEM KILL SESSION'||chr(39)||KILLER1||','||KILLER2||chr(39);
    END IF;
    CLOSE KILL_SESSION;
    END;
    Thank You
    Shan

    Hello,
    In fact you may use orakill it's an Oracle utility for Windows so as to Kill the thread corresponding
    to the session.
    It's equivalent to a kill -9 on Unix.
    Please find here a link about the use of orakill:
    http://articles.techrepublic.com.com/5100-10878_11-5224960.html
    Hope this help.
    Best regards,
    Jean-Valentin
    Edited by: Lubiez Jean-Valentin on Mar 27, 2010 5:17 PM

  • Java sniffer for a TELNET session

    Hi
    I need to interpret test results of a telnet session using a java sniffer..........how do I do this.
    Thx
    Frederd

    I need to interpret test results of a telnet session
    using a java sniffer..........how do I do this.You'll need to use two computers to do this, since Telnet uses a "well known port" to accept connections (look at www.iana.org for port number). Since only one process can hold a port, you'll need to run your telnetd on one machine, and have clients connect to another where your sniffer owns that port.
    Once you've set this up, the sniffer itself is a simple pass-through portal: it accepts a request, makes a corresponding connection to the actual telnetd, then simply passes bytes from one connection to the other (logging them in the middle).

  • Opening multiple sessions in SQL*Plus - Basic Question

    Hi All,
    I'm trying to issue an update on a table consists of 100 million rows.(update is done on every row). I have queries that updates this table in chunks of 20 million rows. So, if I open 5 sessions in SQL*Plus and run these 5 queries, does that mean Oracle opens up 5 processes in parallel for me ?
    If yes, can I use parallel hint in each of these 5 queries and make the update even faster ? How does the above 2 differ ?
    I'll be very glad if I hear from anyone,
    Thanks,
    Madhu.

    For every client session there is a server session associated with it. Such as, when you open five session you will have five server session and it serve queires.
    Regarding paralle queries, depends whether your table is defined as parallel, how many cpu do you have and also parallel parameters.
    Jaffar

  • From: Apple-ID [mailto:Apple.International@Apple.id]  Sent: Wednesday, December 11, 2013 7:36 PM To: Deborah McKay Subject: Final step To verify your Apple      Dear Apple Customer,  Your Apple ID has been used to open a session iCloud from an unauthori

    From: Apple-ID [mailto:[email protected]]
    Sent: Wednesday, December 11, 2013 7:36 PM
    To: Deborah McKay
    Subject: Final step To verify your Apple
    Dear Apple Customer,
    Your Apple ID has been used to open a session iCloud from an unauthorized device..
    It's easy: Click the link Your iTunes account is now locked, please enter your account to verify your information. .
    Update Now >
    After you finished your account is confirmed, let us know immediately. Report, it is important because it helps us prevent fraudsters from stealing your information. Sincerely, apple.
    copyright 2013 Apple Inc. Please do not reply to this email because we are not monitoring this inbox. To get in touch with us, log in to your account and click "Contact Us" at the bottom of any page. Copyright © 2013 apple. All rights reserved. apple (Europe) S.à r.l. et Cie, S.C.A. Société en Commandite par Actions Registered office: 22-24 Boulev ard Royal, L-2449 Luxemburg RCS Luxemburg B 118 349 apple Email ID PP315.
    I just got this message and sent it to [email protected] per instructions on another post. the link leads to a page asking for Apple id and credit card information.

    I got a similar email. It's obviously Spam. The double period afetr the first sentence and the otherwise poor grammar are dead giveaways even before I checked out the link embedded. -- I didn't click on it, just hovered over it to get the url. And the return address was [email protected] Very bogus.

  • I can't scan with my HP Photosmart Plus B210a, I get a "Failed to open a session on the device" message everytime I attempt to scan to the computer.  I'm using the most current driver off the HP website for Mac OSX Lion 10.7

    I can't scan to my computer with my HP Photosmart Plus B2010a, I get a "Failed to open a session on the device" message everytime.  I'm using the most current driver for OS X Lion 10.7 off the HP website.

    I get the same "Failed to open a session on the device" message with Apple Image Capture as I do with the HP Utility software.

  • How to open a htmlwebpage by using pl/sql?

    my problem is how to open/invoke a existing webpage by using pl/sql.Because I want to do a authentication function,and write a procedure to varify the user ID and password.If they are valid,a welcome webpage can display,otherwise a eror message/webpage will be invoked.
    My question is how to display the error message to the webpage or to open a webpage which display the error message by using pl/sql.

    I think you may be in the wrong forum, but anyways...
    What I think your looking for is the htp.print('insert html here'); function. It's plsql, and writes out html to the web server that calls it.
    if you search for htp.print you should find loads of examples.
    hope this helps.
    Merv.

  • PDE-PLI038 Cannot open file for use as a PL/SQL library

    Hi,
    We are using oracle 12 .0.4 on RHAS 4
    I am trying to compile a .pll file with the following code
    frmcmp_batch module=$AP_TOP/patch/115/sql/apacrndb.pls userid=apps/apps module_type=LIBRARY;
    but it's returning the error
    PDE-PLI038 Cannot open file for use as a PL/SQL library
    Thanks
    Umair

    Umair,
    What is the issue about?
    Usually, it would be required to run the pls files to recreate certain objects (mainly packages) in the database, and you run the pls file from SQL*Plus as apps/applsys user.
    Please update the SR and confirm with Oracle Support what the action plan you need to follow to resolve the issue.
    Regards,
    Hussein

  • When starting Firefox attempts to restore or new session, using either suggestion it opens and unable to click on anything.

    On restart it asks if I wish to restore previous session or new. Clicking either will open appropriate session, but, then it refuses to do anything when you click on it. It cannot be closed except throught using task manager. After restarting Windows same thing. I have even uninstalled and reinstalled Firefox with the same result.

    This can be a problem with the file [http://kb.mozillazine.org/sessionstore.js sessionstore.js] and sessionstore.bak in the [http://kb.mozillazine.org/Profile_folder_-_Firefox Profile Folder]
    Delete [http://kb.mozillazine.org/sessionstore.js sessionstore.js] and sessionstore.bak in the [http://kb.mozillazine.org/Profile_folder_-_Firefox Profile Folder]
    If you see files sessionstore-##.js with a number in the left part of the name like sessionstore-1.js then delete those as well.
    See:
    * http://kb.mozillazine.org/Session_Restore

  • I can use my password just to open my session i can't do with it nothing else (no updates, no downloads,...)

    i can use my password just to open my session i can't do with it anything else (no updates, no downloads,...)

    Sorry to ask but... are you absolutely certain you have entered your Apple ID and account password correctly?
    If you use the same Apple ID for iCloud and the iTunes store, see if you are able to log into the iTunes store from either your computer or your iPod.

  • How is the output of TempDBAnalysis.sql run during a SQLDiag.EXE session used to troubleshoot tempdb contention?

    Hi,
    I recently came across the option in PSSDiag configuration utility to collect data using the "SQL 2005 tempdb Space and Latching" option.  I executed this on a test server and it generated the file {servername}_TempDBAnalysis_Startup.out. 
    This contains the output of a set of queries that are run in a 10s loop. 
    I have two questions regarding this output.
    1.  Are there any of the analytical tools in SQLNexus or PAL that display, summarize, or trend this data in any way? I do not see any but would like to confirm with the forum.
    2. If there are no analytical outputs, is there any summary out on the web of how to analyze this data, how to import it into a db, or how to interpret the output of each individual query?
    Thanks in advance for any assistance in this matter!

    Hi Lorrin,
    You can reference the below links.
    Tool to help you analyze SQL Server SQLDIAG and PSSDIAG output
    How to use SQLDiag, SQLNexus and PAL tools to analyze performance issues in SQL Server
    If you have any feedback on our support, please click
    here.
    Eric Zhang
    TechNet Community Support

  • Future support for using PL/SQL core business logic with ADF BC

    We want to migrate our large Forms client/server (6i) application to ADF, possibly using a migration tool like Ciphersoft Exodus.
    One scenario could be to use ADF BC and ADF-Faces or a different JSF-Implementation for presentation and business layer but keep our heavy PL/SQL-businesslogic inside the Oracle database in packages, triggers, functions and procedures.
    This scenario could be chosen due to the huge amount of interconnected logic inside the database (10 years of development; no technical components; any package may access any table and more of this kind of dependencies). The business logic nowadays held in Forms client will be moved mainly into the database as a prerequisite to this scenario.
    Choosing this "keep-logic-in-DB"-scenario we need a good support by ADF BC to do so. We know and prototyped that it is possible to call some PL/SQL via JDBC from ADF BC and it is possible to use stored procedure calls for standard business entity data access (ins, del, upd, ..). But this does not solve our problems. We want to reuse core business logic coded in PL/SQL. This is much more than change the ADF standard behavior for an update with an own PL/SQL-call.
    Now my question:
    Will there be a kind of sophisticated support to use ADF BC in combination with database-kept logic?
    If so, when will this happen and how will the common problems of transactional state inside the database and inside the ADF BC be solved? Any plans or ideas yet?
    Many other clients do have similar applications built in Forms and PL/SQL and would be glad to hear about a path of direction.
    I've read the technical article 'understanding the ADF BC state management feature' which you have contributed to. One current limitation is pointed out there: Using PL/SQL with ADF BC limits ADF AM pooling to 'restricted level' which reduces scalability.
    Are you aware of additional main problems/tasks to solve when using PL/SQL heavily with ADF BC, which we have to think about?
    Thank you for any response.
    Ingmar

    My main problem is two 'concurrent' areas holding state in an application system based on DB-stored PL/SQL-logic in combination with ADF BC.
    For a new System everything can be made ok:
    Sure, it is possible to build a new system with the business logic included in ADF BC only. All long-living state will be handled in the BC layer ( including support for UnitsOfWork longer than the webside short HTTP-requests and HTTP-sessions and longer than the database transactions.
    For an old system these problems arise:
    1. DB data changes not reflected in BC layer:
    Our PL/SQL-logic changes data in tables without notifying the ADF BC layer (and its cache). To keep the data in ADF BC entity objects identical to the changed database content a synchronization is needed. BC does not know which part of the application data has been changed because it has not initiated the changes through its entity objects. Therefore a full refresh is needed. In a Forms4GL environment the behavior is similar: We do frequently requeries of all relevant (base)tables after calling database stored logic to be sure to get the changed data to display and to operate on it.
    -> Reengineering of the PL/SQL-logic to make the ADF BC layer aware of the changes is a big effort (notifying BC about any change)
    2. longer living database transactions
    Our PL/SQL-logic in some areas makes use of lengthy database transactions. The technical DB-transaction is similar to the UnitOfWork. If we call this existing logic from ADF BC, database state is produced which will not be DB-committed in the same cycle.
    This reduces scalability of ADF BC AM pooling.
    Example:
    a) Call a DB-stored logic to check if some business data is consistent and prepare some data for versioning. This starts a DB-transaction but does not commit it.
    b) Control is handed back to the user interface. Successful result of step a) is displayed
    c) User now executes the versioning operation
    d) Call another DB-stored logic to execute the versioning. DB-transaction is still open
    e) Business layer commits the transaction automatically after successful finishing step d). Otherwise everything from a) to e) is rolled back.
    -> redesign of this behavior (= cutting the 1to1 relation between LogicalUnitOfWork and the technicalDatabaseTransaction is a big effort due to the big amount of code.

Maybe you are looking for