Execute DDL in a package

I connected as system/manager and executed:
CREATE OR REPLACE PROCEDURE create_user IS
BEGIN
EXECUTE IMMEDIATE 'create user my_user identified by my_user' ;
END;
But the following error displayed:
ORA-01031: insufficient privileges
How can we solve the problem?
null

If you got the error while compiling that means you don not have enough privilges to create procedures , if you got the error while running it means that you do not have the priv to create users.
say
SELECT * FROM SESSION_PRIVS; -- to have a look at the privs that you have .If you lack the above privs, please contact u're DBA to grant you the same.

Similar Messages

  • Analysis Services Execute DDL Task Internal error

    Hi all,
    I need help in solving this sporadic problem...  the dimension below (blanked out as xxxx) is based on a view.  The cube processes fine many times - but fails - abruptly once a week... it's being called from a sql job.
    Any ideas?  Thanks in advance!!
    Error: 2010-06-28 15:45:17.69     Code: 0xC1000007     Source: xxxxxxx Analysis Services Execute DDL Task     Description: Internal error: The operation terminated unsuccessfully.  End Error 
    Error: 2010-06-28 15:45:17.69     Code: 0xC11F000D     Source: xxxxxxx Analysis Services Execute DDL Task     Description: Errors in the OLAP storage engine: An error occurred while the 'xxxxx' attribute
    of the 'xxxxx' dimension from the 'xxxxxx' database was being processed.  End Error  Error: 2010-06-28 15:45:17.69     Code: 0xC11F0006     Source: xxxxxxx Analysis Services Execute DDL Task    
    Description: Errors in the OLAP storage engine: The process operation ended because the number of errors encountered during processing reached the defined limit of allowable errors for the operation.  End Error  Error: 2010-06-28 15:45:17.69    
    Code: 0xC11C0002     Source: xxxxxx Analysis Services Execute DDL Task     Description: Server: The operation has been cancelled.  End Error  DTExec: The package execution returned DTSER_FAILURE (1). 
    Started:  3:45:00 PM  Finished: 3:45:17 PM  Elapsed:  17.328 seconds.  The package execution failed.  The step failed.
    Harsh B

    (From http://msdn.microsoft.com/en-us/library/cc966526.aspx)
    "ExternalCommandTimeout is a server property that is used to set the number of seconds that SSAS should wait to time out when issuing commands to external data sources, such as relational and other OLAP sources."
    "ExternalConnectionTimeout is a server property that is used to set the number of seconds, by default, that SSAS should wait to time out when connecting to external data sources, such as relational and other OLAP sources."
    What you set it to, it's absolutely up to you... But as I see it in your log, your task failed in 17 and 9 seconds... So I think you can multiply the values by 10, I guess the situation won't change... But it is worth to check it at least.
    So... How often your fact table gets new (degenerate) dimension reference values? Is it a process update, or a process full command? I really would like to see it :)
    -- Zoltán Horváth
    -- MCITP SQL Server Business Intelligence Developer 2005, 2008
    -- Please mark posts as answered or helpful where appropriate.

  • Analysis Service Execute DDL Task throwing error with SourceType Variable

    Hi,
    I have Configuring Analysis Services Execute DDL Task to use Variable and Process Data(xmla Script) like below:
    When I execute this task I get the below error message:
    [Analysis Services Execute DDL Task] Error: The -->
    text node at line 23, column 3 cannot appear inside the DataSource element (namespace http://schemas.microsoft.com/analysisservices/2003/engine) under Envelope/Body/Execute/Command/Batch/Parallel/Process. This element can
    only have text nodes containing white-space characters.
    Can anyone please let me know how to resolve this.

    If I run using the sourceType "Direct Input", the Analysis Execute DDL Task runs fine, but if I use the sourcetype as variable its throws the error. And below is the xmla script
    Here is my Package look and the xmla script; its failing at "ProcessAdd" Analysis Execute DDL task:
    "SELECT '<Batch xmlns=\"http://schemas.microsoft.com/analysisservices/2003/engine\">
    <ErrorConfiguration xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:ddl2=\"http://schemas.microsoft.com/analysisservices/2003/engine/2\" xmlns:ddl2_2=\"http://schemas.microsoft.com/analysisservices/2003/engine/2/2\" xmlns:ddl100_100=\"http://schemas.microsoft.com/analysisservices/2008/engine/100/100\" xmlns:ddl200=\"http://schemas.microsoft.com/analysisservices/2010/engine/200\" xmlns:ddl200_200=\"http://schemas.microsoft.com/analysisservices/2010/engine/200/200\" xmlns:ddl300=\"http://schemas.microsoft.com/analysisservices/2011/engine/300\" xmlns:ddl300_300=\"http://schemas.microsoft.com/analysisservices/2011/engine/300/300\" xmlns:ddl400=\"http://schemas.microsoft.com/analysisservices/2012/engine/400\" xmlns:ddl400_400=\"http://schemas.microsoft.com/analysisservices/2012/engine/400/400\">
    <KeyNotFound>IgnoreError</KeyNotFound>
    </ErrorConfiguration>
    <Parallel>
    <Process xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:ddl2=\"http://schemas.microsoft.com/analysisservices/2003/engine/2\" xmlns:ddl2_2=\"http://schemas.microsoft.com/analysisservices/2003/engine/2/2\" xmlns:ddl100_100=\"http://schemas.microsoft.com/analysisservices/2008/engine/100/100\" xmlns:ddl200=\"http://schemas.microsoft.com/analysisservices/2010/engine/200\" xmlns:ddl200_200=\"http://schemas.microsoft.com/analysisservices/2010/engine/200/200\" xmlns:ddl300=\"http://schemas.microsoft.com/analysisservices/2011/engine/300\" xmlns:ddl300_300=\"http://schemas.microsoft.com/analysisservices/2011/engine/300/300\" xmlns:ddl400=\"http://schemas.microsoft.com/analysisservices/2012/engine/400\" xmlns:ddl400_400=\"http://schemas.microsoft.com/analysisservices/2012/engine/400/400\">
    <Object>
    <DatabaseID>IIS_Version2</DatabaseID>
    <DimensionID>Application</DimensionID>
    </Object>
    <Type>ProcessAdd</Type>
    <DataSource xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:ddl2=\"http://schemas.microsoft.com/analysisservices/2003/engine/2\" xmlns:ddl2_2=\"http://schemas.microsoft.com/analysisservices/2003/engine/2/2\" xmlns:ddl100_100=\"http://schemas.microsoft.com/analysisservices/2008/engine/100/100\" xmlns:ddl200=\"http://schemas.microsoft.com/analysisservices/2010/engine/200\" xmlns:ddl200_200=\"http://schemas.microsoft.com/analysisservices/2010/engine/200/200\" xmlns:ddl300=\"http://schemas.microsoft.com/analysisservices/2011/engine/300\" xmlns:ddl300_300=\"http://schemas.microsoft.com/analysisservices/2011/engine/300/300\" xmlns:ddl400=\"http://schemas.microsoft.com/analysisservices/2012/engine/400\" xmlns:ddl400_400=\"http://schemas.microsoft.com/analysisservices/2012/engine/400/400\" xmlns:dwd=\"http://schemas.microsoft.com/DataWarehouse/Designer/1.0\" xsi:type=\"RelationalDataSource\" dwd:design-time-name=\"1a3cb292-9bce-4c59-a182-177d6b3506ff\" xmlns=\"http://schemas.microsoft.com/analysisservices/2003/engine\">
    <ID>IISDW</ID>
    <Name>IISDW</Name>
    <ConnectionString>Provider=SQLNCLI11.1;Data Source=CO1MSFTSQLHKT02;Integrated Security=SSPI;Initial Catalog=IISDW</ConnectionString>
    <Timeout>PT0S</Timeout>-->
    </DataSource>
    <DataSourceView xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:ddl2=\"http://schemas.microsoft.com/analysisservices/2003/engine/2\" xmlns:ddl2_2=\"http://schemas.microsoft.com/analysisservices/2003/engine/2/2\" xmlns:ddl100_100=\"http://schemas.microsoft.com/analysisservices/2008/engine/100/100\" xmlns:ddl200=\"http://schemas.microsoft.com/analysisservices/2010/engine/200\" xmlns:ddl200_200=\"http://schemas.microsoft.com/analysisservices/2010/engine/200/200\" xmlns:ddl300=\"http://schemas.microsoft.com/analysisservices/2011/engine/300\" xmlns:ddl300_300=\"http://schemas.microsoft.com/analysisservices/2011/engine/300/300\" xmlns:ddl400=\"http://schemas.microsoft.com/analysisservices/2012/engine/400\" xmlns:ddl400_400=\"http://schemas.microsoft.com/analysisservices/2012/engine/400/400\" xmlns:dwd=\"http://schemas.microsoft.com/DataWarehouse/Designer/1.0\" dwd:design-time-name=\"b0b61205-c64d-4e34-afae-6d4d48b93fb3\" xmlns=\"http://schemas.microsoft.com/analysisservices/2003/engine\">
    <ID>IISDW</ID>
    <Name>IISDW</Name>
    <DataSourceID>IISDW</DataSourceID>
    <Schema>
    <xs:schema id=\"IISDW_x0020_1\" xmlns=\"\" xmlns:xs=\"http://www.w3.org/2001/XMLSchema\" xmlns:msdata=\"urn:schemas-microsoft-com:xml-msdata\" xmlns:msprop=\"urn:schemas-microsoft-com:xml-msprop\">
    <xs:element name=\"IISDW_x0020_1\" msdata:IsDataSet=\"true\" msdata:UseCurrentLocale=\"true\" msprop:design-time-name=\"72037318-e316-469d-9a45-a10c77709b39\">
    <xs:complexType>
    <xs:choice minOccurs=\"0\" maxOccurs=\"unbounded\">
    <xs:element name=\"Application\" msprop:design-time-name=\"7f579e7e-e8b7-4a9d-8a93-a255fccbbfbe\" msprop:IsLogical=\"True\" msprop:FriendlyName=\"Application\" msprop:DbTableName=\"Application\" msprop:TableType=\"View\" msprop:Description=\"\" msprop:QueryDefinition=\"SELECT a.Application, DATEADD([hour], DATEDIFF([hour], 0, a.[Timestamp]), 0) AS [Timestamp], a.ServerName, CAST(a.ServerName AS char(3)) AS DataCenter, a.CS_URI_Stem, CAST(HashBytes(''MD5'', &#xD;&#xA; a.Application + a.ServerName + a.CS_URI_Stem + CAST(DATEADD([hour], DATEDIFF([hour], 0, a.[Timestamp]), 0) AS varchar(24))) AS uniqueidentifier) AS Server_URI_Identity&#xD;&#xA;FROM IIS_6_OLD AS a LEFT OUTER JOIN&#xD;&#xA; Dimension_Pointer AS b ON a.Application = b.Application&#xD;&#xA;WHERE (b.ProcessedFlag = 0) AND (a.Application IN ("+(DT_WSTR,100) @[User::strDistinctApplication]+"))&#xD;&#xA;GROUP BY a.Application, DATEADD([hour], DATEDIFF([hour], 0, a.[Timestamp]), 0), a.ServerName, a.CS_URI_Stem\" msprop:QueryBuilder=\"SpecificQueryBuilder\">
    <xs:complexType>
    <xs:sequence>
    <xs:element name=\"Application\" msprop:design-time-name=\"f3074e98-4a82-4bc5-a818-916203f7758b\" msprop:DbColumnName=\"Application\" msprop:FriendlyName=\"Application\" minOccurs=\"0\">
    <xs:simpleType>
    <xs:restriction base=\"xs:string\">
    <xs:maxLength value=\"255\" />
    </xs:restriction>
    </xs:simpleType>
    </xs:element>
    <xs:element name=\"Timestamp\" msdata:ReadOnly=\"true\" msprop:design-time-name=\"2662e3a8-8b1a-4d77-aecb-575329b84dc1\" msprop:DbColumnName=\"Timestamp\" msprop:FriendlyName=\"Timestamp\" type=\"xs:dateTime\" />
    <xs:element name=\"ServerName\" msprop:design-time-name=\"ced26d49-cd6e-4073-a40c-ff5ef70e4ef1\" msprop:DbColumnName=\"ServerName\" msprop:FriendlyName=\"ServerName\" minOccurs=\"0\">
    <xs:simpleType>
    <xs:restriction base=\"xs:string\">
    <xs:maxLength value=\"255\" />
    </xs:restriction>
    </xs:simpleType>
    </xs:element>
    <xs:element name=\"DataCenter\" msdata:ReadOnly=\"true\" msprop:design-time-name=\"4583e15a-dcf1-45a2-a30b-bd142ca8b778\" msprop:DbColumnName=\"DataCenter\" msprop:FriendlyName=\"DataCenter\" minOccurs=\"0\">
    <xs:simpleType>
    <xs:restriction base=\"xs:string\">
    <xs:maxLength value=\"3\" />
    </xs:restriction>
    </xs:simpleType>
    </xs:element>
    <xs:element name=\"CS_URI_Stem\" msprop:design-time-name=\"10db5a79-8d50-49d2-9376-a3b4d19864b9\" msprop:DbColumnName=\"CS_URI_Stem\" msprop:FriendlyName=\"CS_URI_Stem\" minOccurs=\"0\">
    <xs:simpleType>
    <xs:restriction base=\"xs:string\">
    <xs:maxLength value=\"4000\" />
    </xs:restriction>
    </xs:simpleType>
    </xs:element>
    <xs:element name=\"Server_URI_Identity\" msdata:DataType=\"System.Guid, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089\" msdata:ReadOnly=\"true\" msprop:design-time-name=\"018ede0a-e15e-47c2-851b-f4431e8c839c\" msprop:DbColumnName=\"Server_URI_Identity\" msprop:FriendlyName=\"Server_URI_Identity\" type=\"xs:string\" />
    </xs:sequence>
    </xs:complexType>
    </xs:element>
    </xs:choice>
    </xs:complexType>
    <xs:unique name=\"Constraint1\" msprop:IsLogical=\"True\" msdata:PrimaryKey=\"true\">
    <xs:selector xpath=\".//Application\" />
    <xs:field xpath=\"Server_URI_Identity\" />
    <xs:field xpath=\"Timestamp\" />
    </xs:unique>
    </xs:element>
    </xs:schema>
    <IISDW_x0020_1 xmlns=\"\" />
    </Schema>
    </DataSourceView>
    <WriteBackTableCreation>UseExisting</WriteBackTableCreation>
    </Process>
    </Parallel>
    </Batch>' as XMLAScript_ProcessData"

  • Error while executing a procedure in Package

    ORA-04068: existing state of packages has been discarded
    ORA-04061: existing state of package "PLLODS.LK" has been invalidated
    ORA-04065: not executed, altered or dropped package "PLLODS.LK"
    ORA-06508: PL/SQL: could not find program unit being called
    ORA-06512: at line 1Why did this error arise when I changed a package and recompiled?

    This errors occurs when a package was executed in session A, compiled in session B, and then executed again in session A. The package executed in session A is in Oracle buffer, but its definition was changed in session B (which session A is unaware of). Now session A uses the old definition of the package but Oracle checks what is in buffer to the new definition and finds a difference. Therefore, it generates an error:
    ORA-04068: existing state of packages has been discarded
    and other related errors.
    Just execute the procedure (in the package) again and you should not see the error again.
    Make sure the stae of the package is valid, that is, when it was recompiled, the package compiled successfully.
    Shakti
    http://www.impact-sol.com
    Developers of Guggi Oracle - Tool for Developers and DBAs

  • Cannot Execute or Modify DM Packages in BPC 7.5 MS

    Hi Experts,
    We are implementing BPC 7.5 MS. The IT department has installed SAP BPC 7.5 MS on a heavily secured environment.
    Configuration:
    SAP BPC 7.5 MS SP04
    DB server:          SQL 2008 64-bit
    App server:        32-bit
    Client login via local client installation (no citrix/softgrid..)
    Iu2019ve tested both ApShell and our test environment configuration and Iu2019m able to:
    Administration
    -         Process ALL dimensions
    -         Process (save) ALL Applications
    -         Full optimize, index defrag, compress ALL applications
    -         Process Security and add new users
    -         Add a new dimension (as a test)
    Interface for Excel
    -         Send Data
    -         Retrieve Data
    -         Access the u2018Interface for the Webu2019 to modify Work Status
    The only thing that doesnu2019t work is execute or modify DM packages. The systems comes up with an 'exception error' and refers to the new BPC 7.5 log table, which gives me the following error:
    ==============[System Exception Tracing]==============
    [System  Name] : DM
    [Message Type] : 14
    [Job Name]     : EvServerDataMgr.cEvServerDataMgr.GetInfo
    [DateTime]     : 10/19/2010 3:49:21 PM
    [UserId]       : DOMAIN\userid
    [Exception]
    DetailMsg  : {Err.Number= 429 Err.Source= EvServerDataMgr Err.Description= ActiveX component can't create object(Assembly: Unknown, Object: OSoft.Services.Application.DataMgr.PackageExecute2008.DTSX)}
    ==============[System Exception Tracing  End ]==
    I have noticed that Business Intelligence/Visual studio was not installed on the Web server. Is that required, I couldn't find anything about it in the installation guide?
    Or is it the user/communication between front-end and back-end server. I am able to submit data, so...

    Enric,
    The problem was that we only installed Business Development Studio and Integration Services on the DB-server. After we installed the components on the (front-end) Webserver and registered the DLL's on both the front-end and back-end server, the problem was solved.
    See the link below for more information on registering the DLL's via Business Development Studio (we did not use regsvr32).
    http://help.sap.com/saphelp_bpc75/helpdata/en/07/30f30b58f145818861803b2f82ec86/content.htm
    Hope this will help.
    Regards,
    Peter.

  • View for Last executed DDL ?

    Hi,
    Is thr any view to find out the last executed ddl ?
    Because i need to know last change happend in the database .
    Thanking You
    Jeneesh

    From asktom :
    Tom,
    Can I have my last executed SQL retrieved from the database?
    just by passing the sid. I want those SQL executed in my application not the onse executed by
    Oracle itself
    Followup   November 12, 2003 - 5pm US/Eastern:
    you'll get the last sql executed by joining v$session to v$sql. if the last sql executed was
    recursive SYS sql -- you'll get that (that would be the last sql).  we really don't discriminate
    between them
        Forgot to tell you this data dictionary view will age out. So there is no absolute guarantee you will find all the sql executed since the database instance has been started. Other option is Audit. For more information refer oracle manual.
    Regards
    Ra
    Message was edited by:
    s.rajaram

  • Getting an error while executing ddl commands using dblink

    Hi,
    i am using Oracle9iR2 Version.
    i have created a procedure like below to execute ddl commands on remote database through dblink using dbms_sql.
    CREATE OR REPLACE PROCEDURE run_remote_ddl (p_dblink VARCHAR2, qry VARCHAR2)
    AS
    c_handle NUMBER;
    feedback INTEGER;
    stat VARCHAR2 (2000);
    BEGIN
    stat := 'select DBMS_SQL.open_cursor' || p_dblink || ' from dual';
    EXECUTE IMMEDIATE stat
    INTO c_handle;
    stat :=
    'begin DBMS_SQL.parse'
    || p_dblink
    || ' ('
    || c_handle
    || ','''
    || qry
    || ''', DBMS_SQL.v7); end;';
    EXECUTE IMMEDIATE stat;
    stat :=
    ' select DBMS_SQL.EXECUTE' || p_dblink || '(' || c_handle
    || ') from dual';
    EXECUTE IMMEDIATE stat
    INTO feedback;
    stat :=
    'declare x integer; begin x:= :1; DBMS_SQL.close_cursor'
    || p_dblink
    || '(x); end;';
    EXECUTE IMMEDIATE stat
    USING c_handle;
    END;
    when i run this procedure like below
    begin
    run_remote_ddl ('@dblink', 'create table scott.ttt(num number)');
    end;
    got an error:
    ORA-06553: PLS-103: Encountered the symbol ".2" when expecting one of the following:
    . ( * @ & = - + ; < / > at in is mod not rem
    <an exponent (**)> <> or != or ~= >= <= <> and or like
    between ||
    The symbol ". was inserted before ".2" to continue.
    ORA-06512: at RUN_REMOTE_DDL", line 9
    ORA-06512: at line 2
    Please tell me how to resolve this.
    Thanks in advance.

    Hi,
    >
    ORA-06553: PLS-103: Encountered the symbol ".2" when expecting one of the following:
    . ( * @ & = - + ; < / > at in is mod not rem
    <an exponent (**)> or != or ~= >= <= <> and or like
    between
    >
    Hope you are not typing 2 instead of @ as both are on the same key
    Can you run the following and see what is happening
    CREATE OR REPLACE PROCEDURE run_remote_ddl (p_dblink VARCHAR2, qry VARCHAR2)
    AS
    c_handle NUMBER;
    feedback INTEGER;
    stat VARCHAR2 (2000);
    BEGIN
    dbms_output.put_line(p_dblink);
    stat := 'select DBMS_SQL.open_cursor@dblink from dual';
    --stat := 'select DBMS_SQL.open_cursor from dual';
    EXECUTE IMMEDIATE stat
    INTO c_handle;
    END;
    exec run_remote_ddl('@dblink', 'create table scott.ttt(num number)');Regards
    Edited by: yoonus on Feb 20, 2013 3:47 AM

  • Executing ddl statment in pl/sql block

    Hi all,
    could anyone pls help in method for executing ddl statment in pl/sql block other than 'execute immediate' ?

    could anyone pls help in method for executing ddl statment in pl/sql block other than 'execute immediate' ?On newer db versions you have more options:
    SQL> desc t
    Error: object t does not exist
    SQL> exec sys.dbms_prvtaqim.execute_stmt('create table michael.t (a integer)')
    PL/SQL procedure successfully completed.
    SQL> desc t
    TABLE t
    Name                                      Null?    Type                       
    A                                                  NUMBER                     
    SQL> exec sys.dbms_utility.exec_ddl_statement('drop table michael.t')
    PL/SQL procedure successfully completed.
    SQL> desc t
    Error: object t does not exist;)

  • Make execute privileges on a package default to all schemas

    I have to grant execute privileges on dbms_aq package to schemas created in our database. Instead of granting these privileges explicitly after a schema is created is there a way to make dbms_aq to be executable for all schemas and any new schemas created there after.
    Something along the lines of dbms_utility having executable privileges for all schemas.
    thanks for your help

    "grant execute on dbms_aq to public"

  • Oracle recommends that you revoke EXECUTE privileges on powerful packages f

    Oracle recommends that you revoke EXECUTE privileges on powerful packages from PUBLIC
    Got on error on the home page of Enterprise Manager and read that I should run the code below to correct the problem, but when I click on the link at the bottom of EM to go to iSQL*Plus and choose to connect as sysdba I get a popup asking for me to input a password for my computer so I tried my local computer username and password, my network username and password and even my database username and password and neither lets me in. I can login under Normal but then I do not have rights to execute the command.
    revoke execute on utl_file from public;
    I know I have my computer username and password correct because I had to enter it to shutdown the database yesterday.
    And I had a problem with my listener not knowing the SID, but the error has since went away, but I do have an error on my listener saying
    Disk Utilization for 0 C: is 151.45%
    Edited by: jamesH2 on Aug 29, 2008 9:20 AM

    Hi James,
    Where you saw that Oracle recommend that? If you are refering to the Db console recomendations please take a look on this note also: Note:343620.1
    If you revoke any privilege from PUBLIC it becomes your own responsibility
    to ascertain that all your applications will keep working. The same goal can often be accomplished
    by replacing the privileges formerly granted to PUBLIC to some individual users or
    roles.
    Please take a look on this Metalink Note: 247093.1 Be Cautious When Revoking Privileges Granted to PUBLIC
    Regards,
    Francisco Munoz Alvarez
    www.oraclenz.com
    Edited by: F. Munoz Alvarez on Aug 30, 2008 1:31 AM

  • Analysis Services execute ddl task

    Hi,
    I want to run the Analysis Services execute ddl task to execute a cube creation via xmla script.
    The cube could already exist, so I want to ask if it exists before running the task or else it will fail.
    What would be the best way to perform this - if exist question ?
    Dani

    You can use alter element like this example:
    <Alter ObjectExpansion="ObjectProperties" xmlns="http://schemas.microsoft.com/analysisservices/2003/engine">
    <Object>
    <DatabaseID>Adventure Works DW Multidimensional 2012</DatabaseID>
    <DataSourceID>AdventureWorksDW2012</DataSourceID>
    </Object>
    <ObjectDefinition>
    <DataSource xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="RelationalDataSource">
    <ID>AdventureWorksDW2012</ID>
    <Name>AdventureWorksDW2012</Name>
    <ConnectionString>Data Source=fr-dwk-02;Initial Catalog=AdventureWorksDW2008R2;Integrated Security=True</ConnectionString>
    <ManagedProvider>System.Data.SqlClient</ManagedProvider>
    <Timeout>PT30S</Timeout>
    </DataSource>
    </ObjectDefinition>
    </Alter>
    More info on "Alter Element" on MSDN 
    http://technet.microsoft.com/en-us/library/ms186630.aspx

  • Why there is implicit commit before and after executing DDL Statements

    Hi Guys,
    Please let me know why there is implicit commit before and after executing DDL Statements ?
    Regards,
    sushmita

    Helyos wrote:
    This is because Oracle has design it like this.Come on Helyos, that's a bit of a weak answer. :)
    The reason is that it makes no sense to update the structure of the database whilst there is outstanding data updates that have not been committed.
    Imagine having a column that is VARCHAR2(50) that currently only has data that is up to 20 characters in size.
    Someone (person A) decides that it would make sense to alter the table and reduce the size of the column to varchar2(20) instead.
    Before they do that, someone else (person B) has inserted data that is 30 characters in size, but not yet committed it.
    As far as person B is concerned that insert statement has been successful as they received no error, and they are continuing on with their process until they reach a suitable point to commit.
    Person A then attempts to alter the database to make it varchar2(20).
    If the database allowed that to happen then the column would be varchar2(20) and the uncommitted data would no longer fit, even though the insert was successful. When is Person B going to find out about this? It would be wrong to tell them when they try and commit, because all their transactions were successful, so why should a commit fail.
    In this case, because it's two different people, then the database will recognise there is uncommitted transactions on that table and not let person B alter it.
    If it was just one person doing both things in the same session, then the data would be automatically committed, the alter statement executed and the person informed that they can't alter the database because there is (now) data exceeding the size they want to set it to.
    It makes perfect sense to have the database in a data consistent state before any alterations are made to it, hence why a commit is issued beforehand.
    Here's something I wrote the other day on the subject...
    DDL's issue a commit before carrying out the actual action
    As long as the DDL is syntactically ok (i.e. the parser is happy with it) then the commit is issued, even if the actual DDL cannot be executed for another reason.
    Example...
    We have a table with some data in it...
    SQL> create table xtest as select rownum rn from dual;
    Table created.
    SQL> select * from xtest;
            RN
             1We then delete the data but don't commit (demonstrated by the fact we can roll it back)
    SQL> delete from xtest;
    1 row deleted.
    SQL> select * from xtest;
    no rows selected
    SQL> rollback;
    Rollback complete.
    SQL> select * from xtest;
            RN
             1
    SQL> delete from xtest;
    1 row deleted.
    SQL> select * from xtest;
    no rows selectedSo now our data is deleted, but not committed, what if we issue a DDL that is syntactically incorrect...
    SQL> alter tab xtest blah;
    alter tab xtest blah
    ERROR at line 1:
    ORA-00940: invalid ALTER command
    SQL> rollback;
    Rollback complete.
    SQL> select * from xtest;
            RN
             1... the data can still be rolled back. This is because the parser was not happy with the syntax of the DDL statement.
    So let's delete the data again, without committing it, and issue a DDL that is syntactically correct, but cannot execute for another reason (i.e. the database object it refers to doesn't exist)...
    SQL> delete from xtest;
    1 row deleted.
    SQL> select * from xtest;
    no rows selected
    SQL> truncate table bob;
    truncate table bob
    ERROR at line 1:
    ORA-00942: table or view does not exist
    SQL> rollback;
    Rollback complete.
    SQL> select * from xtest;
    no rows selectedSo, there we have it. Just because the statement was syntactically correct, the deletion of the data was committed, even though the DDL couldn't be performed.
    This makes sense really, because if we are planning on altering the definition of the database where the data is stored, it can only really take place if the database is in a state where the data is where it should be rather than being in limbo. For example, imagine the confusion if you updated some data on a column and then altered that columns datatype to be a different size e.g. reducing a varchar2 column from 50 character down to 20 characters. If you had data that you'd just updated to larger than 20 characters whereas previously there wasn't, then the alter table command would not know about it, would alter the column size and then the data wouldn't be valid to fit whereas the update statement at the time didn't fail.
    Example...
    We have a table that only allows 20 characters in a column. If we try and insert more into that column we get an error for our insert statement as expected...
    SQL> create table xtest (x varchar2(20));
    Table created.
    SQL> insert into xtest values ('012345678901234567890123456789');
    insert into xtest values ('012345678901234567890123456789')
    ERROR at line 1:
    ORA-12899: value too large for column "SCOTT"."XTEST"."X" (actual: 30, maximum: 20)Now if our table allowed more characters our insert statement is successful. As far as our "application" goes we believe, nay, we have been told by the database, we have successfully inserted our data...
    SQL> alter table xtest modify (x varchar2(50));
    Table altered.
    SQL> insert into xtest values ('012345678901234567890123456789');
    1 row created.Now if we tried to alter our database column back to 20 characters and it didn't automatically commit the data beforehand then it would be happy to alter the column, but then when the data was committed it wouldn't fit. However the database has already told us that the data was inserted, so it can't go back on that now.
    Instead we can see that the data is committed first because the alter command returns an error telling us that the data in the table is too big, and also we cannot rollback the insert after the attempted alter statement...
    SQL> alter table xtest modify (x varchar2(20));
    alter table xtest modify (x varchar2(20))
    ERROR at line 1:
    ORA-01441: cannot decrease column length because some value is too big
    SQL> rollback;
    Rollback complete.
    SQL> select * from xtest;
    X
    012345678901234567890123456789
    SQL>Obviously, because a commit statement is for the existing session, if we had tried to alter the table column from another session we would have got
    SQL> alter table xtest modify (x varchar2(20));
    alter table xtest modify (x varchar2(20))
    ERROR at line 1:
    ORA-00054: resource busy and acquire with NOWAIT specified
    SQL>... which is basically saying that we can't alter the table because someone else is using it and they haven't committed their data yet.
    Once the other session has committed the data we get the expected error...
    ORA-01441: cannot decrease column length because some value is too bigHope that explains it

  • Get DDL for uncrypted packages using DBMS_METADATA

    Hi all,
    i was wondering if i could extract DDL sources for only uncrypted packages in my database using DBMS_METADATA?
    i have a lot of crypted packages stored in the DB.
    thank you in advance for your help

    dodi wrote:
    mmm so there is no way i can do that :( too bad!What about something like this (note untested)?
    DECLARE
    BEGIN
            FOR r IN
                    SELECT  DISTINCT OWNER
                    ,       NAME
                    ,       TYPE
                    FROM    DBA_SOURCE WHERE
                    NOT REGEXP_LIKE(UPPER(TEXT),'(PROCEDURE|PACKAGE|PACKAGE BODY) (.*) WRAPPED')
                    AND OWNER NOT IN ('SYS','SYSTEM','SYSMAN') -- Or OWNER IN for a specific set of SCHEMAS
                    AND TYPE IN ('PROCEDURE','PACKAGE')
                    AND LINE = 1
            LOOP
                    /*EXECUTE IMMEDIATE 'SELECT DBMS_METADATA.GET_DDL(''' || r.TYPE || ''',''' || r.NAME || ''',''' || r.OWNER || ''') FROM DUAL';*/
                    DBMS_OUTPUT.PUT_LINE('SELECT DBMS_METADATA.GET_DDL(''' || r.TYPE || ''',''' || r.NAME || ''',''' || r.OWNER || ''') FROM DUAL');
            END LOOP;
    END;

  • Execute procedure in a package using the caller privileges?

    Is it possible to execute a procedure within a package using the privileges of the caller rather than the privileges of the package owner? So if we have a procedure that does a select, one that does an insert, and another for update and a 4th for delete, then we just want to grant execute to user X on the select procedure in the package. This is a developer request. I think I just need to tell the requestor to copy or move the procedure out of the package and into it's own procedure so that it's safe to run by user X and not grant execute on the package since I don't believe it is possible to specify what procedures in a package are granted execute since that command is a blanket for the whole package right?
    Example - fails due to specifying the proc:
    grant execute on scmemaname.pkgname.procname to usr;
    There's no other command to do that is there?
    Thanks,
    Dave
    Edited by: Gib on Jan 19, 2010 8:42 AM

    AUTHID is at the package level ... not the individual function or procedure.
    Create a second package.

  • "error: command failed to execute correctly" on several packages

    Last night, when I updated before shutting down, I got a few errors, as in the subject. As it was very late, I thought I'd pick it up today.
    Unfortunately, the pacman log only lists one of the ones that failed as libgpg-error. The other one that I remember erroring was gawk. There were a few others, maybe four or five, but I couln't reliably recall them all, so won't guess.
    Here's a new attempt to reinstall gawk with --debug. I did the same with libgpg-error and the error occurred at the same place, with very similar output, so I think the issue is the same for all failures.
    debug: pacman v4.2.1 - libalpm v9.0.1
    debug: parseconfig: options pass
    debug: config: attempting to read file /etc/pacman.conf
    debug: config: finish section '(null)'
    debug: config: new section 'options'
    debug: config: HoldPkg: pacman
    debug: config: HoldPkg: glibc
    debug: config: usedelta (default 0.7)
    debug: config: arch: x86_64
    debug: config: verbosepkglists
    debug: config: chomp
    debug: config: SigLevel: Required
    debug: config: SigLevel: DatabaseOptional
    debug: config: SigLevel: TrustedOnly
    debug: config: LocalFileSigLevel: Optional
    debug: config: finish section 'options'
    debug: config: new section 'core'
    debug: config file /etc/pacman.conf, line 78: including /etc/pacman.d/mirrorlist
    debug: config: attempting to read file /etc/pacman.d/mirrorlist
    debug: config: finished parsing /etc/pacman.d/mirrorlist
    debug: config: finish section 'core'
    debug: config: new section 'extra'
    debug: config file /etc/pacman.conf, line 81: including /etc/pacman.d/mirrorlist
    debug: config: attempting to read file /etc/pacman.d/mirrorlist
    debug: config: finished parsing /etc/pacman.d/mirrorlist
    debug: config: finish section 'extra'
    debug: config: new section 'xyne-x86_64'
    debug: config: finish section 'xyne-x86_64'
    debug: config: new section 'community'
    debug: config file /etc/pacman.conf, line 91: including /etc/pacman.d/mirrorlist
    debug: config: attempting to read file /etc/pacman.d/mirrorlist
    debug: config: finished parsing /etc/pacman.d/mirrorlist
    debug: config: finish section 'community'
    debug: config: new section 'multilib'
    debug: config file /etc/pacman.conf, line 100: including /etc/pacman.d/mirrorlist
    debug: config: attempting to read file /etc/pacman.d/mirrorlist
    debug: config: finished parsing /etc/pacman.d/mirrorlist
    debug: config: finish section 'multilib'
    debug: config: new section 'infinality-bundle'
    debug: config: finish section 'infinality-bundle'
    debug: config: new section 'infinality-bundle-multilib'
    debug: config: finish section 'infinality-bundle-multilib'
    debug: config: new section 'infinality-bundle-fonts'
    debug: config: finish section 'infinality-bundle-fonts'
    debug: config: new section '(null)'
    debug: config: finished parsing /etc/pacman.conf
    debug: setup_libalpm called
    debug: option 'logfile' = /var/log/pacman.log
    debug: option 'gpgdir' = /etc/pacman.d/gnupg/
    debug: option 'cachedir' = /var/cache/pacman/pkg/
    debug: parseconfig: repo pass
    debug: config: attempting to read file /etc/pacman.conf
    debug: config: finish section '(null)'
    debug: config: new section 'options'
    debug: config: finish section 'options'
    debug: config: new section 'core'
    debug: config file /etc/pacman.conf, line 78: including /etc/pacman.d/mirrorlist
    debug: config: attempting to read file /etc/pacman.d/mirrorlist
    debug: config: finished parsing /etc/pacman.d/mirrorlist
    debug: config: finish section 'core'
    debug: registering sync database 'core'
    debug: database path for tree core set to /var/lib/pacman/sync/core.db
    debug: "/var/lib/pacman/sync/core.db.sig" is not readable: No such file or directory
    debug: sig path /var/lib/pacman/sync/core.db.sig could not be opened
    debug: missing optional signature
    debug: setting usage of 15 for core repoistory
    debug: adding new server URL to database 'core': http://arch.tamcore.eu/core/os/x86_64
    debug: adding new server URL to database 'core': http://mirror.one.com/archlinux/core/os/x86_64
    debug: adding new server URL to database 'core': http://mirror.gnomus.de/core/os/x86_64
    debug: adding new server URL to database 'core': http://mirror.js-webcoding.de/pub/archlinux/core/os/x86_64
    debug: adding new server URL to database 'core': http://archlinux.polymorf.fr/core/os/x86_64
    debug: config: new section 'extra'
    debug: config file /etc/pacman.conf, line 81: including /etc/pacman.d/mirrorlist
    debug: config: attempting to read file /etc/pacman.d/mirrorlist
    debug: config: finished parsing /etc/pacman.d/mirrorlist
    debug: config: finish section 'extra'
    debug: registering sync database 'extra'
    debug: database path for tree extra set to /var/lib/pacman/sync/extra.db
    debug: "/var/lib/pacman/sync/extra.db.sig" is not readable: No such file or directory
    debug: sig path /var/lib/pacman/sync/extra.db.sig could not be opened
    debug: missing optional signature
    debug: setting usage of 15 for extra repoistory
    debug: adding new server URL to database 'extra': http://arch.tamcore.eu/extra/os/x86_64
    debug: adding new server URL to database 'extra': http://mirror.one.com/archlinux/extra/os/x86_64
    debug: adding new server URL to database 'extra': http://mirror.gnomus.de/extra/os/x86_64
    debug: adding new server URL to database 'extra': http://mirror.js-webcoding.de/pub/archlinux/extra/os/x86_64
    debug: adding new server URL to database 'extra': http://archlinux.polymorf.fr/extra/os/x86_64
    debug: config: new section 'xyne-x86_64'
    debug: config: SigLevel: Required
    debug: config: finish section 'xyne-x86_64'
    debug: registering sync database 'xyne-x86_64'
    debug: database path for tree xyne-x86_64 set to /var/lib/pacman/sync/xyne-x86_64.db
    debug: GPGME version: 1.5.4
    debug: GPGME engine info: file=/usr/bin/gpg2, home=/etc/pacman.d/gnupg/
    debug: checking signature for /var/lib/pacman/sync/xyne-x86_64.db
    debug: 1 signatures returned
    debug: fingerprint: EC3CBE7F607D11E663149E811D1F0DC78F173680
    debug: summary: valid
    debug: summary: green
    debug: status: Success
    debug: timestamp: 1430676813
    debug: exp_timestamp: 0
    debug: validity: full; reason: Success
    debug: key: EC3CBE7F607D11E663149E811D1F0DC78F173680, Xyne. (key #3) <[email protected]>, owner_trust unknown, disabled 0
    debug: signature is valid
    debug: signature is fully trusted
    debug: setting usage of 15 for xyne-x86_64 repoistory
    debug: adding new server URL to database 'xyne-x86_64': http://xyne.archlinux.ca/repos/xyne
    debug: config: new section 'community'
    debug: config file /etc/pacman.conf, line 91: including /etc/pacman.d/mirrorlist
    debug: config: attempting to read file /etc/pacman.d/mirrorlist
    debug: config: finished parsing /etc/pacman.d/mirrorlist
    debug: config: finish section 'community'
    debug: registering sync database 'community'
    debug: database path for tree community set to /var/lib/pacman/sync/community.db
    debug: "/var/lib/pacman/sync/community.db.sig" is not readable: No such file or directory
    debug: sig path /var/lib/pacman/sync/community.db.sig could not be opened
    debug: missing optional signature
    debug: setting usage of 15 for community repoistory
    debug: adding new server URL to database 'community': http://arch.tamcore.eu/community/os/x86_64
    debug: adding new server URL to database 'community': http://mirror.one.com/archlinux/community/os/x86_64
    debug: adding new server URL to database 'community': http://mirror.gnomus.de/community/os/x86_64
    debug: adding new server URL to database 'community': http://mirror.js-webcoding.de/pub/archlinux/community/os/x86_64
    debug: adding new server URL to database 'community': http://archlinux.polymorf.fr/community/os/x86_64
    debug: config: new section 'multilib'
    debug: config file /etc/pacman.conf, line 100: including /etc/pacman.d/mirrorlist
    debug: config: attempting to read file /etc/pacman.d/mirrorlist
    debug: config: finished parsing /etc/pacman.d/mirrorlist
    debug: config: finish section 'multilib'
    debug: registering sync database 'multilib'
    debug: database path for tree multilib set to /var/lib/pacman/sync/multilib.db
    debug: "/var/lib/pacman/sync/multilib.db.sig" is not readable: No such file or directory
    debug: sig path /var/lib/pacman/sync/multilib.db.sig could not be opened
    debug: missing optional signature
    debug: setting usage of 15 for multilib repoistory
    debug: adding new server URL to database 'multilib': http://arch.tamcore.eu/multilib/os/x86_64
    debug: adding new server URL to database 'multilib': http://mirror.one.com/archlinux/multilib/os/x86_64
    debug: adding new server URL to database 'multilib': http://mirror.gnomus.de/multilib/os/x86_64
    debug: adding new server URL to database 'multilib': http://mirror.js-webcoding.de/pub/archlinux/multilib/os/x86_64
    debug: adding new server URL to database 'multilib': http://archlinux.polymorf.fr/multilib/os/x86_64
    debug: config: new section 'infinality-bundle'
    debug: config: finish section 'infinality-bundle'
    debug: registering sync database 'infinality-bundle'
    debug: database path for tree infinality-bundle set to /var/lib/pacman/sync/infinality-bundle.db
    debug: checking signature for /var/lib/pacman/sync/infinality-bundle.db
    debug: 1 signatures returned
    debug: fingerprint: A9244FB5E93F11F0E975337FAE6866C7962DDE58
    debug: summary: valid
    debug: summary: green
    debug: status: Success
    debug: timestamp: 1430276639
    debug: exp_timestamp: 0
    debug: validity: full; reason: Success
    debug: key: A9244FB5E93F11F0E975337FAE6866C7962DDE58, bohoomil (dev key) <[email protected]>, owner_trust unknown, disabled 0
    debug: signature is valid
    debug: signature is fully trusted
    debug: setting usage of 15 for infinality-bundle repoistory
    debug: adding new server URL to database 'infinality-bundle': http://bohoomil.com/repo/x86_64
    debug: config: new section 'infinality-bundle-multilib'
    debug: config: finish section 'infinality-bundle-multilib'
    debug: registering sync database 'infinality-bundle-multilib'
    debug: database path for tree infinality-bundle-multilib set to /var/lib/pacman/sync/infinality-bundle-multilib.db
    debug: checking signature for /var/lib/pacman/sync/infinality-bundle-multilib.db
    debug: 1 signatures returned
    debug: fingerprint: A9244FB5E93F11F0E975337FAE6866C7962DDE58
    debug: summary: valid
    debug: summary: green
    debug: status: Success
    debug: timestamp: 1430087321
    debug: exp_timestamp: 0
    debug: validity: full; reason: Success
    debug: key: A9244FB5E93F11F0E975337FAE6866C7962DDE58, bohoomil (dev key) <[email protected]>, owner_trust unknown, disabled 0
    debug: signature is valid
    debug: signature is fully trusted
    debug: setting usage of 15 for infinality-bundle-multilib repoistory
    debug: adding new server URL to database 'infinality-bundle-multilib': http://bohoomil.com/repo/multilib/x86_64
    debug: config: new section 'infinality-bundle-fonts'
    debug: config: finish section 'infinality-bundle-fonts'
    debug: registering sync database 'infinality-bundle-fonts'
    debug: database path for tree infinality-bundle-fonts set to /var/lib/pacman/sync/infinality-bundle-fonts.db
    debug: checking signature for /var/lib/pacman/sync/infinality-bundle-fonts.db
    debug: 1 signatures returned
    debug: fingerprint: A9244FB5E93F11F0E975337FAE6866C7962DDE58
    debug: summary: valid
    debug: summary: green
    debug: status: Success
    debug: timestamp: 1430276566
    debug: exp_timestamp: 0
    debug: validity: full; reason: Success
    debug: key: A9244FB5E93F11F0E975337FAE6866C7962DDE58, bohoomil (dev key) <[email protected]>, owner_trust unknown, disabled 0
    debug: signature is valid
    debug: signature is fully trusted
    debug: setting usage of 15 for infinality-bundle-fonts repoistory
    debug: adding new server URL to database 'infinality-bundle-fonts': http://bohoomil.com/repo/fonts
    debug: config: new section '(null)'
    debug: config: finished parsing /etc/pacman.conf
    debug: loading package cache for repository 'core'
    debug: opening archive /var/lib/pacman/sync/core.db
    debug: added 208 packages to package cache for db 'core'
    debug: adding package 'gawk'
    debug: loading package cache for repository 'local'
    debug: added 1122 packages to package cache for db 'local'
    warning: gawk-4.1.2-1 is up to date -- reinstalling
    debug: adding package gawk-4.1.2-1 to the transaction add list
    resolving dependencies...
    debug: resolving target's dependencies
    debug: started resolving dependencies
    debug: checkdeps: package gawk-4.1.2-1
    debug: finished resolving dependencies
    looking for conflicting packages...
    debug: looking for conflicts
    debug: check targets vs targets
    debug: check targets vs targets
    debug: check targets vs db and db vs targets
    debug: check targets vs db
    debug: check db vs targets
    debug: checking dependencies
    debug: checkdeps: package gawk-4.1.2-1
    debug: found cached pkg: /var/cache/pacman/pkg/gawk-4.1.2-1-x86_64.pkg.tar.xz
    debug: setting download size 0 for pkg gawk
    debug: sorting by dependencies
    debug: started sorting dependencies
    debug: sorting dependencies finished
    Package (1) Old Version New Version Net Change
    core/gawk 4.1.2-1 4.1.2-1 0.00 MiB
    Total Installed Size: 2.19 MiB
    Net Upgrade Size: 0.00 MiB
    :: Proceed with installation? [Y/n] y
    debug: using cachedir: /var/cache/pacman/pkg/
    debug: using cachedir: /var/cache/pacman/pkg/
    checking keyring...
    debug: looking up key 771DF6627EDF681F locally
    debug: key lookup success, key exists
    checking package integrity...
    debug: found cached pkg: /var/cache/pacman/pkg/gawk-4.1.2-1-x86_64.pkg.tar.xz
    debug: sig data: iQEcBAABCAAGBQJVQNc+AAoJEHcd9mJ+32gfQZgH/jkRiirmPTb4nE0xgcFGKc8wrxw3k9ooGyMFoeqAthTICB/5dBzNfEQ8b4X74gi8KiYQVYm4WE8kWIidUj5ekJhGwngO6Gk+lwyBq+Uh8rUHDJKw557fImM2bBah2lxNUxqZzxYTA1FByq2lptLB5EPJgAPemyUXACMXITDfqtWMpuHIEPLZi5WW9+cB0eMKz5IeEEfZi4lO2fyfRqxNkRDNSmC5NEDkfhm+XVXBEd4gugSOmYpKzlA67mjw2HP+oOyNheL8st4SjgFr/qVDdbfiBbaTTujC4mF1n73z5qp4K5/xgHqk42ftoo003XFQYVOAg3bDWMvUF5d63D4+HKg=
    debug: checking signature for /var/cache/pacman/pkg/gawk-4.1.2-1-x86_64.pkg.tar.xz
    debug: 1 signatures returned
    debug: fingerprint: 5B7E3FB71B7F10329A1C03AB771DF6627EDF681F
    debug: summary: valid
    debug: summary: green
    debug: status: Success
    debug: timestamp: 1430312766
    debug: exp_timestamp: 0
    debug: validity: full; reason: Success
    debug: key: 5B7E3FB71B7F10329A1C03AB771DF6627EDF681F, Tobias Powalowski <[email protected]>, owner_trust unknown, disabled 0
    debug: signature is valid
    debug: signature is fully trusted
    loading package files...
    debug: found cached pkg: /var/cache/pacman/pkg/gawk-4.1.2-1-x86_64.pkg.tar.xz
    debug: replacing pkgcache entry with package file for target gawk
    debug: opening archive /var/cache/pacman/pkg/gawk-4.1.2-1-x86_64.pkg.tar.xz
    debug: starting package load for /var/cache/pacman/pkg/gawk-4.1.2-1-x86_64.pkg.tar.xz
    debug: found mtree for package /var/cache/pacman/pkg/gawk-4.1.2-1-x86_64.pkg.tar.xz, getting file list
    debug: finished mtree reading for /var/cache/pacman/pkg/gawk-4.1.2-1-x86_64.pkg.tar.xz
    debug: sorting package filelist for /var/cache/pacman/pkg/gawk-4.1.2-1-x86_64.pkg.tar.xz
    checking for file conflicts...
    debug: looking for file conflicts
    debug: searching for file conflicts: gawk
    debug: searching for filesystem conflicts: gawk
    checking available disk space...
    debug: checking available disk space
    debug: discovered mountpoint: /tmp
    debug: discovered mountpoint: /sys/kernel/security
    debug: discovered mountpoint: /sys/kernel/debug
    debug: discovered mountpoint: /sys/kernel/config
    debug: discovered mountpoint: /sys/fs/pstore
    debug: discovered mountpoint: /sys/fs/cgroup/systemd
    debug: discovered mountpoint: /sys/fs/cgroup/net_cls
    debug: discovered mountpoint: /sys/fs/cgroup/memory
    debug: discovered mountpoint: /sys/fs/cgroup/freezer
    debug: discovered mountpoint: /sys/fs/cgroup/devices
    debug: discovered mountpoint: /sys/fs/cgroup/cpuset
    debug: discovered mountpoint: /sys/fs/cgroup/cpu,cpuacct
    debug: discovered mountpoint: /sys/fs/cgroup/blkio
    debug: discovered mountpoint: /sys/fs/cgroup
    debug: discovered mountpoint: /sys
    debug: discovered mountpoint: /run/user/1000
    debug: discovered mountpoint: /run
    debug: discovered mountpoint: /proc/sys/fs/binfmt_misc
    debug: discovered mountpoint: /proc
    debug: discovered mountpoint: /home/skanky/personal
    debug: discovered mountpoint: /home
    debug: discovered mountpoint: /dev/shm
    debug: discovered mountpoint: /dev/pts
    debug: discovered mountpoint: /dev/mqueue
    debug: discovered mountpoint: /dev/hugepages
    debug: discovered mountpoint: /dev
    debug: discovered mountpoint: /
    debug: loading fsinfo for /
    debug: partition /, needed 0, cushion 5121, free 1174711
    debug: installing packages
    reinstalling gawk...
    debug: reinstalling package gawk-4.1.2-1
    debug: opening archive /var/cache/pacman/pkg/gawk-4.1.2-1-x86_64.pkg.tar.xz
    debug: extracting: .INSTALL
    debug: removing old package first (gawk-4.1.2-1)
    debug: removing 110 files
    debug: unlinking /usr/share/man/man3/time.3am.gz
    debug: unlinking /usr/share/man/man3/rwarray.3am.gz
    debug: unlinking /usr/share/man/man3/revtwoway.3am.gz
    debug: unlinking /usr/share/man/man3/revoutput.3am.gz
    debug: unlinking /usr/share/man/man3/readfile.3am.gz
    debug: unlinking /usr/share/man/man3/readdir.3am.gz
    debug: unlinking /usr/share/man/man3/ordchr.3am.gz
    debug: unlinking /usr/share/man/man3/inplace.3am.gz
    debug: unlinking /usr/share/man/man3/fork.3am.gz
    debug: unlinking /usr/share/man/man3/fnmatch.3am.gz
    debug: unlinking /usr/share/man/man3/filefuncs.3am.gz
    debug: keeping directory /usr/share/man/man3/ (contains files)
    debug: unlinking /usr/share/man/man1/igawk.1.gz
    debug: unlinking /usr/share/man/man1/gawk.1.gz
    debug: keeping directory /usr/share/man/man1/ (contains files)
    debug: keeping directory /usr/share/man/ (contains files)
    debug: unlinking /usr/share/locale/vi/LC_MESSAGES/gawk.mo
    debug: keeping directory /usr/share/locale/vi/LC_MESSAGES/ (contains files)
    debug: keeping directory /usr/share/locale/vi/ (contains files)
    debug: unlinking /usr/share/locale/sv/LC_MESSAGES/gawk.mo
    debug: keeping directory /usr/share/locale/sv/LC_MESSAGES/ (contains files)
    debug: keeping directory /usr/share/locale/sv/ (contains files)
    debug: unlinking /usr/share/locale/pl/LC_MESSAGES/gawk.mo
    debug: keeping directory /usr/share/locale/pl/LC_MESSAGES/ (contains files)
    debug: keeping directory /usr/share/locale/pl/ (contains files)
    debug: unlinking /usr/share/locale/nl/LC_MESSAGES/gawk.mo
    debug: keeping directory /usr/share/locale/nl/LC_MESSAGES/ (contains files)
    debug: keeping directory /usr/share/locale/nl/ (contains files)
    debug: unlinking /usr/share/locale/ms/LC_MESSAGES/gawk.mo
    debug: keeping directory /usr/share/locale/ms/LC_MESSAGES/ (contains files)
    debug: keeping directory /usr/share/locale/ms/ (contains files)
    debug: unlinking /usr/share/locale/ja/LC_MESSAGES/gawk.mo
    debug: keeping directory /usr/share/locale/ja/LC_MESSAGES/ (contains files)
    debug: keeping directory /usr/share/locale/ja/ (contains files)
    debug: unlinking /usr/share/locale/it/LC_MESSAGES/gawk.mo
    debug: keeping directory /usr/share/locale/it/LC_MESSAGES/ (contains files)
    debug: keeping directory /usr/share/locale/it/ (contains files)
    debug: unlinking /usr/share/locale/fr/LC_MESSAGES/gawk.mo
    debug: keeping directory /usr/share/locale/fr/LC_MESSAGES/ (contains files)
    debug: keeping directory /usr/share/locale/fr/ (contains files)
    debug: unlinking /usr/share/locale/fi/LC_MESSAGES/gawk.mo
    debug: keeping directory /usr/share/locale/fi/LC_MESSAGES/ (contains files)
    debug: keeping directory /usr/share/locale/fi/ (contains files)
    debug: unlinking /usr/share/locale/es/LC_MESSAGES/gawk.mo
    debug: keeping directory /usr/share/locale/es/LC_MESSAGES/ (contains files)
    debug: keeping directory /usr/share/locale/es/ (contains files)
    debug: unlinking /usr/share/locale/de/LC_MESSAGES/gawk.mo
    debug: keeping directory /usr/share/locale/de/LC_MESSAGES/ (contains files)
    debug: keeping directory /usr/share/locale/de/ (contains files)
    debug: unlinking /usr/share/locale/da/LC_MESSAGES/gawk.mo
    debug: keeping directory /usr/share/locale/da/LC_MESSAGES/ (contains files)
    debug: keeping directory /usr/share/locale/da/ (contains files)
    debug: unlinking /usr/share/locale/ca/LC_MESSAGES/gawk.mo
    debug: keeping directory /usr/share/locale/ca/LC_MESSAGES/ (contains files)
    debug: keeping directory /usr/share/locale/ca/ (contains files)
    debug: keeping directory /usr/share/locale/ (contains files)
    debug: unlinking /usr/share/info/gawkinet.info.gz
    debug: unlinking /usr/share/info/gawk.info.gz
    debug: keeping directory /usr/share/info/ (contains files)
    debug: unlinking /usr/share/awk/zerofile.awk
    debug: unlinking /usr/share/awk/walkarray.awk
    debug: unlinking /usr/share/awk/strtonum.awk
    debug: unlinking /usr/share/awk/shellquote.awk
    debug: unlinking /usr/share/awk/round.awk
    debug: unlinking /usr/share/awk/rewind.awk
    debug: unlinking /usr/share/awk/readfile.awk
    debug: unlinking /usr/share/awk/readable.awk
    debug: unlinking /usr/share/awk/quicksort.awk
    debug: unlinking /usr/share/awk/processarray.awk
    debug: unlinking /usr/share/awk/passwd.awk
    debug: unlinking /usr/share/awk/ord.awk
    debug: unlinking /usr/share/awk/noassign.awk
    debug: unlinking /usr/share/awk/libintl.awk
    debug: unlinking /usr/share/awk/join.awk
    debug: unlinking /usr/share/awk/inplace.awk
    debug: unlinking /usr/share/awk/group.awk
    debug: unlinking /usr/share/awk/gettime.awk
    debug: unlinking /usr/share/awk/getopt.awk
    debug: unlinking /usr/share/awk/ftrans.awk
    debug: unlinking /usr/share/awk/ctime.awk
    debug: unlinking /usr/share/awk/cliff_rand.awk
    debug: unlinking /usr/share/awk/bits2str.awk
    debug: unlinking /usr/share/awk/assert.awk
    debug: keeping directory /usr/share/awk/ (in new package)
    debug: keeping directory /usr/share/ (contains files)
    debug: unlinking /usr/lib/gawk/time.so
    debug: unlinking /usr/lib/gawk/testext.so
    debug: unlinking /usr/lib/gawk/rwarray.so
    debug: unlinking /usr/lib/gawk/revtwoway.so
    debug: unlinking /usr/lib/gawk/revoutput.so
    debug: unlinking /usr/lib/gawk/readfile.so
    debug: unlinking /usr/lib/gawk/readdir.so
    debug: unlinking /usr/lib/gawk/ordchr.so
    debug: unlinking /usr/lib/gawk/inplace.so
    debug: unlinking /usr/lib/gawk/fork.so
    debug: unlinking /usr/lib/gawk/fnmatch.so
    debug: unlinking /usr/lib/gawk/filefuncs.so
    debug: keeping directory /usr/lib/gawk/ (in new package)
    debug: unlinking /usr/lib/awk/pwcat
    debug: unlinking /usr/lib/awk/grcat
    debug: keeping directory /usr/lib/awk/ (in new package)
    debug: keeping directory /usr/lib/ (contains files)
    debug: unlinking /usr/include/gawkapi.h
    debug: keeping directory /usr/include/ (contains files)
    debug: unlinking /usr/bin/igawk
    debug: unlinking /usr/bin/gawk-4.1.2
    debug: unlinking /usr/bin/gawk
    debug: unlinking /usr/bin/awk
    debug: keeping directory /usr/bin/ (contains files)
    debug: keeping directory /usr/ (contains files)
    debug: removing database entry 'gawk'
    debug: removing entry 'gawk' from 'local' cache
    debug: extracting files
    debug: opening archive /var/cache/pacman/pkg/gawk-4.1.2-1-x86_64.pkg.tar.xz
    debug: skipping extraction of '.PKGINFO'
    debug: extracting /var/lib/pacman/local/gawk-4.1.2-1/install
    debug: extracting /var/lib/pacman/local/gawk-4.1.2-1/mtree
    debug: extract: skipping dir extraction of /usr/
    debug: extract: skipping dir extraction of /usr/lib/
    debug: extract: skipping dir extraction of /usr/share/
    debug: extract: skipping dir extraction of /usr/include/
    debug: extract: skipping dir extraction of /usr/bin/
    debug: extracting /usr/bin/igawk
    debug: extracting /usr/bin/awk
    debug: extracting /usr/bin/gawk-4.1.2
    debug: extracting /usr/bin/gawk
    debug: extracting /usr/include/gawkapi.h
    debug: extract: skipping dir extraction of /usr/share/locale/
    debug: extract: skipping dir extraction of /usr/share/awk/
    debug: extract: skipping dir extraction of /usr/share/info/
    debug: extract: skipping dir extraction of /usr/share/man/
    debug: extract: skipping dir extraction of /usr/share/man/man3/
    debug: extract: skipping dir extraction of /usr/share/man/man1/
    debug: extracting /usr/share/man/man1/gawk.1.gz
    debug: extracting /usr/share/man/man1/igawk.1.gz
    debug: extracting /usr/share/man/man3/filefuncs.3am.gz
    debug: extracting /usr/share/man/man3/fnmatch.3am.gz
    debug: extracting /usr/share/man/man3/fork.3am.gz
    debug: extracting /usr/share/man/man3/inplace.3am.gz
    debug: extracting /usr/share/man/man3/ordchr.3am.gz
    debug: extracting /usr/share/man/man3/readdir.3am.gz
    debug: extracting /usr/share/man/man3/readfile.3am.gz
    debug: extracting /usr/share/man/man3/revoutput.3am.gz
    debug: extracting /usr/share/man/man3/revtwoway.3am.gz
    debug: extracting /usr/share/man/man3/rwarray.3am.gz
    debug: extracting /usr/share/man/man3/time.3am.gz
    debug: extracting /usr/share/info/gawk.info.gz
    debug: extracting /usr/share/info/gawkinet.info.gz
    debug: extracting /usr/share/awk/zerofile.awk
    debug: extracting /usr/share/awk/walkarray.awk
    debug: extracting /usr/share/awk/strtonum.awk
    debug: extracting /usr/share/awk/shellquote.awk
    debug: extracting /usr/share/awk/round.awk
    debug: extracting /usr/share/awk/rewind.awk
    debug: extracting /usr/share/awk/readfile.awk
    debug: extracting /usr/share/awk/readable.awk
    debug: extracting /usr/share/awk/quicksort.awk
    debug: extracting /usr/share/awk/processarray.awk
    debug: extracting /usr/share/awk/ord.awk
    debug: extracting /usr/share/awk/noassign.awk
    debug: extracting /usr/share/awk/libintl.awk
    debug: extracting /usr/share/awk/join.awk
    debug: extracting /usr/share/awk/inplace.awk
    debug: extracting /usr/share/awk/gettime.awk
    debug: extracting /usr/share/awk/getopt.awk
    debug: extracting /usr/share/awk/ftrans.awk
    debug: extracting /usr/share/awk/ctime.awk
    debug: extracting /usr/share/awk/cliff_rand.awk
    debug: extracting /usr/share/awk/bits2str.awk
    debug: extracting /usr/share/awk/assert.awk
    debug: extracting /usr/share/awk/group.awk
    debug: extracting /usr/share/awk/passwd.awk
    debug: extract: skipping dir extraction of /usr/share/locale/vi/
    debug: extract: skipping dir extraction of /usr/share/locale/sv/
    debug: extract: skipping dir extraction of /usr/share/locale/pl/
    debug: extract: skipping dir extraction of /usr/share/locale/nl/
    debug: extract: skipping dir extraction of /usr/share/locale/ms/
    debug: extract: skipping dir extraction of /usr/share/locale/ja/
    debug: extract: skipping dir extraction of /usr/share/locale/it/
    debug: extract: skipping dir extraction of /usr/share/locale/fr/
    debug: extract: skipping dir extraction of /usr/share/locale/fi/
    debug: extract: skipping dir extraction of /usr/share/locale/es/
    debug: extract: skipping dir extraction of /usr/share/locale/de/
    debug: extract: skipping dir extraction of /usr/share/locale/da/
    debug: extract: skipping dir extraction of /usr/share/locale/ca/
    debug: extract: skipping dir extraction of /usr/share/locale/ca/LC_MESSAGES/
    debug: extracting /usr/share/locale/ca/LC_MESSAGES/gawk.mo
    debug: extract: skipping dir extraction of /usr/share/locale/da/LC_MESSAGES/
    debug: extracting /usr/share/locale/da/LC_MESSAGES/gawk.mo
    debug: extract: skipping dir extraction of /usr/share/locale/de/LC_MESSAGES/
    debug: extracting /usr/share/locale/de/LC_MESSAGES/gawk.mo
    debug: extract: skipping dir extraction of /usr/share/locale/es/LC_MESSAGES/
    debug: extracting /usr/share/locale/es/LC_MESSAGES/gawk.mo
    debug: extract: skipping dir extraction of /usr/share/locale/fi/LC_MESSAGES/
    debug: extracting /usr/share/locale/fi/LC_MESSAGES/gawk.mo
    debug: extract: skipping dir extraction of /usr/share/locale/fr/LC_MESSAGES/
    debug: extracting /usr/share/locale/fr/LC_MESSAGES/gawk.mo
    debug: extract: skipping dir extraction of /usr/share/locale/it/LC_MESSAGES/
    debug: extracting /usr/share/locale/it/LC_MESSAGES/gawk.mo
    debug: extract: skipping dir extraction of /usr/share/locale/ja/LC_MESSAGES/
    debug: extracting /usr/share/locale/ja/LC_MESSAGES/gawk.mo
    debug: extract: skipping dir extraction of /usr/share/locale/ms/LC_MESSAGES/
    debug: extracting /usr/share/locale/ms/LC_MESSAGES/gawk.mo
    debug: extract: skipping dir extraction of /usr/share/locale/nl/LC_MESSAGES/
    debug: extracting /usr/share/locale/nl/LC_MESSAGES/gawk.mo
    debug: extract: skipping dir extraction of /usr/share/locale/pl/LC_MESSAGES/
    debug: extracting /usr/share/locale/pl/LC_MESSAGES/gawk.mo
    debug: extract: skipping dir extraction of /usr/share/locale/sv/LC_MESSAGES/
    debug: extracting /usr/share/locale/sv/LC_MESSAGES/gawk.mo
    debug: extract: skipping dir extraction of /usr/share/locale/vi/LC_MESSAGES/
    debug: extracting /usr/share/locale/vi/LC_MESSAGES/gawk.mo
    debug: extract: skipping dir extraction of /usr/lib/gawk/
    debug: extract: skipping dir extraction of /usr/lib/awk/
    debug: extracting /usr/lib/awk/pwcat
    debug: extracting /usr/lib/awk/grcat
    debug: extracting /usr/lib/gawk/filefuncs.so
    debug: extracting /usr/lib/gawk/fnmatch.so
    debug: extracting /usr/lib/gawk/fork.so
    debug: extracting /usr/lib/gawk/inplace.so
    debug: extracting /usr/lib/gawk/ordchr.so
    debug: extracting /usr/lib/gawk/readdir.so
    debug: extracting /usr/lib/gawk/readfile.so
    debug: extracting /usr/lib/gawk/revoutput.so
    debug: extracting /usr/lib/gawk/revtwoway.so
    debug: extracting /usr/lib/gawk/rwarray.so
    debug: extracting /usr/lib/gawk/testext.so
    debug: extracting /usr/lib/gawk/time.so
    debug: updating database
    debug: adding database entry 'gawk'
    debug: writing gawk-4.1.2-1 DESC information back to db
    debug: writing gawk-4.1.2-1 FILES information back to db
    debug: adding entry 'gawk' in 'local' cache
    debug: executing ". /tmp/alpm_r21DA5/.INSTALL; post_upgrade 4.1.2-1 4.1.2-1"
    debug: executing "/usr/bin/bash" under chroot "/"
    debug: call to waitpid succeeded
    error: command failed to execute correctly
    debug: running ldconfig
    debug: executing "/usr/bin/ldconfig" under chroot "/"
    debug: call to waitpid succeeded
    debug: unregistering database 'local'
    debug: freeing package cache for repository 'local'
    debug: unregistering database 'core'
    debug: freeing package cache for repository 'core'
    debug: unregistering database 'extra'
    debug: unregistering database 'xyne-x86_64'
    debug: unregistering database 'community'
    debug: unregistering database 'multilib'
    debug: unregistering database 'infinality-bundle'
    debug: unregistering database 'infinality-bundle-multilib'
    debug: unregistering database 'infinality-bundle-fonts'
    pacman thinks the upgrade/reinstall was successful in that the latest version is installed.
    I did a search on the forums and the only other issue that I thought was connected might be microcode not up to date, but I had followed the update instructions some time back and as far as I can tell, the microcode  is up to date.
    I have two main questions:
    1) How do I work out what's causing the error, from above?
    2) Is there a way I can work out which packages gave the error, so I can make sure they're installed properly?
    Thanks.

    The following packages also had problems
    ( 2/17) upgrading glibc
    error: command failed to execute correctly
    ( 3/17) upgrading binutils
    error: command failed to execute correctly
    ( 4/17) upgrading coreutils
    error: command failed to execute correctly
    ( 8/17) upgrading gcc
    error: command failed to execute correctly
    ( 9/17) upgrading gcc-fortran
    error: command failed to execute correctly
    (10/17) upgrading gcc-libs
    error: command failed to execute correctly
    Does anybody have a clue?
    Thanks,

Maybe you are looking for