DBMS_lob Parameters/Arguments

Hello all!
Can anyone point me to the correct documentation that contains a list of parameters/arguments for DBMS_lob calls? I have the developers guide that deals with LOBs, but haven't found a list of arguments yet. In particular, I am looking for the following:
DBMS_lob.WRITE
DBMS_lob.WRITEAPPEND
DBMS_lob.APPEND
DBMS_lob.FILEOPEN
DBMS_lob.FILEGETNAME
DBMS_lob.SUBSTR
Any help would be greatly appreciated. Thank you!
Steve

http://download-east.oracle.com/docs/cd/B10501_01/appdev.920/a96612/d_lob2.htm#998404

Similar Messages

  • How should I understand the parameters/argument values in the {} and [] right after a function?

    Hi,
    How should I understand the parameters/argument values in the {} and [] right after a function?
    For instance the {[Name="control"]}[Content] part in the
    control=Excel.CurrentWorkbook(){[Name="control"]}[Content]
    and also the [Control]{0} part in the periodctrl=control[Control]{0}.
    Thanks.
    Regards,

    The "[]" operator in M is like the "." operator in C-like languages, if that helps. It takes an aggregate value with named components and it selects one of those components. In the case of the record "Foo", "Foo[Bar]"
    returns the field named Bar. In the case of the table "Baz", "Baz[Quux]" returns the column named Quux.
    Similarly, the "{}" operator in M does subscripting of lists -- like the "[]" operator in C-like languages. If "Foo" is a list, then "Foo{0}" returns the first element of the list, "Foo{1}" returns the second
    element of the list, and so on.
    In the case of tables, it's also possible to use "{}" with a record argument, in which case it will return the row which matches the record criteria -- provided there is exactly one. So if "Foo" is a table, then "Foo{[Bar = 1]}"
    will return the row for which the Bar column has a value of 1.
    Many of the data access functions in Power Query return what we call "navigation tables". Sql.Database, for instance, returns a table with columns named Name, Schema, Object, Kind and Data. Each table in the database has a single entry in this
    navigation table. When we index into the table with "table{[Schema="dbo", Object="table"]}", we're selecting the single row that matches those criteria. This gives us a record. We then want to pick the "Data" field of
    that record, which contains the actual table data. That's why there's typically a "[Data]" at the end of expressions which fetch data from the SQL table.

  • Script alarms and parameters / arguments

    ICal 2 now has the capability to use a acript as an alarm target (although I think this is really just 'GUI Candy' for the existing 'run an application' alarm type).
    However there don't seem to be any arguments or parameters passed to the script. I'd like to have a script that 'knows' what event triggered the alarm and can act appropriately. The only examples I have seen have required the script to look back into iCal and try to work out what the event was (based on calendar, date etc).
    Does anyone know how to get iCal to pass event information to the alarm script ? How would I raise this as a feature request ?

    Don't know how to help you but I think you explained it well, other than maybe add what specific information you want from iCal. Then just send the feedback.
    You might also want to check at the Applescript discussion to see if someone there can help you.

  • Using arguments to invoke an excel method from PL/SQL with Oracle COM

    Hello Gentlemen,
    I has been trying to export an excel sheet to a PDF file format using “ExportAsFixedFormat” method, with no success or error message.
    Moreover, I tried to use “PrintOut” method, if I use it with no parameters/arguments it executed without errors and display the sheet to an application installed in my PC (“SnagIt”), if I try to use it with an argument to assign a printer for it, I got this error message “PrintOut method of Workbook class failed xlmain11.chm”.
    I believe I have a problem with using arguments, and I don’t know how to use it in a proper way; the code I used is listed below for your review and your kind help, thank you a lot, and I appreciate so much your helpful feedback.
    Best regards,
    Nabil
    List 01 – using “ExportAsFixedFormat” method
    ==============================
    ORDCOM.InitArg();
    ORDCOM.SetArg('xlTypePDF','XlFixedFormatType');
    ORDCOM.SetArg('E:\ TestDelete.pdf','BSTR');
    ORDCOM.SetArg('xlQualityStandard','BSTR');
    ORDCOM.SetArg('True','BOOL');
    ORDCOM.SetArg('False','BOOL');
    ORDCOM.SetArg('True','BOOL');
    dbms_output.put_line('WorkSheetToken................WorkBookToken........'||WorkBookToken);
    i := ORDCOM.Invoke(WorkBookToken, 'ExportAsFixedFormat', 6, DummyToken);
    List 02 – using “PrintOut” method:
    ======================
    ActivePrinter := 'Macromedia FlashPaper';
    ORDCOM.InitArg();
    ORDCOM.SetArg(activeprinter,'BSTR');
    i := ORDCOM.Invoke(WorkBookToken, 'PrintOut', 1, DummyToken);

    Hello,
    Any help please? I believe I have a problem with using arguments, and I don’t know how to use it in a proper way; the code I used is listed above for your review and your kind help, thank you a lot, and I appreciate so much your helpful feedback.
    Best regards,
    Nabil

  • "argument number too large" in OEM import export app

    Hi everybody,
    I am a beginer with Oracle 9i and I am facing a strange error message when I try to import/export data from OEM connecter to my Oracle Enterprise Manager server.
    The user loged in is the SYSMAN user.
    When I launch the Import or Export applet on the selected database, Oracle send me the folowing message :
    (sorry for my french to english translation)
    "The following error occurs when you attemps to connect to the database with the login parameters
    argument number too large at"
    My Oracle 9i is installed on a clean test platform : NT4server + SP6 french version, dual proc and 512 Mb RAM.
    Can somebody help me ? I am unable to import/export data with the GUI.
    Thank you.
    Frangois.

    To view your folio on your iPad you have two choices:
    1 - If you built your folio offline on your local machine, choose the upload option from the Folio Builder fly out menu. All folios that were built online and any you uploaded are available for you to download when you log into ACV on your iPad.
    2 - This is a MAC only option. Plug your iPad into your computer via the USB cable. With the iPad turned on and ACV opened you will see a Preview on [iPad Name] from the preview menu in folio builder.
    I tested both of the supplied files after publishing them for the web from Edge and placing the html files in a web overlay. I previewed on both the desktop viewer and my iPad. Both worked as expected on the iPad. The Jams worked in a desktop preview but your logo just showed a red box. The white background is removed by selecting the transparent background option in the Overlay panel.
    As Bob said, the desktop previewer is not 100% reliable. It is used for quick, down and dirty checking. It's always pest to preview on a device if something does not work as expected.
    If it helps, I will share my test folio with you. Message me you email address.

  • Run .bat file with arguments?

    Hi,
       I need to run the .bat file with parameters/arguments in Adode Indesign JavaScript. "File.execute()" executes the file using the appropriate application.It executes the .bat file suceessfully.But I am unable to pass the arguments.I need to execute the command like
    Eg : test.bat parameter1 parameter2
    var myFile=new File("c:\\test.bat");
    myFile.execute();
    The above statements works fine. Is it possible to execute the with parameters. Please suggest the solution to above problem.

    Hi,
    let VB start the *.bat. this works for me:
    #target InDesign
    doTheBat('START "" "C:\\Program Files\\Adobe\\Adobe Photoshop CS5.1 (64 Bit)\\Photoshop.exe"')//Start Photoshop, just a example
    function doTheBat ( _data ) {  
            try 
                var _file = new File('~/myTmpBat.bat'); 
            _file.open( 'w' );  
            _file.encoding = 'UTF-8';  
        _file.writeln ( _data );  
        _file.close();  
        //_file.execute(); 
        myVBScript = "Set WshShell = CreateObject(\"WScript.Shell\")\r"; 
    myVBScript += "WshShell.Run chr(34) & \"C:\\Users\\%USERNAME%\\myTmpBat.bat\" & Chr(34), 0\r"; 
    myVBScript += "Set WshShell = Nothing\r";
    myVBScript += "\r"; 
    app.doScript(myVBScript, ScriptLanguage.VISUAL_BASIC);
        }catch (e){  alert(e);
    Good luck
    Hans-Gerd Claßen

  • Pass argument to launchctl?

    I have a command I want to run using launchd. The target program needs to take a path as an argument which can vary quite widely. Ideally, I'd like to issue something like
    launchctl load /Library/LaunchDaemons/MyDaemon.plist /path/to/some.conf
    where /path/to/some.conf is the desired path.
    Can launchctl take an argument from the command line and, if so, how do I capture and deploy it in the plist file?

    Nope, no can do. At least not in the way you describe.
    Any parameters/arguments passed on the command line would be passed to launchctl itself. It's not going to relay them to the process/script that it's about to manage.
    The only way you could (possibly?) do this is using environment variables and have the target process check the environment, something like:
    launchctl setenv FOO bar
    launchctl load /path/to/your.plist
    Now the process that's launched by that .plist would be able to read $FOO and get the value bar, so you may be able to incorporate that into your process.

  • Call SXPG _ CALL _ SYSTEM from ABAP program

    Hi,
    Someone may help me?  I need to call the function module SXPG _ CALL _ SYSTEM from ABAP program for to encrypt a file.
    I created the command by SM49 , but I don't know how I can call it from ABAP program.
    Thanks
    Maria C

    Hi Maria.
    This is a possible code you can use:
    DATA: log LIKE TABLE OF btcxpm WITH HEADER LINE.
    Can contain STDOUT, STDERR
    commandname =
    CALL FUNCTION ‘SXPG_CALL_SYSTEM’
    IMPORTING
      COMMANDNAME = commandname
      PARAMETERS = parameters
    EXPORTING
    STATUS = status
      TABLES
      EXEC_PROTOCOL = log
    EXCEPTIONS
      NO_PERMISSION = 1
      COMMAND_NOT_FOUND = 2
      PARAMETERS_TOO_LONG = 3
      SECURITY_RISK = 4
      WRONG_CHECK_CALL_INTERFACE = 5
      PROGRAM_START_ERROR = 6
      PROGRAM_TERMINATION_ERROR = 7
      X_ERROR = 8
      PARAMETER_EXPECTED = 9
      TOO_MANY_PARAMETERS = 10
      ILLEGAL_COMMAND = 11
      OTHERS = 12.
    The following are the comments of the parameters taken from:
    http://help.sap.com/saphelp_40b/helpdata/en/fa/0971ee543b11d1898e0000e8322d00/content.htm
    Parameters
    IMPORTING Parameters
    Parameter name
    Use
    COMMANDNAME
    The name of the definition of the external command, as specified in the maintenance function (transaction SM69).
    PARAMETERS
    Arguments for the external command as specified by the definition in the R/3 System and by the calling program or user.
    These arguments are checked for impermissible characters, such as the ; under UNIX. Problems are registered with the SECURITY_RISK exception.
    EXPORTING Parameters
    Parameter name
    Use
    STATUS
    Returns the final status of the execution of the external command:
    · Value ‘O’: The external command was started and ran to end successfully.
    · Value ‘E’: An error occurred; the external command was not run successfully.
    Tables Parameters
    Parameter name
    Use
    EXEC_PROTOCOL
    Contains the STDOUT and STDERR output of the external command and any output from the target host system.
    Exceptions
    Exception name
    Meaning
    X_ERROR
    Reserved for future use.
    NO_PERMISSION
    The AUTHORITY-CHECK of the user’s authorization for the authorization object S_LOG_COM failed. The user is not authorized to carry out the command named with the specified arguments on the target system.
    COMMAND_NOT_FOUND
    Command name, as identified by COMMANDNAME and OPERATINGSYSTEM, has not been defined in the maintenance function (transaction SM69).
    PARAMETERS_TOO_LONG
    The combined argument string (ADDITIONAL_PARAMETERS and the DEFINED_PARAMETERS, as returned in ALL_PARAMETERS) exceeds the limit of 128 characters in length.
    SECURITY_RISK
    Either:
    · The command contains impermissible characters. These are characters with potentially dangerous properties, such as ; under UNIX.
    · The command definition specifies that an extra-check function module be run. This function module has rejected execution of the command.
    WRONG_CHECK_CALL_
    INTERFACE
    The command definition specifies that an extra-check function module is to be run. Either this function module is missing, or the interface defined for this function module does not match that of the standard R/3 function module SXPG_DUMMY_COMMAND_CHECK. For more information, please see SXPG_DUMMY_COMMAND_CHECK: Interface for Extra-Check Function Modules.
    TOO_MANY_PARAMETERS
    The command definition specifies that user-specified arguments for the external command are not allowed. However, an additional string of command arguments was specified.
    PARAMETER_EXPECTED
    The command definition includes the placeholder character ?, which signifies that additional user-defined arguments are required. However, no additional arguments string was supplied.
    PROGRAM_START_ERROR
    An error occurred while starting the external command. The R/3 system field SY-MSGV1 contains additional information on the problem.
    PROGRAM_TERMINATION_
    ERROR
    An error occurred while trying to obtain the return code of the external program. The R/3 system field SY-MSGV1 contains additional information on the problem.
    ILLEGAL_COMMAND
    The external command definition was modified "illegally". That is, the command was not modified by means of the maintenance function (transaction SM69).
    The modified command is registered in the system log in its substituted form. The message is registered under the system log ID "LC".
    OTHERS
    Catch any new exceptions added to this function module.
    Hope this will be useful.
    Sandro Lombardo

  • Data driven subscription using c#

    I am getting the following error "System.Web.Services.Protocols.SoapException: The required field Field is missing from the input structure. ---> Microsoft.ReportingServices.Diagnostics.Utilities.MissingElementException: The required field Field
    is missing from the input structure.
       at Microsoft.ReportingServices.WebServer.ReportingService2005Impl.CreateSubscription(String Report, ExtensionSettings ExtensionSettings, Boolean isDataDriven, DataRetrievalPlan DataRetrievalPlan, String Description, String EventType, String MatchData,
    ParameterValueOrFieldReference[] Parameters, String& SubscriptionID)
       at Microsoft.ReportingServices.WebServer.ReportingService2005.CreateDataDrivenSubscription(String Report, ExtensionSettings ExtensionSettings, DataRetrievalPlan DataRetrievalPlan, String Description, String EventType, String MatchData, ParameterValueOrFieldReference[]
    Parameters, String& SubscriptionID)".
    Below is the code i used .
           ReportingService2005 rs = new ReportingService2005();
                rs.Credentials = System.Net.CredentialCache.DefaultCredentials;
                //the name of the report for which the DDS is to be created
                string report = "/testDataDriven/Report1";
                string description = "Programmatic Data Driven Subscription for Windows File Share";
                //set extension as Windows File Share
                ExtensionSettings settings = new ExtensionSettings();
                settings.Extension = "Report Server Email";
                // Set the extension parameter values.
                ParameterValueOrFieldReference[] extensionParams =
                   new ParameterValueOrFieldReference[8];
                ParameterFieldReference to = new ParameterFieldReference(); // Data-driven.
                to.ParameterName = "TO";
                to.FieldAlias = "EmailAddress";
                extensionParams[0] = to;
                ParameterValue replyTo = new ParameterValue();
                replyTo.Name = "ReplyTo";
                replyTo.Value = "[email protected]";
                extensionParams[1] = replyTo;
                ParameterValue includeReport = new ParameterValue();
                includeReport.Name = "IncludeReport";
                includeReport.Value = "False";
                extensionParams[2] = includeReport;
                ParameterValue renderFormat = new ParameterValue();
                renderFormat.Name = "RenderFormat";
                renderFormat.Value = "HTML4.0";
                extensionParams[3] = renderFormat;
                ParameterValue priority = new ParameterValue();
                priority.Name = "Priority";
                priority.Value = "NORMAL";
                extensionParams[4] = priority;
                ParameterValue subject = new ParameterValue();
                subject.Name = "Subject";
                subject.Value = "Your sales report";
                extensionParams[5] = subject;
                ParameterValue comment = new ParameterValue();
                comment.Name = "Comment";
                comment.Value = "Here is the link to your report.";
                extensionParams[6] = comment;
                ParameterValue includeLink = new ParameterValue();
                includeLink.Name = "IncludeLink";
                includeLink.Value = "True";
                extensionParams[7] = includeLink;
                settings.ParameterValues = extensionParams;
                DataSource delivery = new DataSource();
                delivery.Name = "";
                DataSourceDefinition dataSourceDef = new DataSourceDefinition();
                dataSourceDef.ConnectString = "my credentials";
                dataSourceDef.CredentialRetrieval = CredentialRetrievalEnum.Store;
                dataSourceDef.Enabled = true;
                dataSourceDef.EnabledSpecified = true;
                dataSourceDef.Extension = "ORACLE";
                dataSourceDef.WindowsCredentials = false;
                dataSourceDef.ImpersonateUser = false;
                dataSourceDef.UserName = "";
                dataSourceDef.Password = "";
                delivery.Item = dataSourceDef;
                //we will have to declare the list of parameter(s) the report requires
                //in this report there is only one parameter named “Sales Order Number”
                //create fields list which is comprising of only one field in this report
                Field[] fieldlist = new Field[2];
                fieldlist[0] = new Field();
                fieldlist[0].Name = "REF_MONTH";
                fieldlist[0].Alias = "REF_MONTH";
                fieldlist[1] = new Field();
                fieldlist[1].Name = "MTSO_ID";
                fieldlist[1].Alias = "MTSO_ID";
                //create data set
                DataSetDefinition dataSetDefinition = new DataSetDefinition();
                dataSetDefinition.AccentSensitivitySpecified = false;
                dataSetDefinition.CaseSensitivitySpecified = false;
                dataSetDefinition.KanatypeSensitivitySpecified = false;
                dataSetDefinition.WidthSensitivitySpecified = false;
                dataSetDefinition.Fields = fieldlist;
                QueryDefinition queryDefition = new QueryDefinition();
                queryDefition.CommandText = "SELECT  REF_MONTH FROM  REFERRAL_TRN_DETAILS1";
                queryDefition.CommandType = "Text";
                queryDefition.Timeout = 1000;
                queryDefition.TimeoutSpecified = true;
                dataSetDefinition.Query = queryDefition;
                DataSetDefinition results = new DataSetDefinition();
                bool changed;
                string[] paramNames;
                results = rs.PrepareQuery(delivery, dataSetDefinition, out changed, out paramNames);
                DataRetrievalPlan dataRetrieval = new DataRetrievalPlan();
                dataRetrieval.DataSet = results;
                dataRetrieval.Item = dataSourceDef;
                // Set the event type and match data for the delivery.
                string eventType = "TimedSubscription";
                string matchData = @"<ScheduleDefinition>";
                matchData += @"<StartDateTime>2003-04-14T19:15:00-07:00</StartDateTime><WeeklyRecurrence><WeeksInterval>1</WeeksInterval>";
                matchData += @"<DaysOfWeek>";
                matchData += @"<Monday>True</Monday><Tuesday>True</Tuesday><Wednesday>True</Wednesday><Thursday>True</Thursday><Friday>True</Friday>";
                matchData += @"</DaysOfWeek></WeeklyRecurrence></ScheduleDefinition>";
                // Set the report parameter values.
                ParameterValueOrFieldReference[] parameters = new ParameterValueOrFieldReference[2];
                ParameterFieldReference empID = new ParameterFieldReference(); // Data-driven.
                empID.ParameterName = "val";
                empID.FieldAlias = "REF_MONTH";
                parameters[0] = empID;
                ParameterValue reportYear = new ParameterValue();
                reportYear.Name = "val";
                reportYear.Value = "112013";
                parameters[1] = reportYear;
                string subscriptionID = rs.CreateDataDrivenSubscription
                (report, settings, dataRetrieval, description, eventType, matchData, parameters);
    i have one report parameter val, ineed to pass value from the query result.
    santosh

    Hi Santosh,
    Based on your error message, it's has issue in the parameters arguments when you call the createDataDrivenSubscription() function. we suggest you to check your parameters argument to createDataDrivenSubscriptio() function. Mostly it's the issue of the
    Parameters. You are passing a ParameterFieldReference array object called parameters. The web service is very strict with the FieldAlias property. It need the fieldAlias have to EXACTLY MATCH a field in the data set that
    is part of the data retrieval plan, otherwise it will throw the exception above. So please pay attention to the white space or lower/higher cap issue. Also we suggest you use functions like Trim() to make fieldAlias fit the field in dataset.
    Reference:
    The required field Field is
    missing from the input structure.
    Best Regards,
    Simon Hou

  • Journal Import Program in Release 12

    Hi
    In release 11i when we submit the journal import process below are the parameters and it's associated description
    11i Journal Import Process
    fnd_request.submit_request (application => 'SQLGL', -- application short name
    program => 'GLLEZL', -- program short name
    description => NULL, -- program name
    start_time => NULL, -- start date
    sub_request => FALSE, -- sub-request
    argument1 => p_interface_run_id, -- interface run id
    argument2 => 1, -- set of books id
    argument3 => 'N', -- error to suspense flag
    argument4 => NULL, -- from accounting date
    argument5 => NULL, -- to accounting date
    argument6 => l_summary_flag, -- create summary flag
    argument7 => 'N', -- import desc flex flag
    argument8 => 'Y' -- Data security mode flag
    However when I'm submiting the Journal Import Program in R12 thru front end, it gets submitted with following parameters/arguments.
    466, 1000, N, , , N, O, Y
    Question is in 11i I'm sure that the argument2 stands for Set of book id... but in R12 it's getting submitted as 1000 which is NOT my set of book id. Can anyone let me know the significance of each of the arguments/parameters that are used in R12 while submitting the Journal Import Process?
    Thanks
    A Sandeep

    Hi,
    We have checked GL Manual in this link but we have not found any note stating the actual details about parameters for Journal Import Process 'GLLEZL'.
    So it still very unclear about the parameters that gets submitted from the front end in Release 12.
    Hope someone can help.
    Thanks,
    Rasheel

  • FM used to display detail in text.

    Hi all,
             i have a requirement as ,
        on pressing a button(user defined) on app tool bar , i must get an F1 type details.
    Please note : it is not on any field F1

    HI,
    SXPG_DUMMY_COMMAND_CHECK: Interface for Extra-Check Function Modules 
    When you define an external command, you can specify that an additional function module be called to check a user’s authorization to run a command.
    You can define such an additional authorization check module yourself. Your function module must have the interface defined below for SXPG_DUMMY_COMMAND_CHECK. Like this function module, it may only allow or deny permission to carry out the command.
    To ensure that such a user exit function module cannot be misused, the system checks that the interface of the authorization-checking function module matches the interface of SXPG_DUMMY_COMMAND_CHECK. It is therefore essential that SXPG_DUMMY_COMMAND_CHECK never be changed.
    To write your own authorization-checking module, do the following:
    Copy SXPG_DUMMY_COMMAND_CHECK to a name in the customer naming range (names beginning with Y or Z).
    Write your authorization check.
    Specify that the function module should be run when the command that is to be checked is run. Do this in the command definition (transaction SM69).
    Do not change SXPG_DUMMY_COMMAND_CHECK or its interface. Never call this function module, either directly or by specifying it as the check module in a command definition. Copy it and then modify the new function module in order to implement an additional authorization check.
    Interface Syntax:
    IMPORTING
    PROGRAMNAME = <Program or command from definition>
    PARAMETERS = <Argument string>
    EXCEPTIONS
    NO_PERMISSION " Command rejected by user exit auth. check
    Parameters
    IMPORTING Parameters
    Parameter name
    Use
    PROGRAMNAME
    The fully substituted pathname of the external command that is to be run.
    PARAMETERS
    Arguments for the external command as specified by the definition in the R/3 System and by the calling program or user.
    These arguments are checked for impermissible characters, such as the ; under UNIX. Problems are registered with the SECURITY_RISK exception.
    Exceptions
    Exception name
    Meaning
    NO_PERMISSION
    Prevents a command from being run if the authorization check that you have implemented in a check module fails.
    NO_PERMISSION triggers the exception SECURITY_RISK in the calling function module.
    Refer this link.
    http://help.sap.com/saphelp_45b/helpdata/en/fa/09722f543b11d1898e0000e8322d00/frameset.htm

  • Difference in starting a weblogic server

    Hi,
    Can anyone please explain me what is the main difference in starting a weblogic server using a node manager and as a standalone (Without using node manager)

    Hi Prasad,
    I guess it's pretty much the same. Both methods do the following:
    Calls the StartWeblogic script, which invokes setDomainEnv to set environment variables
    Invokes java weblogic.server command which starts the JVM configured to run a WL server instance
    However, please keep note that any parameters/arguments set via Weblogic console > Environment > Servers > {SERVER} > Configuration > server start section, won't be used when starting the server using StartManagedWeblogic script, and only would be used when using nodemanager.
    You may also notice two jvm arguments exist, when using Nodemanager:
    -Dweblogic.system.BootIdentityFile
    -Dweblogic.nodemanager.ServiceEnabled
    Which are strictly Nodemanager related arguments, and shouldn't affect the jvm itself.
    You can check this doc for more info on start/stop your environment > http://docs.oracle.com/cd/E17904_01/web.1111/e13708/overview.htm#START120
    These are what I've noticed regarding that point. Hope it helps.
    Regards,
    Mohab

  • Fileupload with with ApexListener

    We want to migrate from OHS to Apex_Listener.
    As far we got the HTP content in the PLSQL Procedures which is stored in the datebase will be executed and as HTML/JavaScript deliverd.
    We don’t want to use APEX, only the Apex Listener. We are deploying ApexListener 2.0.1.
    Our Solution with OHS looks like the examples in the Documentation:
    http://docs.oracle.com/cd/B14099_19/web.1012/b14010/concept.htm#i1005866
    The Problem is, when we want to upload a file in the database. The error
    java.sql.SQLException: ORA-06550: line 2, column 2:
    PLS-00306: wrong number or types of arguments in call to 'WRITEINFO'
    ORA-06550: line 2, column 2:
    PL/SQL: Statement ignored
    This can we solve with a workaround and set some default parameters/arguments but then we got:
    May 29, 2013 11:49:32 AM oracle.dbtools.apex.hooks.fileUpload.ApexFileLoader checkDocMethod
    SEVERE: ORA-00942: table or view does not exist
    java.sql.SQLSyntaxErrorException: ORA-00942: table or view does not exist
    For our Problem we can’t find any Solution in the ApexListener Documentation.
    We know with OHS this works because of the DAD with the parameter : PlsqlDocumentProcedure and PlsqlDocumentTablename .
    How can we implement this function in APEX_LISTENER? How is it possible to HTTP POST a Document to a procedure?

    If you have a better solution let me know.
    i did this way ...
    in apex web.xml a servlet filter that use a HttpServletRequestWrapper to rewrite the request if
    httpRequest.getContentType().indexOf("multipart")
    the file become a standard String parameter (filename) and the byte[] is inserted in the documents table.

  • Alert commandline ConsoleTask Criteria syntax

    Hi,
    I have alerts generated by rules and monitors. This alerts may or may not contain additional data in its CustomField1: URL to a web page with some details.
    I have created an alert command line console task (and category) in my Management Pack.
    This task opens an URL from alert's CustomField1 in default web browser. I can easy pass this value to the task arguments just using $CustomField1$ syntax:
    <ManagementPackFragment SchemaVersion="2.0" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <Categories>
    <Category ID="MyMP.OpenUrlTaskCategory" Target="MyMP.OpenUrlTask" Value="System!System.Internal.ManagementPack.ConsoleTasks.Alert" />
    </Categories>
    <Presentation>
    <ConsoleTasks>
    <ConsoleTask ID="MyMP.OpenUrlTask" Accessibility="Internal" Enabled="true" Target="MyMP.MyClass" RequireOutput="false">
    <Assembly>MyMP.OpenUrlTaskAssembly</Assembly>
    <Handler>ShellHandler</Handler>
    <Parameters>
    <Argument Name="WorkingDirectory" />
    <Argument Name="Application">cmd.exe</Argument>
    <Argument>/c "start "" "$CustomField1$"</Argument>
    </Parameters>
    </ConsoleTask>
    </ConsoleTasks>
    </Presentation>
    <Resources>
    <Assembly ID="MyMP.OpenUrlTaskAssembly" Accessibility="Internal" FileName="MyMP.OpenUrlTask" HasNullStream="true" QualifiedName="MyMP.OpenUrlTask" />
    </Resources>
    </ManagementPackFragment>
    Task works fine, it opens a link in default browser. But now I want to use optional <Criteria> for my Console Task to show it only if CustomField1 actually is not empty and contains something that starts with 'http://'
    I have no idea how to access Alert's CustomField1 value in the Criteria XPath expression. I have tried a lot of options with $CustomField1$, /CustomField1, /Property[Name='CustomField1'] and so on. But it seems that Alert schema is not so primitive.
    What is a valid syntax in the Criteria to verify that Alert's CustomField1 is not empty and matches some pattern (I believe XPath function fn:starts-with() should work when I can correctly get the value)? MSDN example is not very descriptive in this case.
    Thank you for any help.
    Andrey.

    Juke, thank you for the answer.
    I have read MSDN examples and I know how does XPath work. The question is a bit deeper: I want to show my console task only for alerts that satisfies the following conditions:
    1. targeted to specific monitoring class from my pack (or, if possible, generated by specific rules)
    2. containing URL in it's CustomField1
    My current code is based on
    this MSDN example (that is actually related to SCSM, not SCOM). There is also another MSDN article related to SCOM SDK (here I can specify consoletask category using "Category"
    attribute) but it doesn't work at all (can't be compiled with VSAE - it says that "Category" attribute is not valid)
    Anyway, now with my code (from the first message in thread) I see the console task for
    any Alert in SCOM (even for Alerts that are not related to MyMP.MyClass objects, e.g. for Alerts targeted to Windows Computer and so on). I believe that correct <Criteria> should help me to fix it.
    The question is: Is it possible to somehow reach selected Alert's properties (e.g. CustomField1) using XPath in criteria? To do it I should know serialized Alert's schema.
    Also: why do I see this task in the SCOM console for all alerts but not only for alerts generated against MyClass? As you can see I have specified "target" attribute for the task. MyClass is based on ApplicationComponent
    Thank you

  • SCSM - How create view with all my work itens

    Dear,
    I need to create a view tha displays all work items assigned to me and my group. And I sill need to sorte this queue by the target date calculated by the SLO. Anyone know a solution?
    I've tried to create a query based on SLAInstanceInformation class, but when I click the record the related work item does not open your form. Have also tried to create based on work item class, but your relathionship WorkItemHasSLAInstanceInformation is
    1 to n.
    thank's,
    Juan

    Aaron, Thank's a lot.
    I had never created a custom task. I did the following steps:
    1. I made a dll with the following code and compiled successfully.
    namespace Axter.SLA.Instance.TimeInformation.Tasks
        class OpenTaskHandler : ConsoleCommand
            public override void ExecuteCommand(IList<NavigationModelNodeBase> nodes, NavigationModelNodeTask task, ICollection<string> parameters)
                if (nodes != null && nodes.Count == 1)
                    IDataItem idiDC = (IDataItem)nodes[0];
                    IDataItem idiPWI = (IDataItem)idiDC["WorkItemHasSLAInstanceInformation"];
                    FormUtilities.Instance.PopoutForm(idiPWI);
    2. I built the package and sealed successfully.
    <Category ID="Category.MyPopout.Task" Target="EditWorkItemTask" Value="Console!Microsoft.EnterpriseManagement.ServiceManager.UI.Console.DoubleClickTask" />
    <ConsoleTask ID="EditWorkItemTask" Accessibility="Public" Enabled="true" Target="SLA!System.SLA.Instance.TimeInformation" RequireOutput="false">
            <Assembly>Console!SdkDataAccessAssembly</Assembly>
            <Handler>Microsoft.EnterpriseManagement.UI.SdkDataAccess.ConsoleTaskHandler</Handler>
            <Parameters>
              <Argument Name="Assembly">Axter.SLA.Instance.TimeInformation.Tasks</Argument>
              <Argument Name="Type">Axter.SLA.Instance.TimeInformation.Tasks.OpenTaskHandler</Argument>
              <Argument>Edit</Argument>
            </Parameters>
          </ConsoleTask>
    <Resources>
        <Assembly ID="Axter.SLATasks" Accessibility="Public" FileName="Axter.SLA.Instance.TimeInformation.Tasks.dll" HasNullStream="false" QualifiedName="Axter.SLA.Instance.TimeInformation.Tasks, Version=1.0.0.0" />
      </Resources>
    3. I copied all files to a folder on ther server and executed following script in powershell
    import-module -force "C:\Program Files\Microsoft System Center 2012\Service Manager\Powershell\System.Center.Service.Manager.psd1"
    $mpbPath = "Axter.SLA.TypeProjection.mpb"
    $mp2 = "Axter.SLA.TypeProjection.mp"
    $mp1 = "Axter.SLA.TypeProjection.xml"
    $r1 = "Axter.SLA.Instance.TimeInformation.Tasks.dll"
    New-SCSMManagementPackBundle -Name $mpbPath -ManagementPack $mp1, $mp2 -Resource $r1 -Force
    4. Unfortunately i get the following message
    New-SCSMManagementPackBundle : Function failed during execution.
    At line:1 char:1
    + New-SCSMManagementPackBundle -Name $mpbPath -ManagementPack $mp1, $mp2 -Resource ...
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : NotSpecified: (Microsoft.Enter...ckBundleCommand:NewSCManagementPackBundleCommand) [New-SCManagementPackBundle], InstallerException
        + FullyQualifiedErrorId : ExecutionError,Microsoft.EnterpriseManagement.Core.Cmdlets.NewSCManagementPackBundleCommand
    Any idea?
    Juan

Maybe you are looking for