How to do a new connection

Hi
i want to do a new connection in a function or a stored procedure
like a connect scott/tiger@host under sql/+
it could be written in pl/sql java or dbms
example: i am connected with scott/tger with sql+. i call my procedure/function and if i am doing a select user from dual i want to see the user name written in my stored procedure which different of my current user
Thanks

Need to provide more details about what you are trying to do.
 Cheers, Tom

Similar Messages

  • How to create a new connection from SAPGUI to Test drive?

    Hi,
    I have installed Sap Netweaver Test drive on a linux virtual machine (windows host). The installation was successful and I was able to start the instance (application server and the database), yet I don't know how to create a new connection from my SAPGUI client (7.20) to this server. The static IP address of the server is 192.168.1.160.
    I entered the following values for my new connection entry
    Description: SAP Netweaver
    Application server: 192.168.1.160
    Instance number: 01
    System ID: DB2
    SAProuter: /H/192.168.1.160/S/3201/H/
    But it does not work. Any idea about the values needed  for creating a new entry?
    Thanks in advance,
    Dariyoosh

    >
    Dibya R Das wrote:
    > Why are you entering a router string? Can't you reach a box directly from your machine?
    >
    > Doesn't a ping to that host & a "telnet <host/ip address> 3201" work from your machine to the SAP System.
    >
    > Remove the router string you wont need if the above works.
    >
    > - Regards, Dibya
    Hello there,
    Thank you very much for your answer which solved my problem. In fact there was no need of providing router string.
    Kind Regards,
    Dariyoosh

  • How to add a new Connection To listener..

    As the title says im trying to create a second database but keep getting the error
    "Listener does not currently know of the SID given in connect"
    How do I make the Listener aware that I added a second connection ?

    vikrant dixit wrote:
    hi
    what i your oracle version??? if you have listener already in place, then you can just check tnsnames.ora is already in
    E:\oracle\product\10.2.0\db_1\NETWORK\ADMINand paste the entry in it specifying new database credentials i tns file as:
    ORCL =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = hostname or IP)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = orcl)
    )and restart the listener....That's about as wrong as it can possibly be. The tnsnames file is for the client side process. The listener is not even aware of its existence, so nothing you do in tnsnames will have any effect whatsoever on the listener.
    if you have created new database on new server with create database script, then you have to create listener Not if the listener has already been created. It only has to be made aware of the new database, either by adding to the listener.ora SID_LIST or by self-registration from the new database. You definitely don't need a separate listener for each database on a given box, which is what you seem to suggest.
    and naming services, for this purpose use oracle net manager, and create naming profile and then listener and test the connection.Hunh???
    >
    hope this helps
    thanks and regards
    VD

  • How to make a new connection

    Hi
    I would like to get information about to create a new network connection with my pc and my powebook trough airport connection\
    Thanks

    I got no help so I found It by myself

  • How to create a new connection on visual administrator?

    Would you please help give the details. Pints guaranteed.
    Thanks!

    Read the Rules of Engagement.  No double-posting.

  • SQL Developer New Connection

    Hello,
    I am a student, just downloaded SQL DEVELOPER.
    I need to know how to create a new connection. I followed the HELP button under connection and the following directions bellow:
    "To create a new database connection, right-click the Connections node and select New Database Connection. Use the dialog box to specify information about the connection (see Create/Edit/Select Database Connection). You can also create a new database connection by selecting an existing connection in that dialog box, changing the connection name, changing other connection attributes as needed, and clicking Save or Connect."
    I am getting an error that states the following:
    Status : Failure -Test failed: ORA-01017: invalid username/password; logon denied
    I also added the system generating login SYSTEM but I could not figure out the password. I tried sys, system, admin.
    Any help it will be very much appretiated.

    Did you create the database, or did it already exist?
    The default system password is manager, but you are normally asked to specifiy a password when creating the database.
    If someone else created the database, you will have to ask them for the password.

  • I got a new wireless connection for my mac and cannot figure out how to delete the last connection service I had. Everytime I shut the computer, the network goes back to the other one. I cannot find the file ANYWHERE

    got a new wireless connection for my mac and cannot figure out how to delete the last connection service I had. Everytime I shut the computer, the network goes back to the other one. I cannot find the file ANYWHERE

    Under Network Preferences, select the WiFi
    click on "Advanced..." button
    Select the network you want to delete from the list and click on "-"
    Click "Ok"
    Click "Apply"
    Well done ;-)
    You may also want to delete the wireless key from Keychain.
    Open Keychain, seach for the old wifi network name, slect it and click delete

  • How to get my new in-car entertainment system to recognise my old 20g iPod by usb connection

    how to get my new in-car entertainment system to recognise my old 20g ipod by usb

    Hi albri51!
    I have an article for you that can help you with that question. The article is about troubleshooting car stereo connections, and can be found right here:
    iOS: Troubleshooting car stereo connections
    http://support.apple.com/kb/TS3581
    Hope this helps. Thanks for using the Apple Support Communities!
    Cheers,
    Braden

  • HT2978 I have the IPod Classic.  In the past, whenever I connected the IPod to my computer, ITunes would open and copy any new music to my IPod.  It no longer does this.  How do i copy new playlists to my IPod?

    I have the IPod Classic.  In the past, whenever I connected the IPod to my computer, ITunes automatically added new playlists to my IPod.  It no longer does this.  How do I copy new "Playlists" to my IPod?

    Recover media from iPod
    See this post from forum regular Zevoneer for options on moving your iPod data back to your computer.
    tt2

  • How to setup a new apple ID when one is already connected to ipod

    how to setup a new apple ID when one is already connected to ipod

    See:
    Frequently Asked Questions About Apple ID
    Just what do you want to do?

  • My new Mac Air continues to disconnect from WiFi after going to sleep.  When waking it up I have to manually re-connect.  How do I keep it connected?

    My new Mac Air continues to disconnect from WiFi after going to sleep.  When waking it up I have to manually re-connect.  How do I keep it connected?

    I had this problem too and solved it by doing a clean install. After that it was gone.
    This is a drastic method since it takes quite some time to reinstall lion and all your software.
    Thoughts I had why it started working after a clean install are the following:
    It looked like the airport wasn't able to reconnect fast enough before the connection timed out. So what could have prevented my mac from being able to connect fast enough?
    Apps that consume processor cycles. I love what I would call 'System Enhancers', little apps that enhance my workflow (Moom, Alfred, Dropbox, Default Folder etc). I'm not saying that these are the problem, they might be programmed processor friendly, but check if you have apps that consume processor cylcles. It might prevent airport from being able to reconnect quickly enough before it times out.
    Mobile Config profiles. Another thought I had was that I had a mobile config 802.1X profile installed for the company were I worked. It used TTLS to connect to the corporate network. This profile might have gotten in the way.
    And a sidenote...
    Routers with hardware acceleration might also be a problem. My router is a Wireless Gigabit Router 300N WL-351 and has hardware acceleration. As soon as I activate that my wifi connection keeps dropping. It is as if a Macbook Air can't handle that amount of optimisation.
    That's it, hope it helps those who are still having the problem.
    Best, Jan

  • Rel 12 - How to create a new APPS connection from custom Java/Shell Script

    Hi,
    I am looking to write a custom JAVA code / Shell Script which needs to establish a connection to execute a PL/SQL API on Rel 12 db.
    The challenge is to be able to connect without specifying APPS Password anywhere (just like Oracle Apps does it).
    This Shell script / Java code is not called from within Apps hence I need to establish a brand new connection along the lines of using ....
    WebAppsContext ctx = new WebAppsContext(System.getProperty("JTFDBCFILE"));
    OracleConnection conn = (OracleConnection)ctx.getJDBCConnection();
    like in 11i world or possibly using APPLSYSPUB username
    I need help / direction in how to do this in a Rel 12 env. I understnad there are lot of architecture changes and if someone can provide a generic code snipped it will be great.
    I need to keep this as closely aligned to Rel 12 coding and security standards as possible.
    This code will reside in $XXCUSTOM_TOP/bin file or under XXCUSTOM.oracle.apps.java....... if its Java.
    Pls help.
    Cheers
    -- VK.

    Hi,
    Have you looked at Oracle produced dbc file and its contents? That might help. It is under $FND_TOP/secure. It uses GWYUID=APPLSYSPUB/PUB. I am hoping that the APPS_JDBC_URL would help too.
    Regards,

  • How do the application servers connect the new database after failing over from primary DB to standby DB

    How do the application servers connect the new database after failing over from primary DB to standby DB?
    We have setup a DR environment with a standalone Primary server and a standalone Physical Standby server on RHEL Linux 6.4. Now our application team would like to know:
    When the primary DB server is crashed, the standy DB server will takeover the role of primary DB through the DataGuard fast failover. As the applications are connected by the primary DB IP before,currently the physical DB is used as a different IP or listener. If this is happened, they need to stop their application servers and re-configure their connection so the they coonect the new DB server, they cannot tolerate these workaround. 
    Whether does oracle have the better solution for this so that the application can automatically know the role's transition and change to the new IP without re-confige any connection and shutdown their application?
    Oracle support provides us the answer as following:
    ==================================================================
    Applications connected to a primary database can transparently failover to the new primary database upon an Oracle Data Guard role transition. Integration with Fast Application Notification (FAN) provides fast failover for integrated clients.
    After a failover, the broker publishes Fast Application Notification (FAN) events. These FAN events can be used in the following ways:
    Applications can use FAN without programmatic changes if they use one of these Oracle integrated database clients: Oracle Database JDBC, Oracle Database Oracle Call Interface (OCI), and Oracle Data Provider for .NET ( ODP.NET). These clients can be configured for Fast Connection Failover (FCF) to automatically connect to a new primary database after a failover.
    JAVA applications can use FAN programmatically by using the JDBC FAN application programming interface to subscribe to FAN events and to execute event handling actions upon the receipt of an event.
    FAN server-side callouts can be configured on the database tier.
    FAN events are published using Oracle Notification Services (ONS) and Oracle Streams Advanced Queuing (AQ).
    =======================================================================================
    Who has the experience and the related documentation or other solutions? we don't have the concept of about FAN.
    Thank very much in advance.

    Hi mesbeg,
    Thanks alot.
    For example, there is an application JBOSS server connecting the DB, we just added another datasource and put the standby IP into the configuration file except adding a service on DB side like this following:
            <subsystem xmlns="urn:jboss:domain:datasources:1.0">
            <datasources>
                    <datasource jta="false" jndi-name="java:/jdbc/idserverDatasource" pool-name="IDServerDataSource" enabled="true" use-java-context="true">
                        <connection-url>jdbc:oracle:thin:@<primay DB IP>:1521:testdb</connection-url>
                        <connection-url>jdbc:oracle:thin:@<standby DB IP>:1521:testdb</connection-url>
                        <driver>oracle</driver>
                        <pool>
                            <min-pool-size>2</min-pool-size>
                            <max-pool-size>10</max-pool-size>
                            <prefill>true</prefill>
                        </pool>
                        <security>
                            <user-name>TEST_USER</user-name>
                            <password>Password1</password>
                        </security>
                        <validation>
                            <valid-connection-checker class-name="org.jboss.jca.adapters.jdbc.extensions.oracle.OracleValidConnectionChecker"/>
                            <validate-on-match>false</validate-on-match>
                            <background-validation>false</background-validation>
                            <use-fast-fail>false</use-fast-fail>
                            <stale-connection-checker class-name="org.jboss.jca.adapters.jdbc.extensions.oracle.OracleStaleConnectionChecker"/>
                            <exception-sorter class-name="org.jboss.jca.adapters.jdbc.extensions.oracle.OracleExceptionSorter"/>
                        </validation>
                    </datasource>
                    <drivers>
                        <driver name="oracle" module="com.oracle.jdbc">
                            <xa-datasource-class>oracle.jdbc.OracleDriver</xa-datasource-class>
                        </driver>
                    </drivers>
                </datasources>
            </subsystem>
    If the failover is occurred, the JBOSS will automatically be pointed to the standby DB. Additional actions are not needed.

  • Custom SSIS Source: How do I make it create a new connection manager and display its properties window?

    I am writing a custom SSIS source that uses a standard SSIS Flat File Connection Manager. I have got a working UI that shows all usable connection managers in a dropdown list and allows the user to pick one. I would like to be able to have a button that
    the user can click on to create a new connection manager, and it would open the properties window for the new connection manager so it can be set up.
    Abridged code:
    Public Class MyNewSourceUI
    Implements IDtsComponentUI
    Private MetaData As IDTSComponentMetaData100
    Public Function Edit(ByVal parentWindow As IWin32Window, _
    ByVal variables As Variables, _
    ByVal connections As Connections) As Boolean _
    Implements Microsoft.SqlServer.Dts.Pipeline.Design.IDtsComponentUI.Edit
    Dim UIwin As New MyNewSourcePropertiesWindow(MetaData, connections)
    Return (UIwin.ShowDialog() = DialogResult.OK)
    End Function
    Public Sub Initialize(ByVal dtsComponentMetadata As IDTSComponentMetaData100, _
    ByVal serviceProvider As System.IServiceProvider) _
    Implements Microsoft.SqlServer.Dts.Pipeline.Design.IDtsComponentUI.Initialize
    MetaData = dtsComponentMetadata
    End Sub
    End Class
    Public Class MyNewSourcePropertiesWindow
    Inherits System.Windows.Forms.Form
    Private _metadata As IDTSComponentMetaData100
    Private _cnxions As Connections
    Public Sub New(ByVal ComponentMetaData As IDTSComponentMetaData100, ByVal connections As Connections)
    InitializeComponent()
    _metadata = ComponentMetaData
    _cnxions = connections
    ShowConnections()
    'Setup Existing Metadata '
    End Sub
    Private Sub ShowConnections()
    Me.cboConnection.Items.Clear()
    Me.cboConnection.Items.AddRange((
    From i As ConnectionManager In _cnxions _
    Where CType(i.Properties("CreationName").GetValue(i), String) = "FLATFILE" _
    AndAlso CType(i.Properties("Format").GetValue(i), String) = "Delimited" _
    Select i.Name).ToArray())
    End Sub
    Private Sub btnNewConnection_Click(ByVal sender as Object, ByVal e as System.EventArgs) Handles btnNewConnection.Click
    Dim newconn As ConnectionManager = _cnxions.Add("FLATFILE")
    ShowConnections()
    Me.cboConnection.SelectedItem = newconn.Name
    End Sub
    Private Sub btnCancel_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnCancel.Click
    Me.DialogResult = DialogResult.Cancel
    Me.Close()
    End Sub
    Private Sub btnOK_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnOK.Click
    'Store any metadata changes '
    Me.DialogResult = DialogResult.OK
    Me.Close()
    End Sub
    End Class
    That's what I've got so far. I had assumed that adding a new connection would automatically display the properties window to the user (right?). However, in my tests, what actually happens is that it creates the new source with a random GUID for a name and no
    other properties set up, and puts it in the connections pane, and that's it. Not real useful.
    Obviously, something else is required to make the properties window appear, but I can't find what it is. There's no ShowUI() member on any of the classes I have, and I haven't been able to find out the name of the UI class that's used by the flat file source.
    Does anyone know how this is done? I know it can be done, because such a button exists in the normal Flat File Source UI.

    Yes, you need to drive the UI creation. I see you create a custom connection manager, in this case on how to build its UI please refer to http://kzhendev.wordpress.com/2013/08/07/part-2-adding-a-custom-ui-to-the-connection-manager/
    Arthur My Blog

  • HT1338 Just got an Apple and totally new to this system please could someone tell me how and where I can connect my HP Photosmart 3310 for wifi? Thanks, Mike

    Just got an Apple and totally new to this system please could someone tell me how and where I can connect my HP Photosmart 3310 for wifi? Thanks, Mike

    Welcome to Apple Communities
    Start the printer, go to System Preferences > Print and Scan, press the + button and select the printer. Your printer and Mac must be connected to the same Wi-Fi

Maybe you are looking for

  • Data Federator ODS Problem

    Hi All, I´m building a scenario in SAP BO Data Federator where we connect to a table in BW (ODS) and with a jdbc connector we get the data to build a universe in UniDesigner. The problem is that the data returned by data federator doesnt match the da

  • Can´t add texteffects to editorable text

    Hi, did i do something wrong or is it a bug? I can´t add effects to text, but to textframes.

  • Special characters being read from the unicode file for greek language

    Hi All, I have a report which would upload a unicode file and then update the vendor master data accordingly. The file contains greek characters too. when the file is being read in the code, some special characters are being added up to the vendor nu

  • Changing the file extension in Oracle Spool

    Hi All, I need to spool some specific data for the entire year. I'm using date parameter for selecting the month wise data. In single parameter I'm retrieving file_name,From_date and to_date. But by default spool file is getting generated with .lst e

  • OCI8 to existing Apache and PHP install

    Hi Wonder if anyone can help. I have an Apache server already installed with PHP on my linux system (Ubuntu) and I'd like to add the OCI8 driver so I can hook up my PHP pages to speak with the Oracle database. I've managed to do my applicaiton with p