Wether "CREATE TABLE"  can be used in storage procedure of Oracle?

I am migrating MS SQL 2000 Database to Oracle 8.1.7. But I encounter a trouble, the defind sentences of temporary table in storage procedure of MS SQL can't be migrate to oracle.
I have try two kinds of syntax to defind temporary table, but both of them can't pass the compiler of pl/sql. Two syntax that I have try as follows:
1.CREATE TEMP TABLE chanp1(chanpid varchar(50))
2.CREATE GLOBAL TEMPORARY TABLE chanp1(chanpid varchar(50))
Now, I want to know whether "CREATE TABLE" sentence can be used in storage procedure of Oracle.

you could use EXECUTE IMMEDIATE (Oracle8i above) or DBMS_SQL pacakge to do dynamic SQL.
since you are already on Oracle8i 8.1.7 using EXECUTE IMMEDIATE may be more easy.

Similar Messages

  • SSD in Bios and can be used as storage but not as general drive

    Hello I need some help and was pointed here by another MS Forum. The following is where I am at so far:
    Hello,
    I need some help. I have bought a SanDisk SSD and intalled it into my PC with the hope I could go from HDD to SSD but although the
    BIOS appears to show that it has picked the drive up and it can be used as Storage Space, I am not able to use it as a general or main drive or migrate so it becomes the main drive.
    I have Win 8.1 pro with media and a Asrock ConRoe 1333-D667 Motherboard.
    Any help possible?
    Geethu B replied on
    May 11, 2014
    Microsoft
    Support Engineer
    Hi Luke,
    For a better understanding of the issue, when you say “main drive”, do you want Windows 8.1 to be installed on SSD drive?
    You may create System Image of Windows 8.1 from HDD. Then remove HDD from the computer. Now Restore System Image to SSD and check if
    it works.
    To take System Image refer to the article.
    How to create a system image to refresh your
    Windows 8 PC
    To restore files to SSD, follow these steps.
    a. Open
    Recovery by pressing Windows Key + C, and typing
    Control Panel. In the search box, type recovery, and then click Recovery.
    b. Click
    Advanced recovery methods.
    c. Click
    Use a system image you created earlier to recover your computer, and then follow the steps.
    Hope this information helps. Reply to the post with updated status of the issue to assist you further.
    lukecahill replied
    on May 11, 2014
    Thank you,
    Yes I would like Windows to run from the SSD.
    The main problem I have is when I tried to clone the drive to SSD it not even registering as a drive the same if I try doing a clean
    install.
    It shows as an available drive to clone to if I set it as a storage device but then when you attempt it it says not enough room even
    though the drive has 127gb available and the drive being cloned only has bout 105gb on it.
    Geethu B replied on
    May 12, 2014
    Microsoft
    Support Engineer
    Hi Luke,
    Issues related to cloning drives are supported in TechNet Forums. I would suggest you to post the query in TechNet Forums.
    http://social.technet.microsoft.com/Forums/en-US/home?category=w8itpro
    Hope this information helps.

    Hi!
    If you have the possibility to do a clean installation, which I can see that you have, this is the best option.
    What you need to do is to remove all drives from your computer, then connect the SSD only, enter BIOS and change the SATA Compability mode to AHCI.
    Then install Windows to your drive and when completed, attach the other drives again.
    I hope this helps!
    Best regards
    Andreas Molin
    Andreas Molin | Site: www.guidestomicrosoft.com | Twitter: andreas_molin

  • BAPI_PO_CREATE1 use of potextitem in tables can i use this to populate text

    hi
    i nedd to know BAPI_PO_CREATE1 use of potextitem in tables can i use this to populate text at item level
    as my requirment is to populate the item text at item level in me23n tcode
    so how to use this pls suggest and how to acheive it?
    under me23n tab text at item level bottommost section item text i need to populate
    regards
    Nishant

    Hi,
    in fact my price values were not so small - 2.15, 1.55, 2.45, etc... but nothing less than 1.00. Nevertheless, you pointed me to the right direction - to search OSS for the answer. OSS Note 571860:
    https://websmp230.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=571860
    helps me to find out what I missed in my scenario: I didn't set ITEM-NET_PRICE at all, just via condition table. Now, when I added the following:
    item-net_price = some_price. itemx-net_price = 'X'.
    item-po_price = '2'. itemx-po_price = 'X'.   " <-- in fact, PO is created even without this line
    all of my POs are created with correct prices from the input.
    Problem solved.
    Thanks!
    Ivaylo

  • I only have 16 gb iphone but 64 gb ipad - how can i use extra storage on icloud for all my music on itunes

    My Iphone 4 has only  16 GB storage (used 13,5 GB)  but my  ipad has 64 GB  -  I have bought ekstra 15 GB  storage on icloud but I can'nt seem to use it for all my downloaded/bought music .
    how can i use the extra storage on icloud for all my music on itunes ?

    Welcome to the Apple Community.
    You can't use iCloud storage for your music, take a look at these alternatives.
    iTunes Match
    iTunes in the Cloud

  • Can I use iCloud storage to upgrade my 4s to ios6?

    Can I use iCloud storage to upgrade my 4s to ios6?

    Click here and see the bottom of the page.
    (114313)

  • Can i use another storage flash for my apple air mackbook(change from current 128Gb to 256GB without any issue)

    Can i use another storage flash for my apple air mackbook(change from current 128Gb to 256GB without any issue)

    There are some upgrade options available from do it yourself sites.
    See the MBair SSD upgrades on mid way down this page:
    http://eshop.macsales.com/shop/SSD/OWC/

  • Which PO and PR table can be used to get the WBS element field.

    Which PO and PR table can be used to get the WBS element field. Thanks.

    HI,
    In the PO the concerned field for WBS element shall be tracked in the Item details and the account assignment tab in PO.
    It shall be checked from EKKO table with PS_POSI feld.
    The same shall also be tracked in PR from EBAN table .please refer the account assignment tab in the PR item details.
    Hope this helps.
    Regards,
    Prasanna
    Award pls if helpful.

  • Can sorting facilty in internal tables can be used on char fields?

    Can sorting facilty in internal tables can be used on char fields?

    there is no restriction to sort by any TYPE. u ve the freedom to sort on any TYPE of fields.
    sort itab by ascending / descending F1 F2 F2.
    abap doubts, i request you to try and practise your doubts befor posting here in forums. I can understand you are a buddy.Please remember, PRACTISE MAKES MAN PERFECT. Try to master on own and approch forum in worst case.
    Also award points to all helpful answers.
    All the Best
    Thanks & Best Regards
    Kiran

  • Can we use rownum in procedures?

    Hi,
    Can we use rownum in procedures"
    Thanks and regards
    Gowtham Sen.

    here is some examples that might be of help.
    SQL> set serveroutput on;
    SQL> create or replace procedure get_employee(p_empno number) as
      2    cursor c1(pEmpNo number) is
      3     select e.rn, e.empno, e.ename
      4       from (select rownum rn, empno, ename
      5               from emp
      6             order by empno) e
      7      where e.empno = pEmpNo;
      8  begin
      9    for c1_rec in c1(p_empno) loop
    10      dbms_output.put_line('The rownum is '||to_char(c1_rec.rn));
    11      dbms_output.put_line('The employee name is '||c1_rec.ename);
    12    end loop;
    13  end;
    14  /
    Procedure created.
    SQL> execute get_employee(7788);
    The rownum is 8
    The employee name is SCOTT
    PL/SQL procedure successfully completed.
    SQL> execute get_employee(7654);
    The rownum is 5
    The employee name is MARTIN
    PL/SQL procedure successfully completed.
    SQL>

  • Can we use DB REPLAY feature in oracle 10.2.0.3 as I got in few documents that this feature is available in 10..2.0.4 onwards

    can we use DB REPLAY feature in oracle 10.2.0.3 as I got in few documents that this feature is available in 10..2.0.4 onwards

    The subtitle of this forum is: Do Not Post Product-Related Questions Here
    Mod: locking

  • Can i use App schema from another Oracle database.

    Hi everyone,
    can i use application schema from another Oracle database and how can we do this. the reason is that current database where apex is installed is get very slow because of the size of database and application usage.
    Regards,
    Kashif.

    user10485983 wrote:
    Please update your forum profile with a real handle instead of "user10485983".
    can i use application schema from another Oracle database and how can we do this. the reason is that current database where apex is installed is get very slow because of the size of database and application usage.
    You can (using database links), but this will generally result in even poorer performance (unless by "another Oracle database" you mean using RAC?)
    It sounds more like you either need to upgrade your systems, or refactor your applications to have a smaller performance footprint.

  • Can i use case in query in oracle form 6i

    sir can i use case in query in oracle form 6i
    such as
    select empno, case when deptno=10 then dptno end from emp;
    please gice me

    Hello,
    Does this code compile ?
    If not, I'm afraid that the PL/SQL engine of Forms6i does not recognize this syntax.
    Francois

  • Can't use ";" in sql clause with Oracle 8.X

    Can't use ";" in sql clause with Oracle 8.X
    I can't use ";" at the ending of sql clause in VB program. First this program can use with Oracle 7.3.4 database. But now i need to upgrade DB to Oracle 8.1.7 ,program can't operate. It show error Runtime 40002
    and 37000:ODBC driver for oracle/invalid charactor
    Thankyou

    I've seen a lot of discussion about semicolons in SQL
    sent from 3rd party applications. A web search should
    bring up the discussions.
    Also you might get more response if you ask this question
    somewhere else. This is not a VB forum, so you may
    not reach relevant people.
    -- CJ

  • How to use a stored procedure in oracle reports

    How to use a stored procedure in oracle reports

    Dear,
    In report triggers you can write your procedure/functions or call it like
    function AfterPForm return boolean is
    begin
    myprocedure(:mydate);
    return (TRUE);
    end;
    Thanks
    Jamil

  • Can't create table that grows using the button object

    Im a beginner, and this seems like a simple issue. Appreciate your help in advance.  When I try to do this, the button fails to add a row.
    So, I printed out the Help section entitled, "create a table that grows using the button object" and started from scratch with a simple table as the only object on the form- and followed the instructions to the letter.
    When I go to preview and click the button, a row is not added.
    Can you suggest something?

    Try this:
    Select body row of table from hierarchy palette that you want to repeat then on he object tab of the properties tab select binding tab. You need to click on "Repeat Row for Each Data Item"
    I hope this helps
    Murat
    www.muratkuru.com.tr

