Oracle 12 c - unexpected result with the insertion of the DBA_VIEWS view

Hello

I try inserting the DBA_VIEWS fields in a table belonging to a common C a PDB file ##SA user:

(a) the PDB PDBORCL using user C ##SA connection:

SQL * more: Production of liberation 12.1.0.1.0 kills him Sep 10 16:21:39 2013

Copyright (c) 1982, 2013, Oracle.  All rights reserved.

Enter the password:

Last successful login time: kills Sep 10-2013 16:18:26 + 02:00

Connected to:

Database Oracle 12 c Enterprise Edition Release 12.1.0.1.0 - 64 bit Production

With the options of partitioning, OLAP, advanced analytics and Real Application Testing

C##SA@pdborcl 10.09.2013 > see the con_name

CON_NAME

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

PDBORCL

C##SA@pdborcl 10.09.2013 > see the con_id

CON_ID

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

3

(b) I create the table user SA_VIEWS_V

C##SA@pdborcl 10.09.2013 > select count (*) in the dba_views;

COUNT (*)

----------

6220

1 selected line.

C##SA@pdborcl 10.09.2013 > create table sa_views_v (owner varchar2 (128), view_name varchar2 (128));

Table created.

(c) the insertion in the table SA_VIEWS_V gave me only 65 rows at the same time lines of content 6220 dba_views:

C##SA@pdborcl 10.09.2013 > INSERT INTO SA_VIEWS_V (OWNER, VIEW_NAME) SELECT MASTER, VIEW_NAME DBA_VIEWS;

65 lines were created.

C##SA@pdborcl 10.09.2013 > commit;

Validation complete.

C##SA@pdborcl 10.09.2013 > SELECT MASTER, VIEW_NAME DBA_VIEWS;

...

IX

IX

IX

SH

6220 selected lines.

(d) you will find above the executed plan of the insert and the single select statement:

C##SA@pdborcl 10.09.2013 > select * from table (dbms_xplan.display_cursor ('aj3vkggtvv9d9'));

PLAN_TABLE_OUTPUT

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

SQL_ID, aj3vkggtvv9d9, number of children 0

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

INSERT INTO SA_VIEWS_V (OWNER, VIEW_NAME) SELECT VIEW_NAME, MASTER OF

DBA_VIEWS

Hash value of plan: 1585970530

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

| ID | Operation | Name | Lines | Bytes | Cost (% CPU). Time |

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

|   0 | INSERT STATEMENT.                  |       |       |   136 (100) |          |

|   1.  LOAD TABLE CLASSIC |                  |       |       |            |          |

|*  2 |   FILTER                         |                  |       |       |            |          |

|*  3 |    HASH JOIN |                  |    65.  6045.   136 (0) | 00:00:01 |

|*  4 |     HASH JOIN |                  |    65.  4875.   132 (0) | 00:00:01 |

|   5.      NESTED LOOPS |                  |       |       |            |          |

|   6.       NESTED LOOPS |                  |    65.  3315 |   131 (0) | 00:00:01 |

|   7.        INDEX SCAN FULL | I_VIEW1 |    65.   325.     1 (0) | 00:00:01 |

|*  8 |        INDEX RANGE SCAN | I_OBJ1 |     1.       |     1 (0) | 00:00:01 |

|   9.       TABLE ACCESS BY INDEX ROWID | OBJ$             |     1.    46.     2 (0) | 00:00:01 |

|  10.      INDEX SCAN FULL | I_USER2 |   131.  3144 |     1 (0) | 00:00:01 |

|  11.     TABLE ACCESS FULL | USER$ |   131.  2358.     4 (0) | 00:00:01 |

| * 12 |    TABLE ACCESS FULL | USER_EDITIONING$ |     1.     6.     2 (0) | 00:00:01 |

|  13.    SEMI NESTED LOOPS.                  |     1.    29.     2 (0) | 00:00:01 |

| * 14 |     INDEX SKIP SCAN | I_USER2 |     1.    20.     1 (0) | 00:00:01 |

| * 15 |     INDEX RANGE SCAN | I_OBJ4 |     1.     9.     1 (0) | 00:00:01 |

| * 16.    TABLE ACCESS FULL | USER_EDITIONING$ |     1.     6.     2 (0) | 00:00:01 |

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

Information of predicates (identified by the operation identity card):

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

