To display user-defined message when connect you to oracle

Dear all,

I display a message when the connection or connect to oracle Sql more why I created following pl/sql block.

declare
ls_global_name varchar2 (4000);
ls_user varchar2 (30);
Start
Select global_name
in ls_global_name
from global_name;

Select user
in ls_user
Double;

ls_global_name: = ls_user | '@' || ls_global_name;
dbms_output.put_line (ls_global_name);
end;

Above block display username@database name: SCOTT@TEST_DB:

This messaes I want to display during each new session connection.

Could you please suggest me for what I do.


Waiting for your valuable comments.

Thanks in advance:

Vinod Gupta

Hello

If sqlplus starts, it searches files glogin.sql and login.sql. Glogin.SQL must be in $ORACLE_HOME/sqlplus/admin then begins as the connection is established. After that, there is the call to login.sql. This file must be output in the current working directory or in the path given by the variable SQLPATH.

If both can be used.

a flie content can be

/ * Start script * /.
Set serveroutput on

declare
ls_global_name varchar2 (4000);
ls_user varchar2 (30);
Start
Select global_name
in ls_global_name
from global_name;

Select user
in ls_user
Double;

ls_global_name: = ls_user | '@' || ls_global_name;
dbms_output.put_line (ls_global_name);
end;
/

/ * End script * /.

Maybe instead of through dbms_output display, you can set the sqlplus prompt using "set sqlprompt ls_global_name.

Take a look at the users guide SQLPLUS documentation: http://download.oracle.com/docs/cd/B19306_01/server.102/b14357/ch3.htm#sthref775

Herald tiomela
superconsult.nl

Tags: Database

