Problem with Top SQLs report

Hello

I have a big problem with Top SQLs reports, when I generate a report of high SQLs, SQL, the value text is not end, I know that there is a "The SQL text size" setting on the properties of the agent (this configuration is also on the collections setting ' Ta maximum size in characters of the short collects text of the SQL statement is ") on the two options , I've incremented the value of 256 (default) 1500, but when I generate the Top SQLs postpones continue it problem, once the changes I restarted the agent but the problem persists, I generate the report on the different formats, but result is the same, could you help me please.

Thank you.

Best regards.

I see this in support KB article https://support.software.dell.com/kb/109536

"

  • Title

    SQL in DB2 Top instructions are truncated in the delivered report of Top SQL

  • Description

    SQL in DB2 Top instructions are truncated in the delivered report of Top SQL

  • Resolution

  • Resolution A DDB-3673 request improvement with Support software Dell to show the full text of SQL high in the report Top SQL for DB2.

    Workaround At this point you should be able to make a custom report by cloning the Top SQL existing and then customizing report. »

I know that this is not the solution, more of an explanation and guidance on how to solve this problem by using customizations.

Golan

Tags: Dell Tech

Similar Questions

  • Upgrade Vista to 7 the SafeMode problem with the compatibility report

    I'm trying to upgrade my computer to Windows 7 after problems with Vista, and now I can start only my computer into safe mode now.

    The update disc work until I get to the "compatibility report" in which it gives me the message: "the computer started using the Windows installation disc.  Remove the installation disc and restart your computer so that windows starts normally, then restart the update."

    This message appears in safe mode with networking, which was started without the installation disc inserted.  I then restarted and booted from the DVD and tried to update again, and he gave me the same message (which makes sense because I boot from the disk).

    This message occurs when I start in safe mode or safe mode with network.

    Is there anyway to solve this problem, so I can go ahead with the update?  Also, I can't start my computer in normal mode to respect the indications that gives me this message.

    Hello
    You can't go in safe mode

    1. Close all running programs and open the windows if you are back on the desktop.
    2. Click on the Start () button.
    3. In the search box of the Start Menu () type msconfig and press enter on your keyboard - follow UAC prompt.
    4. The System Configuration utility opens
    5. Make sure the Normal startup is selected
    6. then click on the STARTUP tab at the top
    7. Make sure that the startup is disabled
    8. Apply - OK - then follow restart guests

    If it does not do a startup repair

    the link below is how to download and get a vista disk startup repair, which you can start from the

    http://NeoSmart.net/blog/2008/Windows-Vista-recovery-disc-download/

    Here's how to use startup repair system restore command prompt, etc. to bleepingcomputers link below

    http://www.bleepingcomputer.com/tutorials/tutorial148.html

    to boot from the dvd drive to be able to you will see a way to get into the bios Setup at the bottom of the screen or command menu start

    It would be F2 or delete etc to enter the BIOS or F12 etc. for the start menu

    Change boot order it do dvd drive 1st in the boot order

    http://helpdeskgeek.com/how-to/change-boot-order-XP-Vista/

    Windows 7 installation issues and ask in the forums of windows 7

    http://answers.Microsoft.com/en-us/Windows/default.aspx#tab=2

  • Problems with Windows Error Reporting

    I have Vista Home Prmium with SP2 on a dual processor computer heart. wermgr.exe is running in the background and when he does he can linger around for awhile while using 50% of my CPU all the time. He passes in and out the Task Manager, so that the CPU usage is constantly bounce up and down. I tried to disable the windows error reporting service, but it does not work. I read it could be a problem with 2007, but Office and this race Diagnostics would take care of the problem... but the diagnosis has not found a problem. Does anyone have an idea what I can do to fix this? Or y at - it a way to really disable the error reporting service?

    Thank you

    Here's how to disable Windows error reporting in Vista: http://www.howtogeek.com/howto/7863/disable-error-reporting-in-xp-vista-and-windows-7/; However, it is not recommended because it can be a useful tool if you are having problems.  That "s your decision to make.

    I hope this helps.

    Good luck!

    Lorien - MCSA/MCSE/network + / has + - if this post solves your problem, please click the 'Mark as answer' or 'Useful' button at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.

  • What is the problem with my Oracle reports parameter?

    Hello

    We use a PL SQL package that allows the user to select the report you want Oracle and associated parameters.   While the control is passed to Oracle 11 g reports.

    The requirement of one of the reports is to enable more detailed codes be selected by the user and then shown.  The detailed code is an alphanumeric field that can hold between 4 and 6 characters.

    If my data model looks like this

    SELECT student_id

        FROM my_view

       WHERE detail_code IN :p_detail_code;

    and the parameter that I'm passing to Oracle reports looks like this (when I view the source HTML code)

    & p_detail_code =('1001','1002')

    so no record is selected.

    However, if my data model looks like this, I get the records you want:

    SELECT student_id

      FROM my_view

    WHERE detail_code IN ('1001', '1002');

    We have Oracle Database 11 g Enterprise Edition Release 11.2.0.4.0 - 64 bit Production.

    Please tell me what is the problem with my setting.  Thanks a lot for your help.

    This isn't how you can use in. See this example on how to solve it with the digital settings. If your setting is a character, you need to change this.

    In fact, when you simply enter 1,2,3 as an input parameter, you actually create this query:

    Select *.

    from my_table

    where num_column in ("1,2,3")

    Use rather a lexical parameter:

    Select *.

    from my_table

    & p_where

    In the parameter after relaxation shape, build the lexical like this:

    :p_where := 'where num_column in ('||:p_param||')';
    
  • What is the problem with my sql says invalid identifier

    CREATE THE TABLE PROJECT

    (proj # NUMBER (6) NOT NULL,)

    p_name VARCHAR2 (15) NOT NULL,

    p_desc VARCHAR2 (150) NOT NULL,

    p_budget NUMBER (8).

    CONSTRAINT project_proj PRIMARY KEY #pname_pk (proj #, p_name));

    CREATE TABLE WORK ORDERS

    (wo # NUMBER (6))

    proj # NUMBER (6).

    wo_desc VARCHAR2 (150).

    wo_assigned VARCHAR2 (30),

    wo_hours NUMBER (5),

    wo_start DATE,

    wo_due DATE,

    wo_complete char (1),

    CONSTRAINT workorders_wo #_pk KEY(wo#) primary SCHOOL.

    CONSTRAINT workorders_wo #_fk FOREIGN KEY (proj #)

    REFERENCES PROJECT (proj #).

    Workorders_wodesc_uk of CONSTRAINT UNIQUE (wo_desc).

    CONSTRAINT workorders_hours_ck CHECK (wo_hours > = 0).

    CONSTRAINT workorders_wocomplete_ck CHECK (wo_complete in ('Y', 'n')));

    Whenever you have an error message the best thing to do is post a copy of your session with your statement sqlplus output. Like this.

    I have no problem with your first statement regarding the syntax and semantics

    SQL> create table project
      2  (
      3  proj# number(6) not null,
      4  p_name varchar2(15)not null,
      5  p_desc varchar2(150)not null,
      6  p_budget number(8),
      7  constraint project_proj#pname_pk primary key (proj#, p_name)
      8  );
    
    Table created.
    

    Second table a problem that his tent to make reference to project.proj #. But the problem is that it doesn't have a primary or unique key defined in this topic.

    SQL> create table workorders
      2  (
      3  wo# number(6),
      4  proj# number(6),
      5  wo_desc varchar2(150),
      6  wo_assigned varchar2(30),
      7  wo_hours number(5),
      8  wo_start date,
      9  wo_due date,
     10  wo_complete char(1),
     11  constraint workorders_wo#_pk primary key(wo#),
     12  constraint workorders_wo#_fk foreign key (proj#)
     13  references project (proj#),
     14  constraint workorders_wodesc_uk unique (wo_desc),
     15  constraint workorders_hours_ck check (wo_hours >=0),
     16  constraint workorders_wocomplete_ck check (wo_complete in ('y' ,'n'))
     17  );
    references project (proj#),
                        *
    ERROR at line 13:
    ORA-02270: no matching unique or primary key for this column-list
    

    I defined a

    SQL> alter table project add constraint project_proj#_uk unique (proj#);
    
    Table altered.
    

    Now, the second table is also created correctly

    SQL> create table workorders
      2  (
      3  wo# number(6),
      4  proj# number(6),
      5  wo_desc varchar2(150),
      6  wo_assigned varchar2(30),
      7  wo_hours number(5),
      8  wo_start date,
      9  wo_due date,
     10  wo_complete char(1),
     11  constraint workorders_wo#_pk primary key(wo#),
     12  constraint workorders_wo#_fk foreign key (proj#)
     13  references project (proj#),
     14  constraint workorders_wodesc_uk unique (wo_desc),
     15  constraint workorders_hours_ck check (wo_hours >=0),
     16  constraint workorders_wocomplete_ck check (wo_complete in ('y' ,'n'))
     17  );
    
    Table created.
    
    SQL>
    

    My Version of DB's

    SQL> select * from v$version where rownum = 1;
    
    BANNER
    ----------------------------------------------------------------
    Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - 64bi
    
    SQL>
    
  • Pool pane there problem with long sql query?

    Hello

    I use Jdeveloper 11.1.2.2.0

    In the application I'm developing, there is a long sql query to call (it's a function from a package, which may take a few minutes to run) and I want to display a progress bar for the user.

    The progress bar component is a "progress indicator" and the percentage of achivement is refreshed by a component 'pool' with 1-second interval.

    The two components are connected in a javabean.

    The function with the sql query is the javabean too.

    To run the sql query that is long on background I am calling from a thread, and the pool component get the advancement of the percentage of a pipe filled with the sql function.

    If the function to run is just a long loop of java operations the progress bar works fine, but if I put my long sql query instead, stop listener pool should be performed to stop long, s sql queryo progress are updated only at the end of the long sql query.

    You have any ideas?

    Thank you

    Thanks for your replies. Unfortunately, it was not the solution to my case, sql procedures to block the entire application while ADF awaits them at the end...

    To solve my problem, I finally used a PL SQL Job to call my sql procedure (dbms_job.submit).

    The application is released right after the call and the component of the pool is not more secure!

    Kind regards

    Yann

  • Problem with migration SQL Server Oracle 11.2 2012 DB using SQL Developer Migration workbench

    Hello

    I have a problem when migrating SQL Server Oracle 11.2 2012 using SQL Developer Migration workbench, hope that someone had the same problem before and can give same advide...

    I use SQL Developer Version 4.0.1.14 and Oracle Database 11 g Enterprise Edition Release 11.2.0.1.0. and last jtds - 1.3.

    I created the schema migration_repo, privileges, connected to the third part of Db (SQL Server) and begin a trial with assistant. In the first step of the model to Capture, I get the message from the:

    "Company Capture Capture failed.  Refer to the table MIGRLOG in the repository for more details ".

    But MIGRLOG is empty.

    Here is my log:

    <? XML version = "1.0" encoding = "windows-1252" standalone = 'no '? >

    < Log >

    account <>

    < date > 2014-03-16T 20: 49:17 < / date >

    oracle.dbtools.migration.workbench.core.MigrationLogResourceBundle < recorder > < / recorder >

    < level > SEVERE < / level >

    oracle.dbtools.migration.workbench.core.logging.MigrationLogUtil < class > < / class >

    < message > Capture

    Capture Enterprise

    Capture failure.  Refer to the MIGRLOG table in the repository for more details < / message >

    oracle.dbtools.migration.workbench.core.ui.FullMigrateTask.doOnlineEnterpriseCapture(FullMigrateTask.java:758) < param > < / param >

    oracle.dbtools.migration.workbench.core.ui.FullMigrateTask.doCapture(FullMigrateTask.java:601) < param > < / param >

    oracle.dbtools.migration.workbench.core.ui.FullMigrateTask.doMaskBasedActions(FullMigrateTask.java:400) < param > < / param >

    oracle.dbtools.migration.workbench.core.ui.FullMigrateTask.doWork(FullMigrateTask.java:314) < param > < / param >

    oracle.dbtools.migration.workbench.core.ui.FullMigrateTask.doWork(FullMigrateTask.java:147) < param > < / param >

    oracle.dbtools.raptor.backgroundTask.RaptorTask.call(RaptorTask.java:193) < param > < / param >

    java.util.concurrent.FutureTask.run(FutureTask.java:262) < param > < / param >

    oracle.dbtools.raptor.backgroundTask.RaptorTaskManager$ (RaptorTaskManager.java:554) < param > RaptorFutureTask.run < / param >

    java.util.concurrent.Executors$ (Executors.java:471) < param > RunnableAdapter.call < / param >

    java.util.concurrent.FutureTask.run(FutureTask.java:262) < param > < / param >

    java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) < param > < / param >

    java.util.concurrent.ThreadPoolExecutor$ Worker.run (ThreadPoolExecutor.java:615) < param > < / param >

    java.lang.Thread.run(Thread.java:744) < param > < / param >

    oracle.dbtools.migration.workbench.core.logging.LogInfo@68e69a < param > < / param >

    < exception >

    < message > oracle.dbtools.migration.workbench.core.ui.FullMigrateTask$ FullMigrateTaskException: Capture

    Capture Enterprise

    Capture failure.  Refer to the MIGRLOG table in the repository for more details < / message >

    < frame >

    oracle.dbtools.migration.workbench.core.ui.FullMigrateTask < class > < / class >

    < line > 758 < / line >

    < / framework >

    < frame >

    oracle.dbtools.migration.workbench.core.ui.FullMigrateTask < class > < / class >

    < line > 601 < / line >

    < / framework >

    < frame >

    oracle.dbtools.migration.workbench.core.ui.FullMigrateTask < class > < / class >

    line 400 > of < < / line >

    < / framework >

    < frame >

    oracle.dbtools.migration.workbench.core.ui.FullMigrateTask < class > < / class >

    < line > 314 < / line >

    < / framework >

    < frame >

    oracle.dbtools.migration.workbench.core.ui.FullMigrateTask < class > < / class >

    < line > 147 < / line >

    < / framework >

    < frame >

    oracle.dbtools.raptor.backgroundTask.RaptorTask < class > < / class >

    < line > 193 < / line >

    < / framework >

    < frame >

    java.util.concurrent.FutureTask < class > < / class >

    < line > 262 < / line >

    < / framework >

    < frame >

    oracle.dbtools.raptor.backgroundTask.RaptorTaskManager$ RaptorFutureTask < class > < / class >

    < line > 554 < / line >

    < / framework >

    < frame >

    java.util.concurrent.Executors$ RunnableAdapter < class > < / class >

    < line > 471 < / line >

    < / framework >

    < frame >

    java.util.concurrent.FutureTask < class > < / class >

    < line > 262 < / line >

    < / framework >

    < frame >

    java.util.concurrent.ThreadPoolExecutor < class > < / class >

    < line > 1145 < / line >

    < / framework >

    < frame >

    java.util.concurrent.ThreadPoolExecutor$ Worker < class > < / class >

    < line > 615 < / line >

    < / framework >

    < frame >

    java.lang.Thread < class > < / class >

    < line > 744 < / line >

    < / framework >

    < / exception >

    < / recording >

    account <>

    < date > 2014-03-16T 20: 49:17 < / date >

    oracle.dbtools.migration.workbench.core.MigrationLogResourceBundle < recorder > < / recorder >

    WARNING < level > < / level >

    oracle.dbtools.migration.workbench.core.ui.FullMigrateTask < class > < / class >

    <>error message: ORA-06550: line 1, column 14:

    PLS-00201: identifier ' SS2K5ALLPLATFORM. STAGECAPTURE' must be declared

    ORA-06550: line 1, column 7:

    PL/SQL: Statement ignored

    : FAILED: Database Migration: FAILURE < / message >

    oracle.dbtools.migration.workbench.core.logging.LogInfo@1e2c9b99 < param > < / param >

    < / recording >

    I try with model db (DB empty, just a single table), but the error is same. However, if I try to copy the acronym tabele from SQL Server to Oracle it works fine...

    I guess it's something with the configuration, but beacause I am new in Oracle still have no idea...

    Any help would be much appreciated

    I thank in advance

    Stefan

    Hello Stefan,

    did you create the repository Migration of your database to Oracle (Tools-> Migration-> repository management)?

    The SS2K5ALLPLATFORM package is usually created when you add the migration of the Oracle database repository and it contains the function StageCapture.

    So please make sure that you have created a repository of migration in an Oracle database and associate it with the first step of your migration.

    -Klaus

  • Problems with Oracle sql developer

    Hello

    I have problems with my Oracle SQL developer 3.0.04 Version. It makes windows unstable once the query tries to display too many rows of data (for example, 300 k). Is there a way to solve this problem in addition to increasing the amount of physical memory? I currently have only 1 GB of RAM on this machine. Thank you.

    Hello

    Upgrading hardware can be a very satisfying experience, especially as it is almost always little expensive compared to the value of your time. Virtual memory / paging on the Windows and PC hardware is a huge disappointment, so more memory on Windows is a cure-all. With more and more common 64-bit operating systems, laptop computers and the PC is currently available with 8G of memory.

    That said, I think few users have a business case for the visualization of the hundreds of thousands of lines via a graphical user interface.

    Getting back to what concerns the management of memory in java, I want to put in a plug for the garbage and first new Garbage Collector. It will be the production in JDK 1.7, but can be found in the JDK 1.6 u14 & high in experimental option. The most recent revision update, the better it is. Just add something like this in your sqldeveloper.conf file:

    AddVMOption - XX: + UnlockExperimentalVMOptions
    AddVMOption - XX: + UseG1GC
    AddVMOption - XX: + G1YoungGenSize = 25 m
    AddVMOption - XX: + G1ParallelRSetUpdatingEnabled
    AddVMOption - XX: + G1ParallelRSetScanningEnabled

    It does a much better job of actually release unused memory in the context of the o/s.
    To learn more on this subject: http://www.oracle.com/technetwork/java/javase/tech/g1-intro-jsp-135488.html

    Gary Graham
    SQL DeveloperTeam

  • Problems with downloading the reports BI to Excel in Office 2007

    Hello
    I created reports using the plugin BI Publisher for Word 2007 and deployed through the Apex. Users with Office 2003 is installed get download the file without any compatibility issues. These users on Office 2007 get a warning as follows:

    'The file you are trying to open.' filename.xls, is in a different format than specified by the file extension. Check that the file is not corrupted and precedes from a trusted source before you open the file. Do you want to open it now? "

    The file will open and save, it's all just annoying to get this message every time. There are no problems when downloading the report to other formats.

    It is a known problem... It is a "Fix" of Microsoft, to ensure that people know that the file is NOT a style true Blue XLS file... My office just to go through it and it is adjustable, but involves a registry setting that they do NOT HAVE want to impliment...

    Please see the attached url:

    http://Stephen.paytonplace.us/archives/74

    Thank you

    Tony Miller
    Webster, TX

  • Reference Dell EQL PS4100xv problem with MS SQL replication

    Hello

    I have a Dell PowerEdge server R420 connected to an EQL. Is installed ESXi 5.1 U1 (free version). It is only a data store.

    VM is running Windows 2008 R2 STD with MS SQL 2008 R2 STD. The change in size of database per day is around 2 to 3 MB of base on my daily full backups via the MS SQL backup.

    However, when I throw a replication session between my EQL PROD and DR EQL which size of delta is ranging from 1 GB to 50 GB every time that I run a replication? Interval is about 5 to 10 minutes. I tried 20 minutes also the size to replicate is erratic.

    Why is so huge its more than 1000 MB per replication.

    Hope someone can help me with that.

    Thank you

    Paul

    Re: Storage Direct.  Yes, if you configure these volumes SQL replication, only the changed data will be included.  Only VM will see to all the files in the data store.   However, you still want to replicate your VMFS, but not as often as SQL datastore.

    Re: optimize.  Article I included has the registry setting you need.  This works for all storage formatted to NTFS.

    In addition, when you format the SQL data / log volumes, has the NTFS 64 K cluster size.   The default value is usually 4 or 8 K.  This will align all the writings and readings on the 64K of distribution of the EQL table size.   This improves performance of I/o.

  • ODI 12 - problem with LKM SQL for Oracle

    Hi again,

    Three days ago, that I asked about the problem with the data types of data warehouses in models that were missing. After you apply the ideas suggested by Rita (thank you very much ) I got from their work.

    But after that, we came across a new problem. When you run a mapping (Oracle for Oracle databases), it failed on the second stage - ' "work table create. "When we checked the generated code was something like this: '(" CREATE TABLE < work_table_name >). None of the names of columns or data types have been described in parentheses and as expected, the ODI execution error was "invalid identifier". It seems that API odiRef.getColList(params)%> does not work. I tried loading using LKM Oracle Oracle (DB LINK) but once again the columns are missing in the generated script.

    I have to mention the master and work repositories are different databases from Oracle and ODI Agent is not installed because of some problems.

    We are still beginners of ODI and would appreciate any help from more experienced guy (or other beginners).

    Thank you in advance.

    Just by chance, we found the soluton today!

    The reason of missing generated code was that the description of the types of data was not entirely cofigured.

    We found that the fields "create table syntax" and "'syntax of data accessible in writing' in each type of data in the topology definition were empty." After filling them, the generation of the script is running properly.

    Before that we had problems with missing data types in models and we realized the reverse engineering of the types of data, but obviously it is insufficient.

    Thanks to all those who participated in the discussion and tried to help us!

  • Do not understand the problem with My SQL...

    Greetings! Having a bit of a weird problem here...

    We update a Web site that uses forms and a database, and we did this once a year for the last 3 years. The man who worked on this subject before me created the elaborate together thing and then it died while he has put us in an awkward position... In any case... We have this form of quotation, and when the people, fill it out and click on submit, the information is sent to us and we fill then his quote based on the information the customer provides and then send us the quotation to the email they provided in the form. All this is done to a "base". OK so now when I fill out the quote form myself as a test and clicking on send, it says this...

    Warning : mysql_connect() [Function.mysql - connect]: Unknown MySQL server host 'duser1.db.7927716.hostedresource.com' (0) by /home/content/76/12767976/HTML/backend/configHR.php online 7
    can't do




    So by the looks of it, something is wrong in MySQL, am I right? It's something that I know much, but something is not communicate it would seem. He has never done this before.


    In case you wanted to know what it says in 'configHR.php, it contains these lines of code... ".


    <? PHP

    $host = "duser1.db.7927716.hostedresource.com";

    $username = "duser1";

    $pass = "Dosaur1";

    $database = "duser1";

    mysql_connect ($Host, $username, $Pass) or die ("cannot do '");

    @mysql_select_db ($Database);

    ? >

    I changed the names a little bit, so I don't understand our account...

    Now, it is important to point out that it recently had to change the user name ftp and password with GoDaddy to make changes to this website via Dreamweaver this year. Don't ask me why, they just made to us, and once we reconnect to the site with the new user name and password, this problem started occurring.

    So, what do you think?

    Thank you very much.

    Seems to me that there is a problem with your connection to the MySql database.  If the former web developer used old fashioned MySql connections and your server has been recently upgraded to PHP 5.5, which could explain the gap because the MySql connections are no longer supported in PHP 5.5 +.  To confirm this yourself, create a new page test.php with the following code and download on your remote server.  Then view the results in your browser

    phpinfo();
    ?>

    Nancy O.

  • Problem with ATG OOTB reports using OBIEE 11 g

    Hello
    R. j. Nunes

    For OBIEE within the ATG OOTB reports, I am getting error with all analyses that have a view with queries below union lattice. Analysis such as product sales Top, Top product returns, key indicators traffic etc.

    Error during the generation of advertising. Error getting cursor in GenerateHead

    Error details

    Error codes: OAMP2OPY:E22KEPYE

    DXE compiler error. Nested aggregate expression is not allowed in the aggregate query. Source name: c465ddfed81c35fcc_X_leaf_1. «"XML: < sawxd:expr xmlns:sawxd="com.siebel.analytics.web/expressiondxe/v1.1 "xmlns: xsi ="http://www.w3.org/2001/XMLSchema-instance"xsi: type ="sawxd:aggregate1"op = 'first' > < sawxd:expr xmlns:sawq="com.siebel.analytics.web/querydxe/v1.1 "xsi: type ="sawq:field"pos ="12"/ > < / sawxd:expr > »»

    I tried to run the workaround mentioned in https://support.Oracle.com/epmos/faces/DocumentDisplay?_afrLoop=450299094214827 & ID = 1467110.1

    but I still get the error.

    Anyone else facing a similar issue?

    ATG Version: 10.2

    OBIEE Version: 11.1.1.6.0

    Thanks, Saud

    Hi Saud

    You need to install

    11.1.1.6.2 BP1
    

    That should solve any problems you encounter.

    It is in fact support for ATG 10 version.

    ++++

    Thank you

    Gareth

    Please indicate any update as "Good response" or "Useful answer" If this update help and answers your question, so that others can identify the correct/good update between the many updates.

  • Problem with PL/SQL variables...

    Hi, I am fairly new to this, so apologies if this is a simple question.

    I have a text field on my page (ENTITY_ACC_NO), and I'm putting a pl/sql block on it to fill with a conditional piece of treatment based on the value of another field (ENTITY_SELECT). (Its actually a drop-down list)


    So on the source of the article, I updated the source type the body of the pl/sql function with the following code piece...

    IF: ENTITY_SELECT = '%' THEN

    : ENTITY_ACC_NO: = ";

    ON THE OTHER

    Select account_no in: entity_acc_no of the entity where entity_id =: entity_select;

    END IF;

    The problem is that it does nothing... Firstly, I correctly use variables? I read somewhere that you should use the function of V, but it also seems like you use this for stored procedures, rather than a simple pl/sql.

    Either way, im actually trying to work around the error as the drop-down list has '%' in it for another database query text, and I use it here through its primary key to retrieve other information about this...

    Thank you very much

    Richard

    Source of the element is used when rendering a page - looks like you can expect as things change when a selection list option is specified.

    Discover the use of dynamic actions

    http://www.grassroots-Oracle.com/2013/10/Apex-101-dynamic-actions.html

    The other thing that I can see is the page elements, you specify is not a page number of prefix, which is worth questioning - you specify the name and why you use the conventional notation P1_ITEM_NAME?

  • Problem with PL/Sql to insert Images in the table

    Hi, im using SQL Developer Version 3.2.20.09,

    I want to create a table with a column of type BLOB for the insertion of image files. So I created the table, the directory, and the procedure I described below. And in the C:\ drive I created a new folder named image_dir that contains a file named test_image with extension .jpeg.

    Here are the steps I took:

    create the directory image_dir as 'c:\image_dir ';

    CREATE TABLE test_image

    (IDENTIFICATION NUMBER,

    Image_filename VARCHAR2 (50).

    image BLOB

    );

    CREATE OR REPLACE PROCEDURE insert_image_file (p_id NUMBER, p_image_name IN VARCHAR2)

    IS

    src_file BFILE.

    dst_file BLOB;

    lgh_file directory.

    BEGIN

    src_file: = BFILENAME ("image_dir", p_image_name);

    INSERT INTO test_image

    (ID, image_filename, image

    )

    VALUES (p_id, p_image_name, EMPTY_BLOB)

    )

    RETURN to image

    IN dst_file;

    CHOOSE the image

    IN dst_file

    OF test_image

    WHERE ID = p_id AND image_filename = p_image_name

    UPDATE;

    DBMS_LOB. FileOpen (src_file, DBMS_LOB.file_readonly);

    lgh_file: = DBMS_LOB.getlength (src_file);

    DBMS_LOB. LoadFromFile (dst_file, src_file, lgh_file);

    UPDATE test_image

    SET image = dst_file

    WHERE ID = p_id AND image_filename = p_image_name;

    DBMS_LOB. FileClose (src_file);

    END insert_image_file;

    But I still have this error when I run the command EXECUTE insert_image_file (1, "test_image.jpg"); Please what could be the reason for this and a better solution?

    Error from the 1 in the command line:

    RUN insert_image_file (1, "test_image.jpg")

    Error report:

    ORA-22285: non-existent directory or file for FILEOPEN operation

    ORA-06512: at "SYS." DBMS_LOB", line 744

    ORA-06512: at "ANSUWEB. INSERT_IMAGE_FILE', line 20

    ORA-06512: at line 1

    1. 00000 - 'non-existent directory or file %s operation '.

    * Cause: Attempted access to a directory that does not exist, or attempted

    to access a file in a directory that does not exist.

    * Action: To ensure that an appropriate system specified

    the directory exists in the data dictionary, or

    Make sure that the name is correct.

    A guess: c:\image_dir is not on the server where Oracle is looking for it

    Concerning

    Etbin

Maybe you are looking for