2 filter (((IS NULL AND "O". ("TYPE #" <>88) OR BITAND ("O". ("" FLAGS ", 1048576) = 1048576 OR

BITAND ("U". "" SPARE1»(, 16) = 0 OR (((SYS_CONTEXT ('userenv', 'current_edition_name') = ' ORA$ BASE ", AND)))"

"U"." TYPE #"(<>2) OR ('U'." ' TYPE # '= 2 AND 'U'. "SPARE2" = TO_NUMBER (SYS_CONTEXT ('userenv ',' current_e)) "

dition_id'))) or IS NOT NULL) AND IS NOT NULL)))

3 - access("O".") SPARE3 '=' U '. ("" USER # ")

4 - access("O".") "OWNER # '=' U '. ("" USER # ")

8 - access("O".") ' OBJ # '=' V '. (' ' OBJ # ")

12 filter (("TYPE #" =: B1 ET "UE".)) "THE USER #" =:B2))

14 - access("U2".") TYPE # "= 2, AND"U2"." SPARE2 "= TO_NUMBER (SYS_CONTEXT ('userenv ',' current_editi))"

on_id')))

filter (("U2". "TYPE #"= 2, AND "U2"."" SPARE2 "= TO_NUMBER (SYS_CONTEXT ('userenv ',' current_edit))"

ion_id')))

15 - access("O2".") DATAOBJ #"=: B1 AND 'O2'." ' TYPE # '= 88 AND 'O2'. "OWNER #"= "U2". ("" USER # ")

16 filter ((' EU'. "TYPE #" =: B1 AND 'EU '. "THE USER #" =:B2))

47 selected lines.

C##SA@pdborcl 10.09.2013 > select * from table (dbms_xplan.display_cursor ('bc4f1jh1snwdp'));

PLAN_TABLE_OUTPUT

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

SQL_ID, bc4f1jh1snwdp, number of children 0

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

SELECT THE OWNER, DBA_VIEWS NOM_DE_VUE

Hash value of plan: 1508506130

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

| ID | Operation | Name | Lines | Bytes | Cost (% CPU). Pstart. Pstop |

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

|   0 | SELECT STATEMENT |                  |       |       |     1 (100) |       |       |

|   1.  PARTITION LIST ALL |                  | 10000 |  1289K |     0 (0) |     1.     2.

|   2.   TABLE FIXED FULL | X$ COMVW$ 5885ef62 | 10000 |  1289K |     0 (0) |       |       |

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

14 selected lines.

You have an idea about this result?

Thank you in advance,

Arnaud.

Arnaud,

This has a fairly simple explanation.

In 12cR1, there are common objects, and there are local objects. The definition of a common object is stored in the ROOT, and only a stub for the object is stored in the PDB. The definition of a local object is stored in the PDB.

When DBA_VIEWS is questioned in a PDB file, so we must return to lines of views both as common as the result of the query. If views Commons are not returned, then several views that a client is used to see in the result of a query DBA_VIEWS to 11.2 and earlier versions not will be seen in paragraph 12.1. For example, ALL_TABLES, DBA_OBJECTS, etc.

When DBA_VIEWS is questioned in a PDB file, then we extraction of lines for local opinions of PDB and common views of ROOT lines. The first has value ORIGIN_CON_ID equal to the ID of the container of the PDB to which you are connected, and they value ORIGIN_CON_ID equal to the ID of the ROOT container. Given that the recovery of these lines should be done in two different containers, we go through a fixed table X$ COMVW$ *.

The gap that you are experiencing is because this fixed table based assessment is used only to SELECT and not for etc. SELECT, INSERT AS SELECT, CREATE TABLE AS.

Let me know if that makes sense.

Thank you

Thomas

Tags: Database

Similar Questions

  • Unexpected behavior with the Option "record in the result.

    Hello

    I have unexpected behavior with the Option "record in the result.

    I have a few steps in the subsequence 'X', this subsequence passes a Boolean parameter. According to the value of the parameter I change the "Recorgind results" Option to report it or not. The thing is that if 'result Recorgind' set at race time I modofy by changing the value of Step.ResultRecordingOption to "Enable" and "Disable", the step is not reported until the same sous-suite 'X' is called for the second time (without changing the parameter passed).

    For example: (Preconditon: result Recorgind Option of all value sous-suite x are defined as Disable)

    1 CallSubsequenceX(Parameter: Enable)

    2 CallSubsequenceX(Parameter: Enable)

    3 CallSubsequenceX(Parameter: Disable)

    4 CallSubsequenceX(Parameter: Disable)

    Expected result:

    1. measures have been reported.

    2. measures have been reported.

    3. measures have not been reported.

    4. measures have not been reported.

    Result:

    1. measures would not same value Step.ResultRecordingOption has been changed to 'enable '. (Not Ok)

    2. measures have been reported. (Ok)

    3. measures reported same value Step.ResultRecordingOption has been changed to 'disable '. (Not Ok)

    4. measures have not been reported. (Ok)

    I use TestStand 2013 (5.1.0.226)

    Thanks in advance.

    -Josymar.

    Hi josymar_guzman,

    I just review the sequence and indeed we´re experience unexpected behavior with the Step.ResultRecordingOption callback. By a reason when you run the callback in the expression before each step section, the statement runs only until the next sequence is called, which is not what we want.

    To avoid this, you can place a statement before each step of the sequence, so you can change the State of the Option "record result" for the sequence running (and it is only the following). You can try something like this

    where the expression of the statement will be the recall "RunState.NextStep.ResultRecordingOption is YourCondition". With this, we guarantee that the results of the next step will be saved or not. I also remove the expression in the expression prior to each step section, because the condition is now on the statement before each step.

    I tried and it works fine. I´ll set the sequence that you share with me, with the changes. I hope this will help you and solve your problem.

  • 0xC000021A {fatal system error}, the initial session process or the process of the complete system in unexpected ways with the blocking state 0 x 00000000 (0xc0000034 0x001008ac) the system has been halted

    Hello! I got this message from malware (I clicked to delete) in surfing on firefox and after awhile the explorer.exe closes with an error. I try to open the Task Manager and it says explore cannot be found!
    I rebooted and then I got this message "0xC000021A {fatal system error}, the initial session process or the process of the complete system in unexpected ways with the blocking state 0 x 00000000 (0xc0000034 0x001008ac) the system has been halted" and can't get anywhere.
    I can't even go in safe mode, the same error messages appears.

    Hi James,

    You could try the Startup Repair to see if it solves the problem:

    http://Windows.Microsoft.com/en-us/Windows-Vista/startup-repair-frequently-asked-questions

    Chris
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • Oracle cloud virtual image, I was able to create the database using DBCA (virtual image) oracle cloud. I understand with the virtual image, we won't have a lot of tools like on DAAS cloud... But could please at least use us dbconsole?

    On oracle cloud virtual, image I was able to create the database using DBCA (virtual image) oracle cloud. I understand with the virtual image, we won't have a lot of tools like on DAAS cloud. But could please at least use us dbconsole?


    I tried to start dbconsole, and it did not work:

    [oracle@ltutest ~] $ emctl start dbconsole

    OC4J Configuration problem. /U01/app/Oracle/product/11.2.0/dbhome_1/OC4J/J2EE/OC4J_DBConsole_ltutest.compute-aulatrobeu83140.oraclecloud.internal_ORCL not found.


    According to the oracle help doc center - "creating a database on an instance of virtual image service" (http://docs.oracle.com/cloud/latest/dbcs_dbaas/CSDBI/GUID-29290A81-8798-4988-848E-77A1BE0CF08A.htm#GUID-4851560B-D4B6-42...)

    database was created with the option as:

    emConfiguration - NONE - storageType FS


    I guess we have to manually configure the em console, but when I tried to create it, he told me that "' Dbcontrol repository already exists." "

    When I try to start it, it exports the error

    [Oracle@ltutest ~] $ emctl start dbconsole

    OC4J Configuration problem. /U01/app/Oracle/product/11.2.0/dbhome_1/OC4J/J2EE/OC4J_DBConsole_ltutest.compute-aulatrobeu83140.oraclecloud.internal_ORCL not found.

    Could someone could give me help with this problem?


    Thanks Brian. I tried your command, and it works. Now I've encountered another problem, how can I browse the URL?

    I created the access rule for access remote on port 1521 and 1158. but when I try to browse the EM console URL, it does not work. all the configurations that I need to do?

  • Most recent version of the Oracle client version is compatible with the low version

    Most recent version of the Oracle client version is compatible with the Oracle DB low version

    Client Oracle 10.2.0.5 version should be compatible with 10.2.0.4 DB?

    Yes - see on Oracle (ID 207303.1) support compatibility table

  • The Oracle HTTP Server come FREE with the Oracle database

    Hello

    Please let me know if Oracle HTTP Server are FREE with the Oracle database.

    Also any idea how much it would cost roughly to buy independent?

    Thank you
    Please let me know if Oracle HTTP Server are FREE with the Oracle database.

    If this is a related issue of license then better check with the sales representative in your area. Oracle sales team can only confirm the details.

    As far as I know if a product is delivered in another product then product main price includes the price of the licenses for all.

    Example: OEM license purchase, will include the license for Weblogic.

  • ORA-01035: ORACLE only available for users with the RESTRICTED SESSION privilege

    Whenever I have to connect as user sys as sysdba, I can connect at ease.

    But every time that I try with a user (one for monitoring tool). I get a message, database is in restricted mode.

    SQL > connect patrol05/patrol $05

    ERROR:
    ORA-01035: ORACLE only available for users with the RESTRICTED SESSION privilege

    WARNING: You are more connected to ORACLE.

    Your database was opened with restricted session.
    As sysdba, run the following command to session restrcited dissable the option:

    alter system disable restricted session;
    

    Best regards
    Norbert

  • Update of CRMI against COE Oracle 10 G server fails with the error message Invalid Date of creation

    I have an application that performs an update of a piece of content via CRMI. The element is specified viaA content ID. Since UPDATE_DOCINFO is the service DOC_INFO needs service is executed first to get it.

    DOC_INFO returns information very well. However, when UPDATE_DOCINFO is executed, it always seems to return an error message stating that creation Date is not valid. The element content updates without this error via the Native Web INTERFACE. My code works when pointed at an Oracle 11 G Server COE.

    I tried:

    1. Adding did so to a new DataBinder, without dCreateDate
    2. Adding did so to a new DataBinder, with dCreateDate
      • Add dCreateDate as a date object (from DOC_INFO response I've tried)
        • through thegetDate()
        • manual conversion with DataObjectEncodingUtils.decodeDate() (w / get() )
      • Add a string
        • convert with SimpleDateFormatter similar to how RIDC encodes (w / getDate() )
        • manual conversion with DataObjectEncodingUtils.encodeDate() (w / getDate() )
        • as «»
        • as null
        • get()Instead ofgetDate()
    3. Directly using DOC_INFOresponse Binder
    4. With the help of the library of CRMI 11 G (3 above) 5 using the RIDC 10 G (1-3 above) library

    All listed approaches have returned the same error message.

    Here's the method I use for the update. The commented code is the thing I've tried that does not resolve the issue.

    public ServiceResponse executeByContentId (String szContentId, map < String, String > updateHMap)

    throws RemoteException

    {

    If (log.isDebugEnabled ())

    {log.debug ("the execution of an update:" + szContentId) ;}}

    get the RIDC context - guess the context RIDC has already been created.

    IdcContext = RIDCApp.IDC_CONTEXT_LIST.get context (getUsername ());

    Download the client

    Customer IdcClient = RIDCApp.IDC_CLIENT;

    create the command object to run

    DataBinder dataBinder = client.createBinder ();

    film for convenience

    Binding EDAMDataBinderWrapper = new EDAMDataBinderWrapper (dataBinder);

    Binder. DOC_INFO_BY_NAME();

    binder.putDDocName (szContentId);

    binder.putRevisionSelectionMethod (RevisionSelectionMethod.Latest);

    ServiceResponse rawResponse = null;

    Try

    {

    log.info ("About to RUN: (previous update) \n" + binder.toString () ");

    rawResponse = client.sendRequest (context, binding);

    DataBinder responseBinder = rawResponse.getResponseAsBinder ();

    log.info ("Found: (previous update) \n" + responseBinder.toString () ");

    used to get the result

    EDAMDataBinderWrapper docInfoResult =

    EDAMDataBinderWrapper (responseBinder) new;

    //used for the update

    EDAMDataBinderWrapper updatebinder =

    EDAMDataBinderWrapper (client.createBinder ()) new;

    //new EDAMDataBinderWrapper (responseBinder);

    //required fields!

    DocInfoSet of the DataObject = docInfoResult.getResultSet ("DOC_INFO")

                                                                            .getRows () .get (0);

    updatebinder.putLocal ("dDocName", szContentId);

    updatebinder.putLocal ("a", docInfoSet.get ("dID"));

    updatebinder.putLocal ("dRevLabel", docInfoSet.get ("dRevLabel"));

    updatebinder.putLocal ("dSecurityGroup", docInfoSet.get ("dSecurityGroup"));

    updatebinder.putLocal ("dDocAccount", docInfoSet.get ("dDocAccount"));

    //updatebinder.putLocal ("dCreateDate", docInfoSet.get ("dCreateDate"));

    //updatebinder.addDate ("dCreateDate", docInfoSet.getDate ("dCreateDate"));

    //updatebinder.putLocal ("dCreateDate", "");

    //updatebinder.putLocal ("dCreateDate", null);

    //updatebinder.putLocal ("dCreateDate", docInfoSet.getDate("dCreateDate").toString ());

    DCreateDate //Date = docInfoSet.getDate("dCreateDate");

    / * BEGIN - Encoder Date average Java * /.

    //example format: 2012-05-16 15:35

    SimpleDateFormat sdf = new SimpleDateFormat ("yyyy-MM-DD kk:mm:ss");

    updatebinder.putLocal ("dCreateDate", sdf.format (dCreateDate));

    //END - encoder Date average Java * /.

    / * BEGIN - Encoder Date Oracle COE medium * /.

    updatebinder.putLocal ("dCreateDate",

    DataObjectEncodingUtils.encodeDate (dCreateDate));

    //END - code way Date Oracle COE * /.

                    /*

    String dCreateDateString = docInfoSet.get("dCreateDate");

                    try

                    {

    updatebinder.addDate ("dCreateDate",

    DataObjectEncodingUtils.decodeDate (dCreateDateString)

                                                    (. getTime());

                    }

    catch (ParseException exception ignored) End Sub

                    */

    String xAssetSubType = docInfoSet.get("xAssetSubType");

    //log.debug ("setting in"xAssetSubType":" + xAssetSubType);

    updatebinder.putLocal ("xAssetSubType", xAssetSubType);

    / / Set the values of metadata

    for (String szFieldName: updateHMap.keySet ())

    {updatebinder.putLocal (szFieldName, updateHMap.get (szFieldName)) ;}}

    updatebinder. UPDATE_DOCINFO(); to say the next request to perform the update

    //now that we have result - try the update

    Return the response of update of the document

    log.info ("About to RUN: (updated) \n" + updatebinder.toString () ");

    If (log.isDebugEnabled ())

            {

    log.debug ("update fields");

    for (entry entry < String, String >: updatebinder.getLocalData () .entrySet ())

                    {

    log.debug ("Update: '" + entry.getKey () + "' to '" + entry.getValue () + "'" "");

                    }

            }

    ServiceResponse response = client.sendRequest (context, updatebinder);

    log.info ("Found: (updated) \n" ")

    + response.getResponseAsBinder () m:System.NET.SocketAddress.ToString ());

    return response;

            }

    catch (Cie IdcClientException)

            {

    log.error ("Error updating the Document", sea ice);

    //throw new RuntimeException ("Error updating the Document", sea ice);

    //throw new RuntimeException ("error updating the Document-" + ice.getMessage (), ice);

    throw RuntimeException (ice.getMessage () new, ice);

            }

    //something gone wrong

    //return null;

    }

    I could solve the problem.

    The answer is proven be setting the parameter UserDateFormat on the RIDC Binder that I used to make the update request.

    Then I got just to make sure that all of my dates been serialized using this same format.

  • How to install Oracle SOA as a result of the study?

    Hello world!
    I hope that you are all very well.

    I am interested in learning about Oracle SOA suite, just to get the basics. I was reading about the installation process, which includes:
    1. install the powerful Oracle DB.
    2. run Oracle RCU.
    3. install Oracle WebLogic Server.
    4. install and configure the Oracle SOA suite.
    5 install JDeveloper and extension of SOA composite editor.

    I'm in doubt, because I read that Oracle JDeveloper includes a WebLogic Server for development, obviously an IDE... I mean JDeveloper Setup contains everything necessary to begin development activities... so I think that the above steps are to set up a server and then grant access to the machinery of development... I'm bad? what I must it install on my local pc in order to obtain a basis for Oracle SOA suite practice work environment? I'm really looking forward to write a "Hello world!" with Oracle SOA.

    Thanks in advance!

    Hello

    Please: http://ariklalo.com/category/installation/soa-suite/

    Arik

  • Unexpected behavior with the role of OmeSiteAdministrators

    I is currently working on the test of the functionality of the OmeSiteAdministrator role, so we can use it in our Organization.  We run OME 2.0.0.1926.

    I went into preferences - permissions of device group and add a new test user (using members of the edict of OmeSiteAdministrators common task.)  I've provided the correct user and domain name.  Then I went to the section manage permissions of the device group and selected a group that this user must be able to deploy updates and tasks remotely.

    By connecting to the Console as long as this test user I could see all THE devices to Manage - devices.  When I went to Manage - system update I have also able to note all the devices listed in the incompatibilitee section and select any device to bring up the window of the tasks of system update for.

    I looked at the roles of the test user (by clicking the user name in the upper right corner) and saw that he was an OmeSiteAdministrator and OmeUser.  It looks like a clean install of OME adds the BUILTIN\Users group to OmeUsers group.  I deleted the OmeUsers group builtin\Users and then the test user could see that members of a group specified in Manage - system update.

    But when launched test user then the console OME, they could still see all devices to Manage - updating the system, even if the top of the window shows "System Update: filter by: ..  The actually specified group that contains a single device, but the test can view all devices.

    I have logged in as an OmeAdministrator, came back on the device group permissions and see an additional user.
    In modify the members of OmeSiteAdministrators, I see the test user appears twice, both times with the user name and the appropriate domain.  But there under manage group permissions on the device, the user/DOMAIN user that I added, but now also a STRANGER/user (domain is actually 'UNKNOWN' and user is the user name of test).

    It seems that the filter does not always work (it worked only once for the test user.  Each time other than the test user opens the console he showed all devices.)  Also, Im not sure why there is the addition of the UNKNOWN/username user.

    Also, please review read the white paper on delltechcenter.com/ome and see if it offers any help.

    OpenManage Essentials Role-Based Security and implementation

    Thank you

    Rob

  • How to duplicate an image on the main screen so that I can edit and compare the result with the original?

    12 elements how to duplicate an image on the screen (as well as the photo tray) so that I can compare any edition with the original?

    1. In the full Editor, go to Edition > Preferences > general and check "enable floating Documents in full Edit Mode".
    2. Open the image so that you can see in the project bin
    3. Right-click in the thumbnail of the image in the project bin and doubles. It will come as a xxxcopy
    4. On the icon to reorganize at the top, select 2-top. You should see the original and the duplicate in the work area
  • Unexpected result with select max (colmn) in anonymous block

    Hello

    The following query gives me 28 800 like sum (sal)
    SELECT SUM(salary)
    FROM employees 
        WHERE department_id =60
    O/P is :  28800
    But when I use the above query in anonymous block, it gives me 684400
    DECLARE
     v_sum_sal NUMBER;
     department_id employees.department_id%TYPE := 60;
    BEGIN
        dbms_output.put_line ('The department_id is'||department_id);
       SELECT SUM(salary)
          into v_sum_sal 
        FROM employees 
        WHERE department_id = department_id ;
       dbms_output.put_line ('The sum of sal is'||v_sum_sal);
    END;
    Exit instructions above gives me 684400 as output... But the grounds are 28800

    You can me why the output differs block anonymous reference please

    Hello

    What about prefixing all your PL/SQL variables so that they do not match a column_name :

    DECLARE
     v_sum_sal NUMBER;
     v_department_id employees.department_id%TYPE := 60;
    BEGIN
        dbms_output.put_line ('The department_id is'||v_department_id);
       SELECT SUM(salary)
          into v_sum_sal
        FROM employees
        WHERE department_id = v_department_id ;
       dbms_output.put_line ('The sum of sal is'||v_sum_sal);
    END;
    

    Because, with the first names, where clause was equivalent to:

    where 1=1
    
  • Get-clusters. Get-view resulting with the argument cannot be null or empty

    Recently, one of my faithful scripts stopped working - all the words of wisdom and advice are welcome.

    SCRIPT:

    $clusters = get-Cluster | Get-opinion

    foreach ($cluster in $clusters)

    {

    $1stESXinCluster = Get-VIObjectByVIView - MORef $cluster. Host [0]

    }

    RESULT:

    The argument cannot be null or empty.

    In: line tank: 5:46

    + $1stESXinCluster = Get-VIObjectByVIView - MORef < < < < $cluster. Host [0]

    It would be possible, one of the pole which is located in $cluster is without a host.

    You can add the conditional operator in the present.

    $clusters = Get-Cluster | get-view
    foreach ($cluster in $clusters)
    {
    if ($cluster.Host[0]-ne $null){
    $1stESXinCluster = Get-VIObjectByVIView -MORef $cluster.Host[0]
         }
    }
    

    Hope this helps

  • Unexpected result with Array.sort

    There seems to be a problem with the sort function when sorting the table contains several elements that are equal. I tried to illustrate this in the most simple form below:

    var test1:Array = ['a', 'b', 'this,' would be '];

    var test2:Array = [', 'c', 'b', 'a'];

    var test3:Array = ['a', 'b', 'c', ' a'];

    var test4:Array = ['a', ' a ',' b ', 'a'];

    trace (test1.sort (Array.RETURNINDEXEDARRAY)); Should be 0,1,2,3 (well!)

    trace (test2.sort (Array.RETURNINDEXEDARRAY)); Should be 3,2,1,0 (good!)

    trace (test3.sort (Array.RETURNINDEXEDARRAY)); Must be 0,2,3,1 (evil)

    trace (test4.sort (Array.RETURNINDEXEDARRAY)); Must be 0,1,3,2 (evil)

    / * Output

    0,1,2,3

    3,2,1,0

    3,0,1,2

    3,1,0,2

    */

    Can anyone find a reason of incompatibility, or is this a bug in the sorting method?

    test3: must be 0,3,1,2 or 3,0,1,2.  They are the same.

    test4: 0,1,3,2 is the same as 3,1,0,2 is the same as 1,0,3,2 is the same as 0,3,1,2 etc.  That is to say, as long as the index 2 is the last, they still.

    Oh, I see the problem.  you think flash is assign an index to the elements of the original array.

    It is not the case.  the method released the list of indices in the sort order.  IE, 0,3,1,2 means the original elements of 0th and 3rd tables are first and 2nd and the 1st element is the third and the 2nd element is the last.

    so, if you wanted to list the elements of original paintings using your sort order for test3, for example, you would use:

    test3 [0], test3 [3], test3 [1], test3 [2] and you expect, a, b, c

  • Creating a dashboard with the quick view component included.

    I'm new to Foglight (6.5) and try to create a dashboard for my overview of the virtual environment in a first time, so I can allow others to see.
    I was able to create a view that contains the main clusters, an alarm summary and so on, BUT I would like to be able to include the quick view component that appears on the front of the virtual environment summary at the top of the dashboard and can't seem to find a way to do it.
    CNA anyone help?

    Because of the complex environment that supports the component entries he has not been exposed for use with drag and drop. The component is provided with context so the tiles above as a whole and / or types of alarm and by the selected service name. Provide all these entries a drag / move dashboard or report is too complex.
    Are there some aspects of visualization that you particularly want to see?

Maybe you are looking for

  • Increase the performance of MAC with the SSD upgrade

    I have a 21.5-inch iMac model 14.1 (end 2013) with 8 GB of memory and a 1 TB drive. On this, I use some applications in memory such as Adobe CS 5.5 and VMWare Fusion 8.1.1. I have Applecare on the machine until September 2017. I often find myself run

  • Is there a way to bring back the "Open a new tab" option by right clicking on the tab?

    I just upgraded to the latest version of Firefox (6.0). Yesterday he informed that an upgrade to Firefox 5. (something) was available and asked if I wanted to spend. I went for it. However, I had not used since then until today. Now when I opened it

  • Cannot restore bookmarks

    Version 3.6.17 last night I noticed that a particular section of bookmark, I use a lot was missing so I tried to restore the bookmarks of a day old backup Firefox has automatically done for me. I got the error "Failed to process the backup file." So

  • How can I remove cookie from my pc

    How can I clear cookies from my pc

  • Simulator does not start correctly

    I use a Torch 9800 Simulator on a picture virtual box comments (Windows 7 4 GB of RAM, 256 MB of VRAM) For some reason, I am unable to get the Simulator to start with the handset 'skin' displayed... This could be down to the amount of video Ram curre