Similar Questions

  • "Cannot display page" error message when you try to download 2010 professional

    Original title:

    Error message on Internet download from trusted sites?

    I am trying to download 2010 Professional on my computer.  Yes, I have a product key.  Whenever I try to download, I get an error message "cannot display the page.  This often happens to me.  Any suggestions?

    Hello

    Thank you for giving us the opportunity to help you with your concern for Windows!

    I see from the description of your post, that you are unable to download Microsoft Office Professional 2010.

    If you get the error message in Internet Explorer , then this might be the cause:

    For performance reasons, where Internet Explorer cannot establish a connection to a proxy server, the proxy server is added to a list of proxy servers bad so that it is not reused for a period of time. This period is 30 minutes by default. If a proxy auto-configuration script returns a PROXY list that specifies several proxy servers, a connection to the proxy in the list will be attempted. If the connection fails, the process is repeated until a connection is established, or the list is exhausted. If the list is exhausted and no connection is established, the user will receive a "Cannot display Page" error message in Internet Explorer.

    We would like to get more information about you to help solve your problem. You better, please answer the following questions.

    1. What is the full error message?

    2 are you able to download other files without any problem?

    3. what web browser do you use to download?

    4. what version of Windows are you using? What service pack is installed on the computer?

    5. based on what site are you trying to download?

    You can check the following link to learn more about the error message "cannot display the Page":

    "Internet Explorer cannot display the webpage" error in Internet Explorer

    http://support.Microsoft.com/kb/956196

    Warning: Antivirus software can help protect your computer against viruses and other security threats. In most cases, you should not disable your antivirus software. If you do not disable temporarily to install other software, you must reactivate as soon as you are finished. If you are connected to the Internet or a network during the time that your antivirus software is disabled, your computer is vulnerable to attacks.

    Warning: him reset Internet Explorer settings feature might reset security settings or privacy settings that you have added to the list of Trusted Sites. Reset the Internet Explorer settings can also reset parental control settings. We recommend that you note these sites before using thfeature reset the settings of Internet Explorer e.

    Note:

    If the question is limited to Microsoft Office Professional 2010 then please post your question here for assistance:

    http://answers.Microsoft.com/en-us/Office

    Hope the information is useful.

    If you need help on this issue or any problem related to Windows, please keep us informed. We will be happy to help you!

  • How to display a user defined symbol when using addLinearFeature

    Hello

    We display our geospatial data of database image on the browser.

    With the help of MapViewer mv.addLinearFeature I am able to draw lines on it.
    I created styles in MapBuilder for our symbols userdefined and added to the Mapviewerconfig file.


    Now, according to our condition, we need to put our user defined symbols in the middle of the line when a line is drawn using addLinearFeature

    For example like this:



    -------------(::) -------------------

    Suppose that (:) that is our symbol.


    Please tell me how to do this.

    You can use the marker (user-defined symbol) as a label for the line. Something like the theme/style definition of roads in the mvdemo example where the highway shield is a marker.
    SQL > select styling_rules from user_sdo_themes, whose name = "THEME_DEMO_HIGHWAYS";

    STYLING_RULES
    ---------------------------------------------------------------------------






    SQL > select the definition of user_sdo_styles where name = 'M.SHIELD1';

    DEFINITION
    --------------------------------------------------------------------------------





    SQL >
    The content of ROUTEN (column/attribute) is displayed in the marker (m.shield1).

    Is your different condition or something similar work?

    If its for just displaying a marker (i.e. your symbol defined by the user who is the notice of user_sdo_styles of database) somewhere along the line then use a line style definition (see Appendix A of the guide):





    This will display the marker M.IMAGE105_BW on 0.15th of the length of the line.
    If you would like this marker repeated at fixed intervals (the length of the line subsequently 0.15) then use





  • HP Officejet 7310 all-in-One: printer does not print when connect you to the router

    I can't print from a Mac book pro wireless connected to dsl ATT modem/router.  My printer, HP Officejet 7310 is connected to the router with an ethernet cable.  I can print a test page from the laptop and see my supply rate.  When I try to print an e-mail or my word processing, I get my printer icon on the desktop that said it printer, no error message, but printing does nothing.

    I use the latest driver from apple, 2.0.4 and I have installed and uninstalled the printer numerous times and I

    Download the software twice.

    The HP network configuration page shows the same IP address of the printer, as does the router.

    The printer works fine if connected to the laptop.  If I connect the printer to my mac mini, which is also connected to the

    router by an ethernet cable, I can print from the laptop.  What is going on?

    Hi @TimL2,

    Welcome to the HP Forums!

    I noticed that you can not print with your HP Officejet 7310 when connected to your router. I'm happy to help with this problem!

    Please, try the procedure described in this guide, "printer offline" or "printer not responding" Message (OS X)and let me know what happens!

    If this, or one of the posts on this thread, helped you to solve the problem, please click 'Accept as Solution' said post. To show you 'like', or that they are grateful for my post, please click the thumbs upwards below. If there is anything else I can do to help, please don't forget to let me know!

    I hope this guide is useful!

  • vCAC 6.0 error: user get banned when connecting error

    Hello

    one of the user of the VCAC becomes an error when connecting to vCAC 6.0 "prohibited." Please close the browser window and connecting a new window", when I have the tail of Catalina.out to error on the SSO server located under the log entry

    04/07/22 11:02:21, 282 Builder DEBUG [DefaultIdmAccessorFactory] DefaultIdmAccessorFactory

    2014-07-22 11:02:21, 282 DEBUG [DefaultIdmAccessorFactory] DefaultIdmAccessorFactory getIdmAccessor

    2014-07-22 11:02:21, 282 DEBUG [CasIdmAccessor] CasIdmAccessor constructor called

    2014-07-22 11:02:21, DEBUG state [AuthnRequestState] 282 specified relay has been https://VCAC-UI.abc.local/shell-ui-app/#csp.places.iaas.Default

    2014-07-22 11:02:21, 282 DEBUG [AuthnRequestState] parseRequestForTenant, vsphere.local tenant

    2014-07-22 11:02:21, 283 attack by reconstitution DEBUG [AuthnRequestState] detected - request authentication who REFUSES

    2014-07-22 11:02:21, 283 DEBUG [BaseSsoController] caught exception java.lang.IllegalStateException analysis: forbidden

    2014-07-22 11:02:21, 283 DEBUG [AuthnRequestState] addResponseHeaders, org.apache.catalina.connector.ResponseFacade@144d6c10 response

    2014-07-22 11:02:21, 283 DEBUG [AuthnRequestState] generateResponseForTenant, vsphere.local tenant

    2014-07-22 11:02:21, 283 INFO [BaseSsoController] responded with ERROR 403 Forbidden message! Please close the browser window and connecting a new window

    So when I tried to check for the administrative user account > VCAC users, I have a step able to list out sound it is actually member of ad groups. It's strange because, in reality user groups listed in the Active Directory log.

    Please help me get this problem

    Thanks in advance

    BR,

    MG

    Steve anywhere today...

    2014-07-22 11:02:21, 283 attack by reconstitution DEBUG [AuthnRequestState] detected - request authentication who REFUSES


    This line indicates that someone is trying to reuse an expired session token. Ensure that people use not SSO, or a bookmark of a page being cached for SSO.


    Grant

  • BlackBerry smartphones < my blackberry lost day and time when connect you the bb to computer!

    Hi, my lost bb day and time when connect bb to the computer, the change time bb and another area, it is normal?

    My phone says dealer "it's normal in this smart phone" is really true?

  • When connect you to my group residential-why do I receive a message indicating that the bidirectional support is disabled

    When I'm connected to my home group, so I could share a printer. Everything was wonderful, but I get a flashing message indicating 'bidirectional support is disabled. It is in the printer properties, or perhaps something that should be changed also? I checked everywhere I know to turn it on, but I'm starting to think that I am interested in this problem the wrong way. Can anyone help? Oh, the printer is a Kodiak 9200 and connected via usb.

    Thank you
    Raven

    The following can help (note also the Note at the bottom that says you need to do from computer connected via USB): http://support.en.kodak.com/app/answers/detail/a_id/1294/selected/true

  • W220 Vodafone: phone displays "pending" error message when you try to send TEXT Messages

    Hi, I have the W220 on Vodafone PAYG. When I try to send messages to anyone I just get back 'pending' followed by the destination phone number. I wish I had more details, but that's all he says! I understand there are several possible reasons for this if someone could tell me the most common resolutions?

    Oh, and Yes, I have a lot of credit!

    Rachel

    Rach

    You please mark this thread as answered. Helping to keep order with the forum community.

    Thank you

    Poko

  • Latitude E6440 display blink when connect you to an external monitor via hdmi to VGA Converter

    Hi Dell Community,

    Please help me diagnose what's wrong with my new laptop.

    My laptop is Dell Latitude E6440, but whenever I connect external monitor to my laptop HDMI via HDMI port to the converter VGA, the external monitor still flashes randomly every two seconds. This VGA HDMI converter / works fine when I used it on the other laptop.

    Currently I still have the chance to try my laptop HDMI port to connect directly to a HDMI monitor because I don't.

    Is it that someone has the same problem with me? Thanks for your help.

    Dell currently manufactures replacements of main card to resolve this problem. They will be available at the end of July. Please make sure you have a current subscription and contact support to be eligible for replacement.

  • Windows 7 displays the error message when you exit + cursor problem

    Two issues here. Phoshop CS5 on Wind 7 64-bit.

    Number of physical processors: 8
    Processor speed: 3073 MHz
    Built-in memory: 12279 MB
    Free memory: 9577 MB
    Memory available to Photoshop: 10934 MB
    Memory used by Photoshop: 80%
    Tile image size: 128K

    First issue is since the last update automatic Adobe (why fix what is not broken?) Whenever I go out now Photoshop I get the message "Server QT Adobe has stoped working" and sometimes when I go out the bridge. InDesign behaves as evil. I can no longer start a previous document in the file without ID Manager crashing on.

    The other is the sliders in the Clone and delete lose their advantage (become invisable) without any reason - well not quite. Noise Ninja crashed in Photoshop when I tried to use it. I reinstalled it and all is well. The issue of cursor seems to be intermittent but came back (for no reason), after that I reinstalled NN. I can't seem to change the cursor, no matter what I do. The problem now seriously affect how I work. Almost any return to Win XP, who ran perfectly in Photoshop CS5.

    Any help will be accepted with gratitude.

    Doug

    Cursor problems are known to be caused by outdated video drivers (nVidia).

    Assuming you have a nVidia (which model?) video card, go to their web site and download and install the latest video drivers for your card.

    Also, this could very well solve your crash.

    Don't forget the video drivers to apply the OpenGL system, on which Photoshop relies heavily.

    -Christmas

  • error message when connecting to sri_94@live.co.uk email, don't rceive or do achieve 0 x 80048840. Only appeared after I installed new router Netgear Orange. Can you help me

    Just changed my old router live box for a NETGEAR router both at orange. Now can not receive or send emails using email [email protected], error 0 x 80048849. You can help solve.

    Hello DavidClowes,

    The best place to ask your question of Windows Live is inside Windows Live help forums. Experts specialize in all things, Windows Live, and would be delighted to help you with your questions. Please choose a product below to be redirected to the appropriate community:

    Windows Live Mail

    Windows Live Hotmail

    Windows Live Messenger

    Looking for a different product to Windows Live? Visit the home page Windows Live Help for the complete list of Windows Live forums to www.windowslivehelp.com.

  • Need to stop Windows 10 message when connecting. Does not occur with IE

    When I was able to connect Firefox I have a big blue sign that fades to logon and want to register for Windows 10. Quite boring.
    Does not appear in the Internet Explorer Logon. I had already download Windows 10 but decided not to move. I deleted the KB3035583 update and that was supposed to help. Changed message to logon to Windows 10

    Homepage changed www.msn and the display did not come to the top on connect. I still like to use msn as homepage, but that will just live with it until he goes or use IE when I don't want to delete it... Thanks for the quick response.

  • Satellite Pro M50: Lobos SkyMe internet phone will not be installed when connect you

    I would welcome suggestions for a USB problem.

    A Lobos SkyMe internet phone will not install when it is connected to a USB port, but will install when plugged into my Shuttle PC.
    Historical precedents with the USB ports on this Satellite Pro M50, I'm pretty much at my wits end.

    Apparently, no driver is necessary, but I wonder if there is a registry hack to force recognition?

    Hello

    Could you describe in detail what does not work? You get an error message?

    I m not an expert in internet phone installation and didn t install similar devices in the past, but I imagine that the phone should recognize the new plugged the USB with no problems.

    If there is a problem with the USB device recognition go to Device Manager and remove all the controllers and the USB ports.
    Reboot the laptop.

    After that process, the operating system installs the ports again.
    Then you could try to connect the external USB device to the laptop USB port.

    PS; to make sure that the USB ports will provide enough power, you must disable USB energy saving properties.

  • No sound when connect you TV to HDMI on my Satellite port has

    When I connect my laptop to my TV I get the display to work but no sound.

    I read where a lot of people with all types of computers have this problem, and most of them just default playback to the SPDIF thing.

    But when I do it still does not work.

    Can someone help me.

    I had problem of thersame, then follwed the indtructions on the link below:

    http://APS2.toshiba-tro.de/KB0/TSB7601WR000FR01.htm

    This document is written for Qosmio laptop but the principle must be the same, if that doesn't work try FN + F5, you should had video and sound on the LCD screen and a white screen on the laptop.

    Hope the above helps.

  • No display on monitor HPx2301 when connected to my MacBook Pro - Snow Leopard OSX

    Product: HP x 2301 Micro thin backlit LED display

    Host: Apple MacBook Pro i7 QuadCore (MacBookPro8, 2)

    Connector: Crush / MiniDisplayPort (miniDisplayPort to Apple to DVI)

    Operating system: OS x 10.6.8 (Snow Leopard).

    When I try to connect my new monitor with my 15' MacBook Pro I7, scans for a signal (DVI, HDMI, VGA) monitor, can't find one, the message "monitor going to sleep" and then stops.  The Mac detects the monitor but just for a short period.  He sometimes displays in the "preference screen Panal" (sometimes quite long for quite a long time to manipulate its parameters, but then it can detect is more invested)

    The Documentation provided was not at all no mention of Apple or OSX.  The copy of the ad does not mention a single restriction WindowsPC

    -How can I make this work with my Mac equipped crush (I did not in an HDMI cable yet because I want to confirm that the monitor __should__ be able to work with Apple equiipment.

    I discovered via permutation of another working pc/display combination cable, the DVI cable supplied with my new monitor was faulty (it was the first time I tried to use it-directly out of the box).  I will try to replace as a warranty repair.

Maybe you are looking for

  • ProBook 6470b | SSD is not on the F9 boot menu (SanDisk Ext. 128 GB SDSSDX - 120G - G25)

    Hi, I plan to upgrade my 6470bs HDD Probook by adding an SSD: SanDisk Extreme SSD 128 GB with drive caddy.I inserted DPS as well, seen and main factors installed on Win7 64-bit, but immediately after I restarted my laptop and has hold down the button

  • DJ 500 22:10 error

    I just repaced the rear cables on a 500 of Dj to get rid of a problem with their grouping upward and cause a paper path error. The paper path error has disappeared and now I'm getting a 22:10 error code I know is related to the ISS, the station Servi

  • constant updates

    Whenever I'll turn off my laptop the process is delayed by "13 updates to loading". Why?

  • Print HP Laserjet Pro 100 Color MFP M175nw missing / disappeared along the axis of each page

    HP Laserjet Pro 100 Color MFP M175nw. operating on Windows 7 from my wireless laptop. Just bought this again a few days ago and every page of the printed word has about 20mm wide streak lack of feeling running down the Center. What can I do to fix th

  • HP DVD Writer 840b drivers

    Problems with my DVD writer and I want to return to the initial pilot and repeat.  I have hp was last updated, but it has not solved the problem. The writer is not written on the cd, it says it is but nothing sees when I try to view the files later.