11G upgrade exam - can someone answer this question

The study guide I have says the answer is "C"... isnt the answer "D". How does this guy get the resolve privilege? confused???
Evaluate the following block of code:
BEGIN
DBMS_NETWORK_ACL_ADMIN.CREATE_ACL (
acl => 'mycompany-com-permissions.xml',
principal => 'ACCT_MGR',
is_grant => TRUE,
privilege => 'connect');
DBMS_NETWORK_ACL_ADMIN.ASSIGN_ACL (
acl => 'mycompany-com-permissions.xml',
host => '*.mycompany.com');
END;
What is the outcome of the above code?
A. It produces an error because a fully qualified host name needs to be specified.
B. It produces an error because the range of ports associated with the hosts has not been
specified.
C. It creates an access control list (ACL) with the user ACCT_MGR who gets the CONNECT and
RESOLVE privileges.
D. It creates an access control list (ACL) with the user ACCT_MGR who gets the CONNECT
privilege but not the RESOLVE privilege.
Answer: C

With 11.2 book code fails with:
SQL> BEGIN
  2  DBMS_NETWORK_ACL_ADMIN.CREATE_ACL (
  3  acl => 'mycompany-com-permissions.xml',
  4  principal => 'ACCT_MGR',
  5  is_grant => TRUE,
  6  privilege => 'connect');
  7  DBMS_NETWORK_ACL_ADMIN.ASSIGN_ACL (
  8  acl => 'mycompany-com-permissions.xml',
  9  host => '*.mycompany.com');
