attempts to display the name of the profile.

Hi all

Working on oracle 10g R2 and trying this what follows, but I get an error.

How can I do to print the value of the SQL profile from the ACCEPT_SQL_PROFILE function?

DECLARE
g_sql_profile VARCHAR2 (30);
BEGIN
: g_sql_profile: = dbms_sqltune.accept_sql_profile (task_name = > 'TASK_3179');
dbms_output.put_line(:g_sql_profile);
end;
/
P2-0552: Bind "G_SQL_PROFILE" variable not declared.

Thank you

Hello...

Try this...

var g_sql_profile VARCHAR2(30);

BEGIN
:g_sql_profile := dbms_sqltune.accept_sql_profile(task_name => 'TASK_3179');
end;
/

print :g_sql_profile;

OR, if you want to use dbms_output.put_line, you don't need to use ': '; Like this

DECLARE
g_sql_profile VARCHAR2(30);
BEGIN
g_sql_profile := dbms_sqltune.accept_sql_profile(task_name => 'TASK_3179');
dbms_output.put_line(g_sql_profile);
end;
/

Published by: dask99 on October 10, 2008 15:08

Tags: Database

Similar Questions

  • attempts to display the query results in 2 columns

    I'm trying to change someone elses existing of code to display the results of a query in 2 columns on a web page.

    The result of the existing code can be seen
    here

    Here is the code I am trying to change

    < table width = "95%" border = "0" align = "center" cellpadding = "4" cellspacing = "2" >
    < cfoutput query = "News" StartRowOptional = "" #StartRow_News # "LignesMax =" #MaxRows_News #">"
    < tr align = "center" class = "TEXTnormal" >
    < class nowrap = "style1 TEXTnormal" td >... < table >
    < /tr >
    < class tr = "TEXTnormal" >
    < td > < table width = "100%" border = "0" cellpadding = "0" cellspacing = "0" class = "TEXTnormal" >
    < b >
    < td > < cfif News.ImageNameThumb gt 0 >
    "< a href =" news_view.cfm? recordID = #News.ID #"> < img src =" "uploadedimages / #News.ImageNameThumb #" alt = "#News.ImageCaption #" hspace = "8" hspace = "0" border = "0" align = "left" > < / has >
    < cfelse >

    < / cfif > < table >
    < td > < a href = "" news_view.cfm? recordID = #News.ID # "class ="TEXThighlight"> #News.Title # < /a > - #News.Day #. #News.Month #. #News.Year # < br >"
    #News.Summary # < table >
    < /tr >
    < / table > < table >
    < /tr >
    < / cfoutput >
    < /table >

    I changed the above code to

    < table width = "95%" border = "0" align = "center" cellpadding = "4" cellspacing = "2" >
    < cfset LoopEndRow = CEILING(#EndRow_News#/2) >
    < cfloop
    index = "row".
    from = "#StartRow_News #
    to = "#LoopEndRow #
    step = "1" >
    < class tr = "TEXTnormal" >
    < cfset breaker = 0 >
    < cfloop
    index = "column".
    from = '0 '.
    to = '2 '.
    step = "1" >
    < cfoutput query = "News1" StartRowOptional = "" #StartRow_News # "LignesMax =" #MaxRows_News #">"
    < td width = "50%" >
    < table width = "100%" border = "0" cellpadding = "0" cellspacing = "0" class = "TEXTnormal" >
    < b >
    < td > < cfif News1.ImageNameThumb gt 0 >
    "< a href =" news_view.cfm? recordID = #News1.ID #"> < img src =" "uploadedimages / #News1.ImageNameThumb #" alt = "#News1.ImageCaption #" hspace = "8" hspace = "0" border = "0" align = "left" > < / has >
    < cfelse >

    < / cfif > < table >
    < td > < a href = "" news_view.cfm? recordID = #News1.ID # "class ="TEXThighlight"> #News1.Title # < /a > - #News1.Day #. #News1.Month #. #News1.Year # < br >"
    #News1.Summary # < table >
    < /tr >
    < / table > < table >
    < cfset breaker breaker + 1 = >
    < cfif breaker EQUAL 2 >
    < cfbreak >
    < / cfif >
    < / cfoutput >
    < / cfloop >
    < /tr >
    < / cfloop >
    < /table >

    The results of this code change can be see here

    as you can see what I did gives the number of columns (2)
    and the correct number of lines for the amount of data (3)
    However, each line shows the first 2 pieces of data returned by the query

    Can I change the output query so that it returns the data SET by the amount of data already out items?
    If so, how?



    #data #.




    closing tags

  • Error messgae: "the screen saver cannot run because it requires a more recent video card", attempting to display the screen saver and the error code 40 download the fix.

    Original title: cannot run zip; error code 40 (hotfix for the video card)

    Hi, I ' m trying to view my screen saver and it seems to be causing "the screen saver can't run because it requires a newer video card or compatible with 3d graphics." (2030 M-windows7 dell) .thanks Jean-Michel

    Hi John,.

    1. what screen saver are you trying to view?

    2 is confined to a specific screen saver?

    3. have you installed SP1 for Windows 7?

    This problem occurs because of a problem in 3D screensavers.

    Fix error occurs if you have a corrupt hotfix package or may have downloaded the wrong patch for your platform.

    This can also occur if the hotfix is included in SP1 and you have already installed Windows 7 SP1.

    Method 1:

    You must make sure that the hotfix you download is depending on the version of Windows 7 installed on your computer.

    For more information, see the article:

    Error message when you set a 3D screen saver screen saver in Windows 7 or in Windows Server 2008 R2: "the screen saver can't run because it requires a more recent or Direct3D-compatible video card.

    Please see if you can copy the file that you downloaded to another computer or location and try to unpack.

    When you download the fix, save it in a new location (on the desktop) and the password given with the fix allows to extract the file.

    Method 2:

    Step 1:

    You can also try to run the display quality Troubleshooter and check if it helps.

    Step 2:

    You too, try to install the latest version of the Site Web of Dell display drivers and check if it helps.

    Hope the helps of information. Let us know if you need help with Windows related issues. We will be happy to help you.

  • Attempts to display the release of jQuery to simulate a table - need help

    Hi all

    using javascript for the application database that brings back a result of 10 or 20 results. I am trying to simulate a tabular presentation for the result, but it does not work well. Show the lines - but not inside the table as shown below and eventually the date above display table headers - not after the headers...

    I want to get this to work if possible

    No idea how to put in place if it works like a table html correctly?

    Thanks in advance - DAVE

    $(données, fonction (clé, valeur) {} .each)

    Console. Log ("item", key, value);

    output += '< tr > "+.

    '< td width = '75' >' + value. First + "< table > ' +.

    '< td width = "150" >' + value. Last + "< table > ' +.

    '< td width = '25' >' + value.phone + '< table > ' +.

    '< td width = '25' >' + value.email + '< table > ' +.

    + "< /tr >";

    });

    $('#list').html (output);

    $('#list').listview ("refresh");

    });

    <!-table then... ->


    < table border = "1" cellspacing = "2" cellpadding = "2" >

    <!--> the table header

    < b >

    < width = '75' th > first < table >

    < width th = "150" > last < table >

    < width = '25' th > phone < table >

    < width = '25' th > e-mail < table >

    < /tr >

    <! - hoping that it would create domestic lines - but eventually top the table header lines - >

    < div id = 'list' data-role = "listview" > < / div >

    < /table >

    You can't just dump a div into a table like this. Replace the div the tbody tag.

    first

    Last

    Phone

    E-mail

  • See the profile not found!

    Followed the instructions... not been found. I want to copy the profile of the portable edition to a mobile edition, just install on another drive.
    What I can do-thanks for your tip!

    Help > troubleshooting information, then click on the button display the profile folder
    http://KB.mozillazine.org/Moving_your_profile_folder_-_Thunderbird

  • I would like to change the name in my profile my name and my company name, so when my clients receive a signature on the Forms application, my company name is displayed in the email as opposed to my first and last name. How can I change

    I would like to change the name in my profile my name and my company name, so when my clients receive a signature on the Forms application, my company name is displayed in the email as opposed to my first and last name. How can I change this? I tried to edit my profile however my first and last name are not editable fields.

    Hello Laurag92400722,

    You connect with Adobe ID account E-Sign? If Yes, then you can directly connect to your Adobe ID account and can update the name as the name of the company and it will reflect in your E-Sign account as well.

    -Usman

  • How to change the name of BBM profile

    Somehow my profile name BBM has been altered.

    I can see the source of the display name, but I don't know when and how it was created.

    As far as I can see there is only a method getDisplayName() that returns in the name of the current user.

    Any idea when (i.e. event) name was created and how can I remove/change the value.

    Interestingly, my BBM contacts can change the name on their devices.

    It is normal that your BBM contacts to be able to change your display name is on their devices.  But it will only relate to their device.

    There is no API to programmatically change the name of your profile.  You can change it in the customer of the BBM by clicking on your profile that is displayed at the top when you open BBM.

  • Why only a Yahoo Group displays the column group name?

    I belong to several Yahoo groups and get individual emails from 3 of them. They all worked well until May 8, 2014, when the Freex news group began to display only "[email protected]" in the column. It's always like that. I can't be sure it's a Yahoo problem, like the other groups I am a member of display the senders display name and e-mail address.
    The attachment is a snip of the CT showing how it was and how it has changed.
    Please tell us how to get back to the display names and addresses.

    locate this address in your address book, and then delete.

  • Can I have the Profile Manager uses the name of the device used when the placement of placeholders?

    Can I have the Profile Manager uses the name of the device used when the placement of placeholders? Currently, all get renamed 'iPad' when the device through DEP configuration.

    No, but

    I was putting new devices in groups of temporary devices and renaming in bulk, once they are configured for the user, by using user variables / unit...

    The other annoying problem would be the user modifies the device name when they connect it iTunes...

    • the %destinataire% email - address email (the EMailAddress attribute)
    • first_name % - first name (FirstName attribute)
    • full_name % - full name (attribute RealName)
    • % of guid guid (GeneratedID attribute)
    • last_name % - last name (the LastName attribute)
    • the title of the post (the JobTitle attribute) %

    -% mobile_phone % the number of mobile (laptop attribute)

    • short_name % name run (the RecordName, generally the name of the account attribute)

    The variables of the unit are:

    • % BuildVersion % - full OS version on the device
    • ICCID % - ICCID (from the SIM card)
    • IMEI % - IMEI (International Mobile Equipment Identity)
    • OSVersion % - common version number of the operating system of the device
    • ProductName % - name of the product
    • SerialNumber % - serial number
    • % WIFIMAC %-MAC address of the WiFi interface
  • How can I get the profile name in the window title bar?

    I have run several sessions of Firefox with different profiles.
    (I start Firefox with: firefox - ProfileManager-no-remote)

    I would like to have the profile name in the title bar of the window, so when I switch between windows and try to find the good session + Gnome3 acitivities profile, I can see the name of the profile.

    Is this possible in Firefox 10 somehow via configuration settings (subject: config) of a certain extension, or with a command-line parameter?

    See:

    You can have a user agent that is corrupt and which identifies you as Firefox 3.0.3 (rv:1.9.0.3) and Firefox/4.0

    • Mozilla/5.0 (X 11; U; Linux i686; en-US; RV:1.9.0.3) Gecko/20100101 Firefox/4.0 Ubuntu/8.04

    See:

  • Why my download box displays the active download but then when it's done the box is empty, prior to that, it allows to keep the name/title of the download?

    My download box used to show me downloads completed... now it of just displays the progress of the download and then turns off?

    It allows to keep the title/name to download completed and I could click it to open instead of having to go out to my office to open the download...

    Date of arrival:

    • Tools > Options > privacy > Firefox will be: "Use the custom settings for history" > "Remember download history.
  • How to display the name of device to the file send via Bluetooth

    I get this Message:

    Receipt of file Conformation

    You want to receive a 00:13:70:69:95:84 file?

    My Question is how it can display the name of the device not the address of the device?

    Post edited by: hazzaa

    The same situation when I want to send pictures to cell phone on my laptop. I didn't find any option how to change.

    When I send photos from mobile to mobile phone laptop computer (device name) name is displayed. Try to check the properties of the external device. Maybe you will find way to change this.

  • Display the names of users available and selected user name

    Hello world!

    I'm building a custom LabVIEW TestStand for operator interface. I decided to use LabView controls and indicators instead of those provided by TestStand himself.

    Now... There are several tabs in the application window. At startup, the only active tab is the 'Login' one. In this tab, there are: a list box (in which I want to display all available user names) and a control of the chain (in which I want to display the user name that was selected by clicking in the drop-down list).

    Is someone can help me this?

    OK, I solved it! See the attached vi.

  • Display the column names in a table

    Stupid question time...

    How to display the names of columns in a table on the front panel? I thought by right clicking on the table would give me a selection to view.

    Hi Eric,.

    Right-click the table and select "Show column headers" visible elements "->":

  • How to display the name of my refnum on the front?

    I write data to a file. To do this, I use ' Open/create/replace the file' to prompt the user for a file name, which is then out of my VI as a refnum. I then write strings in this file with "write to a text file.

    How to display the name of the file (including the path) on the front panel once the user has entered it?

    Michael

    Use the Refnum at the path of e/s from file-> advanced file palette. You can wire it to a path indicator.

Maybe you are looking for