use of the SYS prefix in front of dbms.output)

Hi all

Maybe it's stupid. But I have a question what is the difference between the following two:

DBMS_OUTPUT. PUT_LINE ('TEST');
AND
SYS. DBMS_OUTPUT. PUT_LINE ('TEST');

What is the use of the SYS prefix?

Concerning
Sylvie

788844 wrote:

Maybe it's stupid. But I have a question what is the difference between the following two:

DBMS_OUTPUT. PUT_LINE ('TEST');
AND
SYS. DBMS_OUTPUT. PUT_LINE ('TEST');

Not stupid at all. It is a problem of scope-resolution.

All programming languages have the scope-resolution. You are referring to a call (method, function, procedure, etc.). The system (compiler or at a time of engine performance) needs to understand exactly what you are doing reference, in order to execute this call.

In the case of PL/SQL, PL/SQL engine will use first of all the local scope - in other words, objects (procedures, functions, variables, etc.) defined in the schema, and a unit of current code.

If it fails to resolve the reference to appeal, it seems within the reach of the public.

Dbms_output.put_line () is a call reference package. So the 1st check would be local control. This package exists in the current schema? Is there a local synonym that can be used?

In case of failure, scope becomes public. Is there a public reference (synonymous in this case) that solves that?

The answer for DBMS_OUTPUT is Yes - and this public synonym refers to the package belonged to the SYS schema.

If you had a local package with the same name, or a local synonym, then that would have been used.

When you encode now SYS. Dbms_output.put_line () instead, you explicitly specify the scope to the PL/SQL engine. You say that you're referring to the DBMS_OUTPUT object belonged to the SYS schema.

Both methods have some advantages and disadvantages.

Simplistically, the implicit scope (where leave you the engine to search for the object you are referencing) offers more flexibility. Let's say you need to change the behavior of the DBMS_OUTPUT - do it for example also write output to a log file. You can create your own package DBMS_OUTPUT with the exact same interface as the SYS. DBMS_OUTPUT package. Inside of your custom package, you can write the output to a log file and then call the SYS. DBMS_OUTPUT package to do its part.

The original source code using DBMS_OUTPUT.put_line () works unchanged. Is what you have now introduced a local reference meets the criteria of the scope - and your local DBMS_OUTPUT package is now used instead.

Scope explicit can claim to be safer. That no person shall "divert" calling your code by manipulating scope of the resolution - and do the above and create a custom of DBMS_OUTPUT package. But it also makes the code much more rigid.

In general in PL/SQL - extended implicit is desirable because it provides the flexibility that is often necessary. When writing "of trust' global code that does cool stuff user and must be trusted to always do the right thing, then brought explicit should consider instead.

Tags: Database