10  END;
11  /
DBMS_NETWORK_ACL_ADMIN.CREATE_ACL (
ERROR at line 2:
ORA-06550: line 2, column 1:
PLS-00306: wrong number or types of arguments in call to 'CREATE_ACL'
ORA-06550: line 2, column 1:
PL/SQL: Statement ignoredIf you fix the code, you get:
SQL> drop user acct_mgr;
User dropped.
SQL> create user acct_mgr identified by 123;
User created.
SQL> BEGIN
  2  DBMS_NETWORK_ACL_ADMIN.CREATE_ACL (
  3  acl => 'mycompany-com-permissions.xml',
  4  description => 'test',
  5  principal => 'ACCT_MGR',
  6  is_grant => TRUE,
  7  privilege => 'connect');
  8  DBMS_NETWORK_ACL_ADMIN.ASSIGN_ACL (
  9  acl => 'mycompany-com-permissions.xml',
10  host => '*.mycompany.com');
11  END;
12  /
PL/SQL procedure successfully completed.
SQL> show errors
No errors.
SQL> SELECT DECODE(
  2    DBMS_NETWORK_ACL_ADMIN.CHECK_PRIVILEGE(
  3         'mycompany-com-permissions.xml', 'ACCT_MGR', 'resolve'),
  4    1, 'GRANTED', 0, 'DENIED', NULL) PRIVILEGE
  5  FROM DUAL;
PRIVILE
DENIEDIf your book is supposed to deal with 11G release 2 I think you can buy another one.

Similar Messages

  • Can someone awnser this question please

    '\ my sound card and my tv is digital but my stereo surround system is analogue but my question is.
    how well to the analogue to digital converts work which i can buy for 40 quid.
    will it give me the same quality digital to digital if im using analogue to digital.
    any help will be much apreciated

    +Re: can someone awnser this question pleased
    deebs986 wrote:
    my sound card and my tv is digital but my stereo surround system is analogue but my question is.
    how well to the analogue to digital converts work which i can buy for 40 quid.
    will it give me the same quality digital to digital if im using analogue to digital.
    any help will be much apreciated
    Depends on
    the analog part of A/D Converter and the converter as well ... there are cheap ones which (if you're audiophile)? may give weak results but normally, those are suitable even being that cheap ... you name ones you have in mind to get more exact answers<
    the source ... D to D is : (lossless (theory))? , A to D (lossy (why, ... read above))<
    jutapa
    @9.56.77.37

  • Hi there!! i am newbie,can someone answer my question about the legal of photoshop CS2,

    i'm already download a photoshop CS 2 from this site https://helpx.adobe.com/creative-suite/kb/cs2-product-downloads.html and i'm alreadey installed it.
    my question it's, is it true the Serial number for photoshop CS2 can use as legal key,when someday an inspection to my office.
    thanks for someone answer my question.

    If you purchased CS2 Yes its a replacement for you old CD.  You just need to read that page to know the answer. If you check the box and downloaded it and installed the product Adobe new activation servers have recorded that you did download and install. in their activation database.
    Read before you download a CS2 product
    Adobe has disabled the activation server for CS2 products, including Acrobat 7, because of a technical issue. These products were released more than seven years ago, do not run on many modern operating systems, and are no longer supported. 
    Adobe strongly advises against running unsupported and outdated software. The serial numbers provided as a part of the download may only be used by customers who legitimately purchased CS2 or Acrobat 7 and need to maintain their current use of these products.
    I Accept
    If you purchased a CS2 product, and you no longer have the installation media, you can download replacement installers from this page.

  • Can anyone answer this question about unlimited data?

    I currently have a phone with ATT... a Samsung. Contract has been up for several months.
    I have the unlimited data plan for $30 a month.
    When I buy the new iPhone will I be able to just transfer my $30 a month unlimited data plan from my old Samsung phone to my new iPhone's new 2-year contract? Or, will I have to switch to the new data plan thing (with no more unlimited data)?
    Can anyone answer this? Been looking online for an answer and got zilch. Thanks.

    Why are you asking this in a user-to-user iPhone forum? The ONLY source for a definitive answer about the brand new, not yet implemented AT&T data plans is AT&T. You need to contact them. Any "answer" you get here is purely guesswork.

  • Can anyone answer this question regarding MAX RAM?

    My old iMac SE DV graphite was purchased and delivered in January, 2000. The original order catalog (which I kept) claimed that it was "expandable to 512mb", as were all the 400mhz G3 slot-loading DV models in various 'flavors' including my Graphite Special Edition model. Also, both / all versions had the ATIRage 128 accelerator with 8mb SDRAM.
    The only differences I can discern are that my Graphite has more ram (128mb) and had a slightly bigger hard drive (13GB on the graphite vs 10GB for the 'fruit').
    Note: I have since replaced the hard drive with a 20GB since the original died within the first 2 years.
    Also, I am running in 10.3.9 most of the time but still have OS 9.2.2 in the machine.
    On this disussion site and other places (including MacWorld articles) I've seen conflicting statements as regards the MAXIMUM RAM my graphite should/could have. Some say 1GB (2x512) and some say 512 (2x256).
    Can anyone once and for all, settle this question for me so that I can make an intelligent purchase?
    (and thank you for the info re: PC100 as the way to go, not PC133)
    Thanks & Peace to all.

    This question was answered in your other post by me. Max RAM is 1 GB.

  • To anyone whom can please answer this question please!!!!​!!!!!!!!!!​!!!!!!!!!!​!!!!!!!!!!​!!!!!!!!!!​!

    Does my HP Stream 7 have a tracking device on it I need to know because my tablet just got stolen around 1:00 PM today.
    This question was solved.
    View Solution.

    Hi,
    Very sad to say No.
    Regards.
    BH
    **Click the KUDOS thumb up on the left to say 'Thanks'**
    Make it easier for other people to find solutions by marking a Reply 'Accept as Solution' if it solves your problem.

  • Can anyone answer this question? What is used to format a string so that it falls into a certain Row/Column in excel? see text for indepth question.

    I'm attaching a file that may help. Just remember this is my FIRST attempt at using NI/FeildPoint so things that would be obvious to the normal users more than likely would slide right by me. So I'll try and explain what the text contains as to make my problem more clear. I'm using a FP-1000, FP-AI-100, and a FP-TB-10. i'm creating a application where I'm using the 8 channels from the FP-AI-100 to monitor a control system ,that we manufacture. The control system is in an environmental chamber. I use the FP-TB-10 to monitor the temperature while in the chamber. The control system is ran for 4 hours under varing enviromental conditions while I monitor vital system voltages with the FP-AI-100. Now the application that i'm building starts with the obvious FP CREATE.VI and so forth I have no problem communicating with the FP's, but the information that I'm monitioring needs to be placed into a file with Headers describing the information below it. Now I use a "WHILE LOOP.VI" to monitor the FP-AI-100 & FP-TB-10 for the 4 hour period. but before that I create and open a file where I use a "CONCATENATE STRINGS.VI" to enter the headers I need. I do this by CONSTANTS, CONTROLS, TABs, AND CARRIAGE RETURN being entered into the "CONCATENATE STRINGS.VI" in the order I want them to appear. I use ROW 1 to enter (OPERATOR:with a CONSTANT) an a (CONTROL so the operator may enter his name and be recorded into the file) using a TAB to seperate Columns and a CARRIAGE RETURNto drop down to ROW 2 for the next headers. I use header names and TABs to seperate the columns. This part works great. I end up with ROW 1 having the operator information then ROW 2 having the headers for all the channels I'm using to monitor the control system with in their own column. The trouble happens when I write to this file during the "WHILE LOOP". The information recorded for DATE:, TIME:, and Channel 0 of the FP-AI-100 end up right under their corresponding header on ROW 3, but the rest of the data ends up on ROW 4 in column 3 and goes down many rows with some of the data not being stored at all. It varies on how many rows are used starting at ROW 4 but hey always stay in column 3. I use the "FP READ.VI" outputing to a "ARRAY TO SPREADSHEET STRING.VI" outputing to a "CONCATENATE STRINGS.VI" for each channel within the "WHILE LOOP" then into the "WRITE.VI". I use the "CONCATENATE STRINGS.VI" to place my data OR atleast I thought you could do that some how I'm not quit doing something write either there is a sampling/timing issue or writing to file issue where things are being confused in the "WHILE LOOP" if someone know a better route to perform what I'm tring here I would be interested. Its not like I'm not giving it the old colledge try here but without proper training and the vagness of the manuals it's difficult to understand what every connection actually does.I'm tring though for everyone who happens to fill pity for me
    Thanks for your help
    John Morris
    Glendinning Marine Product, Inc.
    Attachments:
    ALLchannels ‏273 KB

    > I appreciate your effort to help me, but there is still a slight cloud
    > in front of my eyes here.(I must mention that I'm using Labview 5.1
    Oh, to bad. I'm using LV 6,02 and tried to save the application as LV5.1,
    but it didn't work.
    > Lets start with the easy one which is the SECOND main thing you
    > wanted to mention. In my application I used individual Create Tag.vi's
    > "so your saying that I can use just one Create Tag.vi and one Read.vi
    > and what ever I use to display the values will automatically to show
    > the individual channels" in other words if I use a "Indicator(DBL)"
    > comming out of the Read.vi what ever I use in the "PANEL" layout will
    > expand to show all 8 channel if I was using a FP-AI-100? Cool...
    Allmost right. The 8 channels come out as 1D-array, ch0...ch7.
    > #1--How do I change the delimiter (TAB) to a delimiter (comma) in a
    > Array to Spreadsheet String.vi?
    > ...cut
    I don't use this Spreadsheet VI, because files coming out there allways
    start this time consuming EXCEL wizzard. Because of this, I programmed my
    own CSV-conversion vi. Maybe you could just use a common texteditor, like
    wordpad and put the csv-examples from my last reply down to a text file
    and rename it to *.csv. Texteditors terminate lines with "\r\n" by
    default, so this is a very quick way for testing.
    > FP_Analog_Logging example to record all eight channels it uses a Array
    I didn't find the vi you metione above, but there is another good one:
    Look at examples\FieldPoint\DataLogging\FP Logger.vi.
    In a little case structure, at "false", there is a function called "Format
    into string".
    Pop up on the format string and adjust >>'\' Codes Display<<.
    Then you change the format string into: %.;%-f%s
    A Tab string is connected to the lower input of this function. Replace
    this one with a comma.
    That should do.
    >
    > #2--If using just one Create Tag.vi and one Read.vi and I have the
    > Item Name listed as ALL I take it that the information comming out of
    > the Read.vi is data for each channel in a String format starting with
    > channel 0 and ending with channel 7 for the FP-AI-100.
    Yes, just as explained above. If you put a indicator at the output to
    display the values, you can expand the display to show all 8 channels, but
    you can't name induvidual cells. In a array, all cells have identical
    named labels. If you want to name the individually, you have to attach the
    array to cluster function and put the indicator after this one. Enable
    labe display and name the output values individually.
    > #3--Now I use the following to "Format String" in the Array to
    > Spreadsheet string.vi (%.4f)but I don't see anyway of changing the
    > delimiter from (TAB) to (COMA)
    Explained above.
    > #4 you stated text strings need a "as prefix and sufix" and each
    > string is seperated by a coma, a period is used as decimal number
    > separator and lines have to be terminated by my question is
    > WHERE IS THIS ACCOMPLISHED? WHAT VI OR WHAT CONNECTOR PIN?
    Well, modifying strings are done with string functions.
    Above, as I explained how the sample FP Logger.vi can be modified to do
    the job for numbers. The pre- and suffixing with ", you only need for
    strings, which EXCEL should interpret a string and as nothing else as a
    string, even if there's a number inside. You usually need this only for
    headers. So its easyest, if you just write your string into a string
    constant or control and concatenate it to the previous csv-file contents.
    Oh, I just see by looking at the above mentioned example... Inside the
    case structure, but in the "true" case, there are error messages
    concatenated to the logfile. At this point it is importent, to use " for
    integrating the message into the CSV file, because a error message usually
    looks like this: >> ERROR 2345 in vi yxz <<
    Here you have text and number strings mixed in one line. EXCEL does not
    know, if it should interpret the number inside the error line as separate
    number, separating the line into three colums i.e. string before number,
    number and string after number. So tell EXCEL by putting a " before and
    after the line each.
    For this, expand the Format To String function by one input, move down all
    connections, to be able to insert a string constant with a " to the first
    argument connector. Change the contents of the string constant at the
    bottom argument from tab to ", (quotation mark AND comma)
    > #5 You gave me an example of what a 3 column header could look like:
    > "col0","col1","col2"\r\n Now is this something that you enter
    > somewhere cause I know that \r is carriage return and \n is newline so
    > I take it that the above is entered somewhere maybe in the Write.vi to
    > the connector called Header (F)? See this is what confuses me because
    > NI manuals have no examples of certain connectors types being used or
    > any reference as to how they manipluate data with there varing type
    > inputs. Or maybe I'm just missing them.
    The example I mentioned above help here to.
    Look at the Write File function. This function receves data from a
    function named concatenate strings. Expand this function to have one more
    spare input at the bottom. Create a string constant. Switch the constant
    display to "\" mode. Enter "col0","col1","col2"\r\n into the constant.
    Connect the constant to the spare input.
    Doing this, every dataline in the csv file is followed by
    "col0","col1","col2"\r\n .
    I wish you a nice weekend,
    Rainer Ehrt

  • Can Someone Answer This For Me?!?!

    i got the kin one 3 days ago...i dont really like it that much because i cant view videos or download apps or really do anything that a smartphone should do and it is costing my parents $30 dollars extra a month for nothing basically. My question is that can i take the phone back and exchange it for a new one? Isn't there like a 30 day exchange or something with Verizon? I need to know this soon thank you for taking the time and reading this and answering it.

    You have 30 days to return the phone, and your account will return to the status it was before you upgraded.  Or you can exchange the phone for another - but you are only allowed one exchange, so make sure the second one is the one you really want,as that's the one you will keep.

  • Hi thisis kesava can tellme answer this question

    what is psa ? why are you using psa while updating data to the data targets?

    Hi Kessava,
    Your Q No. 1
    <b>PSA is persistant staging area .</b>
    PSA
    Persistent Staging Area is a transparent database table in which request data is stored in the form of transfer structure.A PSA is created per datasource and source system. It represents an initial store in BW in which the requested data is saved unchanged for source system.PSA
    1) Checks whether extraction from source system is complete
    2)ensures data quality,supports editing,reconstruction and deletion of data
    3)the data from the source system is stored in PSA tables before being updated in the Data Target/Info-object
    4)preferred method because of its various advantages like Reconstruction, Data editing, etc..
    5)Data sources with the IDOC transfer methode are not supported with ODS object.
    6)start routine could be created only for transfer method PSA.
    For Q No.2
    You can load the data without using the PSA. But most of the people go in for the PSA, as that is the place where you can get the raw data as is from the source. You can use that for reconstruction, or looking at problem records and correcting them(not advisable. better to get the data corrected from the source system and then resent)during data load failures. Can also be used for archiving the data if you need to use it later on.
    Using the PSA depends upon the type of processing you are using: Parallel, Sequential (PSA used) or Direct Update (no PSA used). If you use the PSA you have the option of reconstructing the data (if request has to be deleted) or also using error handling when loading the data.
    Hope this helps
    Cheers
    Sunil

  • Can someone answer a question about copyright using itunes?

    I'd like to make a presentation using music I purchased from itunes. The presentation will be played at a middle school. The presentation will NOT be sold. Am I breaking Apple copyright by doing this?

    The terms of sale for the iTunes Store state that you agree to use the music for "personal use only". Whether or not using music in a presentation for a class would be considered "personal use" could be considered a grey area. I'm not an attorney and I cannot speak for Apple, but as long as this presentation is to be given only once and you don't plan to give copies of the presentation away, post it on a web site, or otherwise make it available to others in any way, I doubt that anyone would give you any trouble over the matter. That is just my personal opinion, though; consult your school for their official stance on the issue.''
    By the way, this would not be a copyright issue as far as Apple themselves are concerned; Apple does not hold the copyrights to any of their material. The copyrights are held by the record companies, and would be a separate issue. Use of a music track in a presentation for educational purposes, again presuming that the track is not available outside of the class, generally would fall under "fair use" and so be legal. Again, though, talk with your school if you have serious concerns.
    Regards.
    Message was edited by: Dave Sawyer

  • Can anyone answer this question for me

    okay so i have a mid 2012 macbook pro and being a student myself i travel 4 days a week to and from college with my mac anyway while i was in class the other day i placed my laptop onto the desk and i must have put my mac onto my grit and i have slight airline scratch on the bottom caseing i called my apple store and i asked if the case can be replaced the guy said yes it can be but i will need to book an appoment with a genius but as you know apple apple macs laptops have the designed by apple in california and serial number etc on them if i was to buy a new case for it from apple would it contain these any ideas and help is allways welcome. thanks Ryan

    ryan678 wrote:
    okay so i have a mid 2012 macbook pro and being a student myself i travel 4 days a week to and from college with my mac anyway while i was in class the other day i placed my laptop onto the desk and i must have put my mac onto my grit and i have slight airline scratch on the bottom caseing i called my apple store and i asked if the case can be replaced the guy said yes it can be but i will need to book an appoment with a genius but as you know apple apple macs laptops have the designed by apple in california and serial number etc on them if i was to buy a new case for it from apple would it contain these any ideas and help is allways welcome. thanks Ryan
    I'm sorry but it is very difficult to understand your very long one sentence post. Are you asking what information will be contained on the case? Or are you asking how to go about changing the case? Maybe you're asking if it is worth replacing the case because of a scratch. Or, are you asking if the new case will be designed in California?
    Try rephrasing your post.

  • My whole iPad screen is pink and blue I don't know what happened can someone answer my question and how can I help my iPad from the pink and blue screen

    Thank u very much if you helped me and in the message can u also include how I can fix my ipad thank u very much 

    You may very well have to restore the iPad eventually, but start by rebooting the iPad and see if that helps, before you start doing anything too drastic.
    Reboot the iPad by holding down on the sleep and home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider - let go of the buttons.

  • Can someone answer this post in the Mac forum?

    b noir or Pac or anyone?
    http://discussions.apple.com/thread.jspa?threadID=696413&tstart=0
    M

    Good catch, I replied too it. Usually when I see post and it says they have a mac I just reply...
    "This is itunes for windows, if your doing this on a mac you need to post in the itunes for mac forum for better help"
    I do that because sometimes even tho it says mac there doing it on there PC or a friends PC.

  • So Upset Can Someone Answer This ???

    I Have the 60 gig and ive noticed a couple songs are causing my ipod to i guess restart what the heck is going on, like ive discovered 3 have already done this, and they still are working on itunes, whats wrong with my ipod

    I Have the 60 gig and ive noticed a couple songs are
    causing my ipod to i guess restart what the heck is
    going on, like ive discovered 3 have already done
    this, and they still are working on itunes, whats
    wrong with my ipod
    Some users have mentioned a problem with their Ipods restarting on their own for no reason. It has also been suggested that this problem might be triggered by certain songs. I have had the same problem since updating to software version 1.2, AND I HAVE IDENTIFIED THE SIMILARITY IN ALL OF MY PROBLEMATIC MP3'S...
    THEY ARE ALL ENCODED IN MONO
    I do not have any other type of file besides MP3's on my IPOD, and as of yet, I have not had this restarting problem with ANY of my files EXCEPT FOR EVERY ONE of them that is in MONO (as opposed to stereo). There were about 200 hundred of them, so this is no coincidence.
    When I have some time I will try to RE-encode these songs in Stereo, and reload them into my Ipod to see what will happen. But I'm going on vacation for a week and will not be able to do this for over a week. If anyone out there has the time, please try this and let us know how it works out.
    For the time being, I am removing EVERY file that is encoded in Mono from my Ipod, and hopefully this problem will disappear.

  • Can any answer this question? thanks!

    I recently bought a macbook pro, i own pages on the ipad can i get pages on computer from iPad?

    You will need to Purchase the Mac Version.
    The iPad version will not run on a Mac.
    They use Different Operating Platforms.

Maybe you are looking for