Maybe you are looking for

  • Is it possible to upgrade a Powerbook's video card?

    I presently have a 1.33GHz Powerbook G4 with an ATI Mobility Radeon 9600 / 64MB VRAM. Is there any way to upgrade my video card? I just bought Aperture, and after two days of testing, the performance would allow one to play with Aperture, but its jus

  • Data recovery from serially installed hard drives

    Like many other users on these boards, by X205 is refusing to boot. My question: How can I recover the data on my hard drives, since there are two of them? I ran a search to find all of the files I wanted (*.jpg in this case), and the search came bac

  • Connecting to an ejb from another appserver

    Hello, I need to connect to an EJB running on a company's REMOTE Weblogic appserver. I have done so using normal class files but now I wish to use an EJB to do so. I am using Jboss but am getting errors from Jboss saying that it cannot find certain f

  • VERY URGENT:REGARDING ALV REPORT

    HI, I am making Interactive alv report in which i have to display 3 views in a single report i.e. 1.) I  have to display :- RAW MATERIAL      DAYS BOP                        DAYS Here days are the difference b/w the Material Doc. Date and Requsition

  • Hierarchy Value Selection

    Hi, I have got a cost center hierarchy and data is loaded and everything activated. When i run the report having the cost center group and press values selection next to the input box, it does not show me the heirarchy ? Please help ASAP AMC