Similar Questions

  • use of the SYS database user

    Not a question, I can me asking, but I'm looking for a complete as a possible answer to this question:

    Where maintenance of eBS, upgrade,... is clogging, the SYS password?

    Reason for asking is: database administrator - who is not a Director of the eBS - asks if it is possible that the SYS password is maintained by DBA only, not by Apps DBA.

    For clarity; It is database SYS user, no SYSTEM.

    Thank you

    Tony

    An Apps DBA, I want access to the SYS account for various reasons:

    -Grant/revoke privileges on schema objects (esp for the customer drawings)

    -Maintain the database (change data files, storage spaces,... etc)

    Start/stop of the database

    .. etc.

    If you have two different groups on your team (Apps DBA and Core DBA) who maintain the database/application so he can take care of the above. However, if your Apps DBA are the only ones who take care of all the components of EBS, then having access to SYS is required.

    Thank you

    Hussein

  • Several uses for the final product, need help with Render & output parameters

    Aloha, this is my 1st time in this forum... posted this question in Premier Pro and has been mentioned here.

    I created an effect straight project. I want to make four 4 very specific uses.  Unfortunately, I don't know anything about these formats to be given options in AE - CS4.  One of the many 'rendering settings' and 'output module' settings 'make model '.  This seems the best option for me given my future use: 1) for the DVD; (2) for electronic mail; (3) for YouTube. (4) my web site.  I read and reread the rendering and export options in the manual of use-AE CS4 without success in understanding what each option should be used for.  I need help in the translation of pixelpicker-talk.

    Can someone help me about these accurate "rendering settings" and "output module" parameters listed in AE in the option "make and model"?

    Thanks a lot... come visit the watrer is warm and clear as always.

    KonaDon

    I understand - I think the article using After Effects is a very complete resource, explaining the various features and their purposes. But the real world is full of special cases that are very difficult to address in a manual. In addition, it is a moving target. Different best options today probably the best choice, next year.

    Let's see if we can help here:

    1-. DVD: on the technical side, it is always MPEG-2. A very specific taste of MPEG-2. But while After Effects will let you export a file of this type (choosing the MPEG - 2 DVD is predefined in the output Module), it is also true that most of the applications (such as Adobe Encore DVD) DVD authoring are very friendly in terms of letting you wear one (ideally, uncompressed) Quicktime or AVI (which in no way is compatible DVD) and do the encoding in MPEG-2 for you. So it is up to you: you can encode EI using the preset DVD MPEG-2, or you can use an application of coding specialized (such as Adobe Media Encoder in stand-alone mode) or simply let the DVD authoring application do the encoding for you. This should be very simple and in this case, you can simply render a Quicktime or AVI file without loss (there is a model of output Module called "Lossless" who will take care of everything. You can use the default value, the 'best' model to make settings in most cases).

    2-. E-mail: on the one hand, you need something that is really light and as good quality as possible. In the other, you want something universal compatibility, which can be read in all or almost all computers. H264 (advanced version of MPEG-4) format is really good in terms of efficiency, but its ' adoption is perhaps not as widespread yet. Flash Video (FLV) is really good in this regard. In this case, you could choose Adobe Flash Video (FLV) as the format in the output Module and then choose preset FLV 'Flash 8 web small' for this purpose.

    3 YouTube: it's not that simple. The ideal format for YouTube is not quite exist, they insist on the re-encoding each file that you download, even if your file is technically identical in every way to their versions. So what you want here is something that looks good and it isn't huge to download. This all spells 'H264', in my opinion. The details depend on the question of if your Composition is HD or SD, 4:3 or 16:9, etc. Strange as it may seem, the big "iPod" preset for the format H264 is a good starting point. You can customize it to increase the speed of transmission a little (maybe 2 or 2.5 Mbps, against 1.5 Mbps).

    4 website: even once, you need something that most people already have in their computers. Flash Video is an excellent choice, since about 98 percent of users have the Flash plugin. But in this case, you can have more great heights and flow rates, so you can use the "Flash 8 big' defined by default as a starting point. Once the Flash 10 plugin (which now supports the H264 in addition FLV) spreads in the future, you could standardize on H264 in a delivery format, with different settings for each type of destination.

    I hope this helps.

  • The current XML is not valid on the use of the narrative mode external graphics

    Hello

    I always get the following message when embedding amcharts or google maps using narrative view. Once registered, it is not possible in addition to change the narrative view. However, the report works very well, the graphic is displayed, but not editable.

    see you soon,
    Mark



    Error display of the results

    The current XML is not valid with the following errors: Bad xml instance! <? XML version = "1.0"? "" > < xmlns:saw="com.siebel.analytics.web/report/v1.1 saw: report" xmlns: xsi = "http://www.w3.org/2001/XMLSchema-instance" container = "http://www.w3.org/2001/XMLSchema" xmlns:sawx="com.siebel.analytics.web/expression/v1.1" xmlVersion = "200810080" > < saw: criteria xsi: type = "saw: simpleCriteria ' subjectArea ="& quot; QC4Agility & quot; "withinHierarchy ="true"> < saw: columns > < saw: column xsi: type = columnID ' saw: regularColumn" = "c5f655b89c322bce7" > < saw: columnFormula > < sawx:expr xsi: type = "sawx:sqlExpression" > & quot; Sun - RUN & quot;. & quot; RUN the status & quot; < / sawx:expr > < / saw: columnFormula > < / saw: column > < saw: column xsi: type = columnID ' saw: regularColumn "="c9de76acdb49ee65f"> < saw: columnFormula > < sawx:expr xsi: type ="sawx:sqlExpression"> & quot; Fact - req_test_run & quot;. & quot; # REQs & quot; < / sawx:expr > < / saw: columnFormula > < / saw: column > < saw: column xsi: type = columnID ' saw: regularColumn "="c9fe9f1713d290812"> < saw: columnFormula > < sawx:expr xsi: type ="sawx:sqlExpression"> & quot; Fact - req_test_run & quot;. & quot; # TESTs & quot; < / sawx:expr > < / saw: columnFormula > < / saw: column > < / saw: columns > < saw: filter > < sawx:expr xsi: type = "" sawx: logic "op = 'and' > < sawx:expr xsi: type ="sawx:comparison"op ="equal"> < sawx:expr xsi: type ="sawx:sqlExpression"> & quot;" Sun - REQ & quot;. & quot; The target version of REQ & quot; < / sawx:expr > < sawx:expr xsi: type = "xsd: String" > 1.0 < / sawx:expr > < / sawx:expr > < sawx:expr xsi: type = "sawx:comparison" op = "lessOrEqual" > < sawx:expr xsi: type = "sawx:sqlExpression" > & quot; Sun - REQ & quot;. & quot; REQ nCycle & quot; < / sawx:expr > < sawx:expr xsi: type = "sawx:variable" op = "server" > CurrentCycle < / sawx:expr > < / sawx:expr > < sawx:expr xsi: type = "sawx:comparison" op = "not null" > < sawx:expr xsi: type = "sawx:sqlExpression" > & quot; Sun - RUN & quot;. & quot; RUN status & quot; < / sawx:expr > < / sawx:expr > < / sawx:expr > < / saw: filter > < / saw: criteria > < currentView saw: views = '0' > < saw: view xsi: type = "saw: compoundView" name = "compoundView! 1 "> < saw: cvTable > < saw: cvRow > < viewName saw: cvCell ="titleView! 1 "> < saw: displayFormat > < seen: formatSpec / > < / saw: displayFormat > < / saw: cvCell > < / saw: cvRow > < saw: cvRow > < viewName saw: cvCell ="tableView! 1 ' > < saw: displayFormat > < saw: formatSpec / > < / saw: displayFormat > < / saw: cvCell > < / saw: cvRow > < saw: cvRow > < viewName saw: cvCell = "dvtchart!"» 1 "/ > < / saw: cvRow > < seen: cvRow > < viewName saw: cvCell ="narrativeView! " 1 "/ > < / saw: cvRow > < / saw: cvTable > < / saw: view > < saw: view xsi: type =" saw: titleView "name ="titleView! 1 "/ > < saw: view xsi: type =" saw: tableView "name ="tableView! 1 "> < saw: edges > < saw axis: edge = 'page' showColumnHeader = 'true' / > < saw axis: edge ="section"/ > < seen: edge axis ="row"showColumnHeader ="true"> < saw: edgeLayers > < saw: edgeLayer type ="column' columnID = "c5f655b89c322bce7" / > < type of saw: edgeLayer = "column' columnID ="c9de76acdb49ee65f"/ > < type of saw: edgeLayer ="column' columnID = "c9fe9f1713d290812" / > < / saw : edgeLayers > < / saw: edge > < saw axis: edge = "column" / > < / saw: edges > < / saw: view > < saw: view xsi: type = "view: dvtchart" name = "dvtchart".! 1 "> < saw: display type = subtype 'pie' = 'default' renderFormat ="flash"mode ="on line"xAxisLiveScrolling ="false"yAxisLiveScrolling ="false"clientEventEnabled ="false"animateOnDisplay ="true"> < saw: style barStyle = 'default' lineStyle = 'default' scatterStyle = 'default' fillStyle = 'default' bubblePercentSize = '100' effect ="2d"/ > < / saw: display > < saw: canvasFormat height ="330"width ="640"showGradient ="true"> < saw: dataLabels display ="always"label ="nameValue"position ="under"transparentBackground = 'true' valueAs = abbreviation of 'default' ="default"> < vu : textFormat fontSize = "14" / > < saw: dataFormat xsi: type commas = "saw: number" = 'false' negativeType = 'less' minDigits = '0' maxDigits = '0' / > < / saw: dataLabels > < saw: default gridlines = "true" > < saw: horizontal > < saw: visible major = "false" / > < saw: visible minor = 'false' / > < / saw: horizontal > < saw: vertical > < saw: visible major = "false" / > < seen : visible minor = "false" / > < / saw: Portrait > < / saw: grid > < miter saw mode: title = 'auto' > < saw: legend / > < / saw: title > < / saw: canvasFormat > < saw: selections > < saw: Categories > < saw: category > < columnID saw: columnRef = "c5f655b89c322bce7" / > < / saw: category > < / saw: Categories > < saw: measures showMeasureLabelsOnCategory = 'false' > < seen : column measureType = 'pie' > < columnID saw: columnRef = "c9de76acdb49ee65f" / > < / saw: column > < / saw: measures > < saw: seriesGenerators > < saw: seriesGenerator / > < saw: measureLabels / > < / saw: seriesGenerators > < / saw: selections > < position saw: legendFormat = "none" transparentFill = "true" > < saw: textFormat / > < / saw: legendFormat > < saw: seriesFormats > < name of saw : seriesFormatGroup = 'pie' > < seen: seriesFormatRule > < saw: seriesCondition columnID = position 'c5f655b89c322bce7' = '0' > < saw: condition > < sawx:expr xsi: type = "sawx:comparison" op = "equal" > < columnID saw: columnRef = "c5f655b89c322bce7" / > < sawx:expr xsi: type = "xsd: String" > Failed < / sawx:expr > < / sawx:expr > < / saw: condition > < / saw: seriesCondition > < saw : visualFormats > < seen: visualFormat color = "#FF0000" / > < / saw: visualFormats > < / saw: seriesFormatRule > < saw: seriesFormatRule > < columnID saw: seriesCondition = position "c5f655b89c322bce7" = "1" > < saw: condition > < sawx:expr xsi: type = "sawx:comparison" op = "equal" > < columnID saw: columnRef = "c5f655b89c322bce7" / > < sawx:expr xsi: type = "xsd: String" > Passed < / sawx:expr > < / sawx : expr > < / saw: condition > < / saw: seriesCondition > < saw: visualFormats > < saw: visualFormat color = "#B0C060" / > < / saw: visualFormats > < / saw: seriesFormatRule > < / saw: seriesFormatGroup > < / saw: seriesFormats > < / saw: view > < saw: view xsi: type = "saw: narrativeView" name = "narrativeView ! 1 "> < saw: prefix > < saw: legend fmt ="html"> < saw: text / > < / saw: legend > < / saw: prefix > < / saw: view > < / saw: views > < parsererror xmlns ="http://www.w3.org/1999/xhtml"style =" display: block; " white-space: pre; border: 2px solid #c77; padding: 0 1em 1em 0; margin: 1em; background-color: #fdd; color: black "> < h3 > This page contains the following errors: < / h3 > < div style =" do-family: monospace; font-size: 12px "[> error on line 6 in column 430: sequence & #39;]]" & gt; & #39; not allowed in content < / div > < h3 > here is a rendering of the page up to the first error. < / h3 > < / parsererror > < / saw: report > Line: 2, Col: 5482, unknown element "parsererror" Line: 2, Col: 5482, 'style' attribute is not declared for element "parsererror" Line: 3, Col: 98, item "parsererror" is not valid for the content model: ' ((critères, vues, invites, listOptions), segmentOptions)'
    Error details
    Error codes: EIRWWH9E
    Geographical area: saw.httpserver.processrequest, saw.rpc.server.responder, saw.rpc.server, saw.rpc.server.handleConnection, saw.rpc.server.dispatch, saw.threadpool, saw.threadpool, saw.threads


    narrative view used for the test:

    Prefix
    < script type = "text/javascript" src = "http://extra.amcharts.com/public/swfobject.js" > < / script >
    < div id = "amcharts_1308229514469" > you need to update your Flash Player < / div >
    < script type = "text/javascript" >
    var so = new SWFObject ("http://extra.amcharts.com/public/ampie.swf", "Oh", "500", "400", "8", "#FFFFFF");
    so.addVariable ("path", "Oh /");
    so.addVariable ("chart_settings", encodeURIComponent ("< parameters > < precision > 0 < /precision > < background > < alpha > 100 < /alpha > < border_alpha > 20 < / border_alpha > < / background > < legend > < align > Center < /aligner > < / legend > < pie > < y > 50% / < y > < start_angle > 0 < / start_angle > < outline_color > FF0000 < / outline_color > < / pie >")) < data_labels > < see the > <! [CDATA [< b > {title}, {percentages} % < /b > ({value})]] > < / show > < max_width > 150 < / max_width > < / data_labels > < label > < lid label = '0' > < text > DIR < / text > < x > 10 / < x > < > 000000 appears < / appears > < text_size > 28 < / text_size > < align > Center < / align > < / label > < lid label =' 1' > < text > S & amp; ((' E < / text > < y > 220 / < y > < appears > FFFFFF < / appears > < text_size > 28 < / text_size > < align > Center < / align > < / label > < / labels > < / settings > '));
    so.addVariable ("chart_data", encodeURIComponent ("< pie >

    * Story *.
    < slice title = 'United States' > 19544 < / slice >

    * Postfix *.
    (("< pie / > '));
    so. Write ("amcharts_1308229514469");
    < /script >

    I think it's a problem with your CDATA section. Remove this small and test again to prove that he is the cause.

    Paul

  • I deployed a private teredo server, I'm not using the public prefix 2001: 0 / 32, instead, I use the prefix 2001:2222 / 32

    Original title: windows 7 Teredo: how to configure the teredo prefix

    Hello

    I deployed a private teredo server, I'm not using the public prefix 2001: 0 / 32, instead, I use the prefix 2001:2222 / 32
    But I got win7 can't connect to my server if I use the prefix 2001:2222 / 32.
    A test, I put the prefix 2001: 0 / 32, win7 it can connect.
    How can I do so that win7 customer teredo can connect to my private server that use the prefix 2001:2222 / 32?

    Hi,

    The question you posted would be better suited in the TechNet Forums.

    I would recommend posting your query in the link below.

    Windows Server forums:

    http://social.technet.Microsoft.com/forums/en-us/category/WindowsServer

    I hope that the information above helps you.

  • Using the SYS account

    Dear all,

    My database is Oracle 10 g on Windows platform.

    Due to certain requirements (DBAs) checks must use our accounts indivisual instead of SYS.

    I want to confirm if I assign SYSDBA, s/n, RESOURCES, CONNECT to a user it will get all the privileges that the SYS user have? I think I will be fine.

    The second condition is now, if I get all the privileges in my own account who is saying "IMRAN" than will be using the SYS account. It can be disabled?

    Thank you and best regards.

    SYS cannot be disabled.  Cannot delete SYSDBA privilege.  Any person who is granted the SYSDBA privilege and made a connection with "AS SYSDBA" actually connects under the SYS, not his named account account.

    Therefore,.

    a: I would not grant SYSDBA to named users

    b. I would lock in a safe accessible only by a manager the "oracle" account (and any other account in the OSDBA group)

    c. ask the DBA using the DBA role (or a custom, more restrictive role)

    d. to request the account 'oracle' only for STARTUP, SHUTDOWN, RESTORE/RECOVERY and patch.  (assuming backups are automated scripted jobs)

    Hemant K Collette

  • What used cmd which brings the sys before sql prompt?

    Hello everyone

    can you please let me know

    What used cmd which brings the sys before sql prompt? As say he's help me market my cmd of flashback.


    Thank you

    are you talking about Abu?

    SQL>set time on set timing on
    

    ?

  • LabVIEW version of the source code of the NOR-DCPower Soft Front Panel

    I work with an SMU NI PXI-4130. There is a front panel soft exe called the "NOR-DCPower Soft Front Panel" that can be used to control the instrument. I was wondering if there is a version of LabVIEW source code for this driver?

    Jim,

    as much as I know there is no LV source code provided for the Soft Front Panel. But there are a few examples of LV, which will be close to the characteristics of the SFP. So I suggest to you to dig in the examples you find in the Finder of the example.

    Input and output hardware > Modular Instruments > NI-DCPower.

    hope this helps,

    Norbert

  • Laptop does not detect the DVD drive, the .sys files deleted

    Hi I have an acer aspire laptop 4752-6861, there his factory DVD player, here are the details of the DVD player:

    --------------------------------------------------------------------------------
    SlimType DVD A DS8A5SH ATA Device
    UNKNOWN media type
    SlimType DVD to name a DS8A5SH ATA Device
    Availability during the performance/power
    Direct access to the features, removable media
    Configuration Manager User Config FALSE
    DriveIntegrity TRUE
    Media loaded FALSE
    State error
    10462 KB/S transfer rate
    --------------------------------------------------------------------------------
    NOTE: (I use speccy software for more information)
    A few days ago I had created a virtual drive but could not manage to remove it later, so I tried to delete his
    the files that were the .sys files, after deleting these files he had not yet gone, but just today, I noticed when I clicked on computer, the D:
    drive was not showing (from the DVD) IV ' e tried install and reinstallin, deactivation, activation and reboot but no luck.
    in Device Manager it gives me this error status:
    Windows cannot load the driver for this hardware device. The driver may be corrupted or missing. (Code 39)
    well I guess it has something to do with these .sys files that I deleted, I do not remember where the files were nore can
    I get back them, is possible to reinstall drivers or something, thanks in advanced for any ideas.   :)

    Hello

    This can be happen due to upper and lower case system registry settings.

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

    http://answers.Microsoft.com/en-us/Windows/Forum/Windows_7-hardware/my-computer-cannot-detect-my-DVD-drive-in-Windows/3e232ab4-1a4c-425d-96DC-4f4dac074c60

    http://answers.Microsoft.com/en-us/Windows/Forum/Windows_7-windows_install/a-required-CDDVD-drive-device-driver-is-missing/51ecd2ed-b678-E011-9b4b-68b599b31bf5

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

  • Try to remove prefixes of front Pages of outgoing Fax dialing rules.

    I use Windows Fax and Scan program included in Windows 7 Professional 64 bit.  I used to use the fax software that was included in Windows 2000 Pro and have not experienced this problem.

    The problem I have is this: when you send a fax to a business contact, if I use a dialing rule, prefixes used in the dialing rule appear on my cover Page in the fax number of the recipient field.  (This is moved when you use the same cover on the oldest of Windows Fax software page.)

    For example, when you select the dialing rule to disable call waiting, fax number of the recipient on the cover then reads, "* 70, 555-555-5555" (the numeral 5 is used for the protection of personal information).

    Any help, suggestions or direction is appreciated.

    Thank you.

    Fax and scanning has never been designed to be an enterprise application. None of the Windows Fax programs were never and all the features varied considerably over the years.  Once upon a time, fully integrated Fax (sort of) faxes Outlook so received in your Inbox.  This changed when XP replaced 98.  Once upon a time, you could have your fax modem use distinctive ring. another loss.  Then Fax was fired from Vista Basic and Home SKU and available only in Pro and Ultimate, ignorant the fact that most users scan and fax are special and that most business users have a business fax solution and do not use it.  I hope they fix this problem, but I surely do not stand on one foot and hold my breath waiting for what he... Mind you, I added this to my list of things that they should fix and it will bring up the next conference call we have.

    HAL

    --

    HAL Hostetler, TCE

    Engineer senior/UPDATED--MS MVP-Print/Imaging - WA7BGX

    www.kvoa.com - KVOA television, Tucson, AZ.

    Live Hot Licks -www.badnewsbluesband.com

  • Cannot connect the sys user remotely

    Hello

    Oracle Version: 11.2.0.4

    OS: Win Server 2008 R2

    Despite the creation of password for the file and modify the init.ora for exclusive use.

    Remote_login_passwordfile string EXCLUSIVE

    I am still unable to connect the user sys.

    869855 wrote:

    Sincere apologies, I forgot to share the error

    SQL > conn nwbackup@ucmdb as sysdba

    Enter the password:

    ERROR:

    ORA-01017: name of user and password invalid. connection refused

    P.S: Connectivity works very well with other users.

    So how about you change the password for the SYS user and try to connect again?

    Aman...

  • Grep for websites without the www prefix

    I found a clever grep code for Web sites on this forum: ------< (https | http | ftp | www) [-~! #-; =? - Z_a - z] {4} (? <! ~ j)


    However, our style requires no prefixes on websites, so I, not knowing much about grep, rearranged the code a little to this:------< [-~! #-; =? - Z_a - z] {4} (? <! ~ j)(com|org|gov|net)

    That works great except for the occasional glitch, as I joined him. I guess that the '4' in the code has something to do with the fact that if the word has 4 characters before the 'com', it will change the grep style (note the result of words and overcome.) Any suggestions to improve this code?

    Thank you for your time.

    Screen Shot 2015-12-03 at 1.58.52 PM.png

    I use in the searchfield:

    (?! ([[: punct:] $]) [\S] {2,}\. [\S] {2} (?

    I use it in the searchfield is because she's still a few false positives and I want to see what it's finding before I have apply different character style. I look for at least two characters, not three, because there are some URLS out there with only two characters as .uk. suffix

    It is not perfect, but it's the best I could figure it out for now.

    I hope this helps, and I'm completely open to suggestions on how to improve the script.

  • Use of the Task Manager physical memory is not not to use processes

    I have seen this topic discussed it before, but I did not understand what is happening here.

    -J' have one windows server 2008 with 8 GB or ram configured, with the limit set to unlimited and booking made 8 GB.

    -When you look in the Task Manager, I see the physical memory to 88% and the bar bed to 7.10 GB.

    -Adding all process memory usage, it is only about 2 GB.

    -In another thread, that I read that it was because he had a deadline, and hot air balloon began.

    -J' I monitor the server via SNMP and have alerted all the time that this server joined more than 90% ram usage.

    -The Guest server is correct use of the physical memory Task Manager?

    -If it is not, and is caused by the ESX host, how can I fix it to properly monitor the comment server.

    ESX.png

    Windows.png

    The question here is how windows works,

    You reserve memory and don't have no limits, so there is no balloon showing VMs to appear that they have high memory use when they are not actually in some cases.

    Processes that Task Manager displays is not all that is running or being eaten, I know when working with SQL, you have FEAR that can use a ton on memory, but there is no process to show.

    Best thing to do is to run RAMMAP a sys internals tool that will show you exactly what is using the memory in windows.

  • 4EA2 'RUN' is grayed out in the contextual menu for the SYS package

    I am running in a database of Oracle 11 g Enterprise Edition Release 11.2.0.3.0 - Production of 64-bit environment.

    I use the version of SQL Developer release Early Adopter 2 4.

    SQL Developer 3.2, while it is connected to a specfic scheme, it was possible in the Connections window, expand the menu item from other users, so the SYS menu item, then the PACKAGES menu item and select a package, and using the context menu 'run '. ' Run PL/SQL ' window would appear, and I could enter the appropriate settings and run a procedure in this package. I think in particular of the DBMS_ERRLOG package.

    In 4EA2, following the same path, the command "Run", well visible, is grayed out. The combination of keys "Ctrl + F10" alternative works. Please restore the "Run" command in the active state (not greyed out) in the context menu.

    Hi wine,

    Perhaps the scenario you describe is the same as a bug fixed for EA3:

    Bug 17601294 - LOW PRIV USER CANNOT RUN the PACKAGE IN the SCHEMA STRANGER WITH EXECUTE PRIV

    A small detail of the test case it (nothing mentioned about Ctrl-F10, however):

    1. create user ONLY CONNECT, RESOURCES, SELECT_CATALOG_ROLE.
    2 Grant EXECUTE on a package in another schema.
    3. navigate to the package in the tree view.
    4 run/run button is disabled.

    5. but this scenario works as expected in v3.2

    This close is enough?

    Kind regards

    Gary

    SQL development team

  • A question about the procedure of bind_array in the sys.dbms_sql package

    Hi all

    I have a problem with the procedure of bind_array of the sys.dbms_sql package and I would be grateful if you could kindly show where I've made mistakes in my code.

    Parameter
    Value of the parameter
    Oracle versionEnterprise Edition Release 11.2.0.1.0 - 64 bit
    OPERATING SYSTEMLinux Fedora Core 17 (X86_64)

    Test case:

    For the purpose of this exercise (if you want that data at your disposal), I use the employees of the HR schema example table.

    Problem:

    Consider the following SQL query:

    SELECT    t1.first_name fname
    FROM        hr.employees t1
    WHERE     t1.employee_id IN (197, 179, 130, 116);
    
    

    This gives the following result

    FNAME

    --------------------

    Mozhe

    Shelli

    Kevin

    Charles

    SQL >

    Just an exercise I want to use the dbms_sql package to do the same thing (there is absolutely no need to do it, because nothing is dynamic here, but as I said, the goal was to do some exercises with sys.dbms_sql package in order to better understand how to work these procedure/functions)

    Here's what I wrote (the following was performed directly in SQL * more):

    SET SQLBLANKLINES ON;
    ALTER SESSION SET PLSQL_WARNINGS='ENABLE:ALL';
    SET SERVEROUTPUT ON;
    
    
    CREATE OR REPLACE PROCEDURE mytestProc
    AUTHID DEFINER
    IS   
    BEGIN
        <<bk>>
        DECLARE
            curId       PLS_INTEGER;  -- The cursor ID
    
            rowCnt      PLS_INTEGER;  
    
           
            fname       hr.employees.first_name%TYPE;
            FNAME_LNG   CONSTANT PLS_INTEGER := 20;
           
            empIds      sys.dbms_sql.NUMBER_TABLE;
           
            SQLSTMT     CONSTANT VARCHAR2(100) :=
                'SELECT t1.first_name '                 ||
                'FROM   hr.employees t1 '               ||
                'WHERE  t1.employee_id IN :b_empIdTab';
        BEGIN
            -- We chose 4 arbitrary employee_id for
            -- the purpose of this exercise from
            -- the employee table of oracle sample
            -- 'hr' schema
            empIds(1) := 197;
            empIds(2) := 179;
            empIds(3) := 130;
            empIds(4) := 116;
           
            bk.curId := sys.dbms_sql.open_cursor(security_level=>2);
           
            sys.dbms_sql.parse(bk.curId, 
                                bk.SQLSTMT, 
                               sys.dbms_sql.NATIVE
                              );
                              
            sys.dbms_sql.define_column(bk.curId, 
                                       1, 
                                       bk.fname,
     bk.FNAME_LNG
                                      );
           
            -- So normally here the 4 employees id are provided
            -- to the SQL statement
            sys.dbms_sql.bind_array(bk.curId, ':b_empIdTab', bk.empIds);
           
            rowCnt := sys.dbms_sql.execute(bk.curId);
           
            WHILE (sys.dbms_sql.fetch_rows(bk.curId) > 0) LOOP
                sys.dbms_sql.column_value(bk.curId, 1, bk.fname);
                sys.dbms_output.put_line('fname = ' || bk.fname);
            END LOOP;
           
            sys.dbms_sql.close_cursor(bk.curId);
        END;
    END mytestProc;
    /
    SHOW ERRORS;
    
    
    BEGIN
        mytestProc();
    END;
    /
    
    
    DROP PROCEDURE mytestProc;
    SET SERVEROUTPUT OFF;
    
    

    And here is the result of the code above:

    fname = Shelli

    PL/SQL procedure successfully completed.

    SQL >

    What don't get me, is why instead of four names (fname), I get one?

    Thanks in advance,

    Kind regards

    Dariyoosh

    To be honest, the evolution of the DBMS_SQL is somewhat confusing, but suffice it to say the DBMS_SQL. Procedure BIND_ARRAY is not what you are looking for.

    The DBMS_SQL. Procedure BIND_ARRAY binds each value in the array to turn to * separated * execution of the SQL statement, which is similar to the FORALL in native dynamic SQL statement. While this works well for INSERT/UPDATE/DELETE and works in principle with SELECT statements, which, according to me, you actually get is the result of one of these performances that is clearly not what you want.

    Instead what you are looking for is one of the overloads of the DBMS_SQL. Procedure bind_variable that supports the binding types of collections, but will not work with SQL, you have now the paragraph uses a literal in, you use is a MEMBER OF (which is AFAIK not call to the index) or treat the collection in a table via the syntax of function () TABLE and each join or use it as an IN subquery.

Maybe you are looking for