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?

Tags: Database

Similar Questions

  • 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

  • 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

  • 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 pl/sql procedure, trying to get the value of the user during execution

    Hello

    Using oracle 11.2.0.3

    Can run sql that gets the value of the user during the fine workmanship and also via an anonymous block.

    uses of SQL & Enter_Product_Number

    anonymous block using: Enter_Product_number.

    However, get problems when trying to create a pl/sql procedure, use one of the above

    relevant below tried code part & and: buit works do not error, try bad bind variable if used: and ora-600 if try use &.

    How can we have a procedure from pl/sql that can call and receives a value of user during execution?

    Only way around what I can think of is to pass parameters to the procedure

    Thank you

    create or replace procedure ins_into_issues is

    v_nd_rec_cnt number (10);

    v_normal_rec_cnt number (10);

    Start

    Select count (*)

    in v_nd_rec_cnt

    refmast.issues I have

    where i.iss_product_num = & old_nd_product_number;

    Select count (*)

    in v_normal_rec_cnt

    refmast.issues I have

    where i.iss_product_num = & normal_product_number;

    -code below commented above works.

    end;

    Hello

    what something like this:

    create or replace procedure INS_INTO_ISSUES ( in_normal number, in_old number )  is
      v_nd_rec_cnt     number(10);
      v_normal_rec_cnt number(10);
    begin
        select count(*)
          into v_nd_rec_cnt
         from refmast.issues i
         where i.iss_product_num = in_old;
      --
        select count(*)
          into v_normal_rec_cnt
          from refmast.issues i
         where i.iss_product_num = in_normal;
    end;
    

    concerning

    Kay

  • Strange problem with this SQL

    Hello

    I'm trying to concatenate the value of SQL_TEXT in multiple lines in a single string using this SQL statement. The problem is that it works fine if I use the PIECE, but if I use SQL_TEXT I get this error ORA-30004: when you use the SYS_CONNECT_BY_PATH function, cannot have a separator in the value of the column. As you can see I tried a number of separators I know are not in SQL_TEXT but still error. And help would be great.

    I tested on 11 GR 2 11.2.0.3 but need to run it on 10.2.0.4 so I can't use LISTAGG. I'm open to other methods but I don't have the ability to place and PLSQL nto the database. It must be done in SQL.
    select 
      CURRENT_SID, 
      sys_connect_by_path(PIECE,'~') -- Works
      --sys_connect_by_path(SQL_TEXT,'') -- Does Not Work
      -- trim(max(sys_connect_by_path(SQL_TEXT,'~')) keep (dense_rank last order by CURR),'~') as FULL_SQL_TEXT -- Does Not Work
      --ltrim(max(sys_connect_by_path(PIECE,'!')) keep (dense_rank last order by CURR),'!') as FULL_SQL_TEXT -- Does Not Work
    from
      (
      select 
          S.USERNAME, S.SID as CURRENT_SID, S.SERIAL#, T.PIECE,
          T.SQL_TEXT,
          ROW_NUMBER() over (partition by S.USERNAME, S.SID, S.SERIAL# order by T.PIECE) as CURR,
          ROW_NUMBER() over (partition by S.USERNAME, S.SID, S.SERIAL# order by T.PIECE) -1 as PREV
      from 
        V$SESSION S,
        V$SQLTEXT_WITH_NEWLINES T
      where 
        S.SQL_ID is not null
        and S.SQL_ID = T.SQL_ID
        and S.SID = sys_context('USERENV', 'SID')
      order by 
        T.PIECE
      )
    group by 
      CURRENT_SID
    connect by PREV = prior CURR
    start with CURR = 1;

    Hi SY,
    Thanks for the reply that your SQL worked very well. You're right about the GROUP BY and AGGREGATIONS, I had tried so many different things, I had pasted in a version with a bit of my test which was a little strange looking.

    The key was just as you say I was looking at my current SQL contained now my ' ~ 'or'!' delimiter. Thanks for all the help!

  • problem with pl/sql in shell

    Hi, I am looking to spend the dbms_output to shell variable and display it. Everything works fine if I run the pl/sql block in Sqlplus, but some errors occurs when it is run from a shell script.


    1. If I'm running Sqlplus pl/sql block, everything works fine. It returns the correct value.

    Set serveroutput on;
    declare
    MSG NUMBER: = 0;
    cursor asm_c is
    Select total_mb, free_mb from v$ asm_diskgroup;

    Start
    for asm_r in asm_c
    loop
    If asm_r.free_mb/asm_r.total_mb < 0.2 then
    MSG: = 1;
    "exit";
    end if;
    end loop;
    DBMS_OUTPUT. Put_line (MSG);

    end;
    /

    2 but if I run the same pl/sql block inside the shell script I errors
    #! / bin/sh

    a ='sqlplus-s system/***@SPBUFOR < < ENDOFSQL

    Set serveroutput on
    Set feedback off

    declare
    MSG NUMBER: = 0;
    cursor asm_c is
    Select total_mb, free_mb from v$ asm_diskgroup;

    Start
    for asm_r in asm_c
    loop
    If asm_r.free_mb/asm_r.total_mb < 0.2 then
    MSG: = 1;
    "exit";
    end if;
    end loop;
    DBMS_OUTPUT. Put_line (MSG);

    end;
    /

    ENDOFSQL'


    ECHO $a;

    [./diskgroup_mon.sh* $ *[Oracle@dbsp0002 scripts: 0]
    Select total_mb, free_mb v; diskgroup_mon.sh ERROR in line 4: ORA-06550: line 4, column 33: PL/SQL: ORA-00942: table or view does not ORA-06550: line 4, column 3: PL/SQL: SQL statement ignored ORA-06550: line 9, column 10: PLS 00364: 'ASM_R' use the loop index variable is invalid ORA-06550: line 9, column 7: PL/SQL: statement ignored

    Could you help me?

    Try with;

    Select total_mb, free_mb v\\\$ asm_diskgroup;

    Not sure, just an idea of the link below:
    http://www.DBA-Oracle.com/t_shell_script_check_alert_log.htm
    where the gift is showing the code in action.

    Concerning
    Girish Sharma

  • Problem with a Boolean variable

    Greetings;

    I am writing a game in which the player and the 'enemies' fall off the screen when they "die". The problem is that I also want to limit their movement within the screen whenever they were not killed. At the beginning I thought I'd go in the class that I wrote to manipulate the reader fall off the screen when it is hit by an enemy and create a Boolean variable to let Flash know let him fall off the screen when killed, but remain limited to screen up to this point. The problem is that now the player stays on the screen, even when I want to get him (i.e. after he is hit).

    The class to manage the player dying, I wrote is lower, and the Boolean variable is called "playerBeenHit". Because the player gets only an acceleration there when hit, I tried to use the variable "ay" to control the behavior, but with the same results. In troubleshooting, I tried to trace (playerBeenHit) on each image and noticed that it would go to 'true' and then set to 'false' for three of the four readings, even though the player has been affected. I'm not sure what I am doing wrong here.

    Thank you

    Jeremy

    package jab.enemy

    {

    import flash.display.MovieClip;

    import flash.events.Event;

    import flash.geom.ColorTransform;

    public class DieLikeAPlayer

    {

    private var _clip1:MovieClip; the 'player '.

    private var _clip2:MovieClip; the 'enemy' that kills the 'player' to the contact.

    private var ay = 0; vertical to fall off the screen acceleration.

    private var vx = 0; Initial horizontal speed, "projection" of the impact.

    private var vy = 0; Initial vertical speed, "projection" of the impact.

    private var playerBeenHit:Boolean = false;

    public void DieLikeAPlayer (clip1:MovieClip, clip2:MovieClip): void

    {

    _clip1 = clip1;

    _clip2 = clip2;

    _clip1.stage.addEventListener (Event.ENTER_FRAME, onEnterFrame)

    function onEnterFrame(event:Event):void

    {

    If (_clip1.hitTestObject (_clip2)) / / what happens when the player gets killed.

    {

    playerBeenHit = true;

    AY = 3;

    _clip1. ScaleY = - Math.abs (_clip1.scaleY);

    _clip1.Alpha = 0.4;

    _clip1.gotoAndStop (2);

    VX = - 0.2;

    Vy = 2;

    _clip1.y += 5;

    _clip1.rotation = - 45

    }

    Add y acceleration and speed (knockback) x be struck.

    _clip1.x += vx;

    _clip1.y += vy;

    Vy += ay;

    if(playerBeenHit == false) //constrains the player to move beyond the bottom of the screen.

    {

    If (_clip1.y > 620)

    {_clip1.y = 620 ;}

    }

    If (_clip1.y > 100000) / / bring back the player "for life" after falling 100 000 pixels.

    {

    AY = vx = vy = 0;

    _clip1.Alpha = 1;

    _clip1. ScaleY = Math.abs (_clip1.scaleY);

    _clip1.rotation = 0;

    _clip1.gotoAndStop (1);

    _clip1.x = 480;

    _clip1.y = 300;

    playerBeenHit = 0;

    }

    }

    }

    }

    }

    who should not compile.  can't you see an error message on your boolean being assigned an int?  you publish for as3, correct?

  • Problem with the different variables of flight activity

    Hello world

    I have a flight activity, inside I want to get the values of calling a procedure.

    My plsql procedure takes 2 arguments and returns a name.
    ARG 1 = my process of input value (common to all branches in flight)
    ARG 2 = FlowN_1_Variable (index value of flight)

    Create the branches get on flight, depends on my value of IO process. (for example: treat the entry = 3, 3 agencies are created in flight)
    1st branch-> arg 1 = 3 (my entry process), arg 2 = 1 (FlowN_1_Variable)
    2nd branch-> arg arg 2 = 2, 1 = 3
    Branch of the 3rd-> arg arg 2 = 3, 1 = 3

    Inside of each branch that I invoke (Invoke activity) my pl/sql procedure passing 2 arguments (above) @ execution, the question here is

    all branches take the first values of the branch as arguments, as

    1st branch-> arg 1 = 3 (my entry process), arg 2 = 1 (FlowN_1_Variable)
    2nd branch-> arg arg 2 = 1, 1 = 3 but he supposed to get arg2 have 2
    Branch of the 3rd-> 1 3, 2 = 1 arg = arg he supposed to get arg2 have 3

    It comes only with actiivty Invoke, but if I print the values before or after the Invoke activity, values are correct, as I hoped (different values are coming).
    I'm passing values to flight thro' local variable within my reach.

    Please guide me.


    Thank you
    VIKI

    Define a scope in your flight. In this sope define local variables. This brand will be sure that you don't joke the variables.

    Marc

  • Problem with executing SQL in SQLDEV tool

    Select * from SYS. DOUBLE

    /

    Select * from ap_suppliers

    If I don't give it "/" Ctrl + Enter does not work to run the SQL query. If I gave "/" it works very well and it is very boring, it's how the delivered product? Y at - it no alternative workaround?

    Capture.jpegCapture2.jpeg

    You need to end your queries with a semicolon. This is the qualifier of queries and DDL statements.

    Slash is the delimitation of the PL/SQL blocks.

    Line breaks are not delimiters, the following would run fine if you do Ctrl + enter while the cursor is on the word "select".

    Select

    *

    Of

    Double where 1 = 1;

Maybe you are looking for

  • Tecra Z50 A-h-13 - fan works half of the time

    Hello I got a new Tecra Z50 A-h-13 (i5, 8 GB RAM). Although the processor is underemployed (approx. 20% of capacity), the fan works half of the time! When the fan is running the Toshiba PC Health Monitor shows approximately 44% CPU temp. and 36% syst

  • ThinkPad Yoga 15 Intel wireless AC 7265

    I searched the forums and other sources to fix my wifi problems (verification of drivers, changing the adapter setttings etc.) without success. Other devices in the same position and the same access point get positive signals (quality 75% +) and conn

  • Replace C: drive on laptop with Vista 64 Ultimate

    I have a laptop HP with two internal hard drives.  I use C: for operating system, programs, etc. and D: for data.  I replaced D: with a bigger drive, no problem.  I copied all the data from the original D: files to a portable player, then replaced th

  • How to put on professional level of Windows 7 edition?

    laptop HP pavilion dv2, windows 7 Home premium installed. * original title - I have windows 7 Home premium on my pc. I bought the cd of professional installation of windows 7. should I just put the cd in my computer, or do I have to use ms transfer p

  • BlackBerry smartphone error has occurred

    Hello! I'm trying to download twitter on my BB torch... After that it authenticates, he always says 'an error has occurred. "Please try again later ' help!