Translating PL/SQL Into SQL 2000 Native Language?

Sep 14, 2007

I would need to translate the Oracle PL/SQL procedure to SQL Server 2000 SP4.

This is a package (body) that needs to be translated into a form that SQL server 2000 can unserstand it.

AS
FUNCTION object_name_fix (sobjectstring IN VARCHAR2)
RETURN VARCHAR2
AS

[Code].....

View 1 Replies


ADVERTISEMENT

Translating Query From SQL Server To Oracle Syntax

Sep 10, 2009

Translate following SQL query from SQL Server syntax to Oracle syntax.

SELECT ID,
[LMT(MTR)] = MAX(case when TYPE = 'LMT' then VALUE end),
[AAD(KGM)] = MAX(case when TYPE = 'AAD' then VALUE end),
[VOL(MTQ)] = MAX(case when TYPE = 'VOL' then VALUE end)
FROM yourtable
GROUP BY ID

View 2 Replies View Related

SQL & PL/SQL :: Translating Update Query In Access To Oracle

Apr 13, 2011

This is my working query in ms access...

UPDATE Caxnode AS A INNER JOIN Caxnode AS B ON A.node_alias = B.node_alias SET A.partition_Type = 'LDOM', A.node_mode = 'LOGICAL', A.host_id = b.host_id, A.num_of_proc = b.num_of_proc WHERE (((A.node_mode)='virtual' Or (A.node_mode)='regular') AND ((B.partition_Type)='LDOM'));

This doesn't work in oracle, I Googled and read that update doesn't work with inner join in oracle.

View 2 Replies View Related

PL/SQL :: Native Dynamic Sql

Jan 8, 2013

find the below scripts .

drop table test_arp;

create table test_arp
(
first_name varchar2(1000),
last_name varchar2(1000)
);

[Code]....

when i select the above table ,i will be getting the result as shown

first_name , last_name
CONTROL    PANEL
ORACLE       SEA
                 WILLIAMS
RAHUL        KUMAR

I need  to make a table which will be having the following data and structure

col1            col2          col3
CONTROL    ORACLE    RAHUL

.i.e , depending on the number of not null values in the first column (first_name), i will be creating a table dynamically ,which is going to have as many columns as the number of values and the naming convention is col1,col2,col...........

I designed the below procedure to CREATE OR REPLACE PROCEDURE ARP
AS
C NUMBER:=1;

BEGIN
FOR I IN (SELECT FIRST_NAME FROM TEST_ARP WHERE FIRST_NAME IS NOT NULL)
LOOP
IF C=1 THEN

[Code]...

But when i execute this code , i get the below error

ORA-00984: column not allowed here
ORA-06512: at "ARP", line 17
ORA-06512: at line 1

View 9 Replies View Related

SQL & PL/SQL :: How Does DBMS_SQL Differ From Native Dynamic Code

Aug 13, 2012

Let me the difference between the DBMS_SQL and Execute immediate .

*) Which one is faster ?
*) Where to use DBMS_SQL and Execute immediate (correct usage of both)?

View 4 Replies View Related

Server Administration :: Setting Up ASM Using ASMLib On Native Linux Multipath Mapper?

Nov 8, 2010

I've been trying to setup ASM disks for two node cluster using ASMLib. It's a multipath environment

Quote:multipath -ll
mpath2 (36842b2b000528f8d0000029b4ccead44) dm-1 DELL,MD32xx
[size=280M][features=3 queue_if_no_path pg_init_retries 50][hwhandler=1 rdac][rw]
\_ round-robin 0 [prio=100][active]
\_ 1:0:0:1 sdc 8:32 [active][ready]
\_ round-robin 0 [prio=0][enabled]
\_ 1:0:1:1 sdl 8:176 [active][ghost]

[code]....

I've been following Metalink note 602952.1, 309815.1 and 605828.1

metalink note 602952.1 states Quote:Note: Keep in mind for ASMLIB disks you will need to use the /dev/dm-* disks instead of the /dev/mapper/mpath* devices since they are present in the partition table ==)> /proc/partitions and ASMLIB will look at that file during the disk discovering phase. If you do not use the disks located at /dev/dm-* then ASM will not be able to discover them. and to create ASM disks with Quote:/etc/init.d/oracleasm createdisk DISK1 /dev/dm-<disk><partition> Also further stating Quote:NOTE: When scanning, only the device names known by the kernel are scanned. With device-mapper, the kernel sees the devices as /dev/dm-XX. The /dev/mapper/XXX names are created by udev for human readability. Any configuration of ORACLEASM_SCANORDER or ORACLEASM_SCANEXCLUDE must use the dm prefix.My environment is RHEL5 and towards the end of the note it says Quote:Note: On release RH 5 the /dev/dm-N devices are not persistent, starting, these devices are no longer created by udev. So release RedHat 5 you can create the ASMLIB disks on the /dev/mpath/<partition> or /dev/mapper/<partition>

Example:

# /etc/init.d/oracleasm createdisk VOL1 /dev/mpath/sata01p1

Or

# /etc/init.d/oracleasm createdisk VOL1 /dev/mapper/mpath2p1

Therefore I created a ASM disk using /dev/mapper path and it is only visible on the node it was created. Even after scandisks on other node it is still not visible when listdisks/oracleasm-discover

I've also tried creating the asm disks with dm-12 option and the same, disk get created but not visible on the other node.

Moreover if I restart the oracleasm restart the disk disappears from the node that it was visible Quote:

[root@db2 ~]# /etc/init.d/oracleasm createdisk vol1 /dev/mapper/mpath6p1
Marking disk "vol1" as an ASM disk: [ OK ]
[root@db2 ~]# ls -l /dev/oracleasm/disks/*
brw-rw---- 1 oracle dba 253, 12 Nov 8 10:22 /dev/oracleasm/disks/VOL1
[root@db2 ~]# /etc/init.d/oracleasm scandisks
Scanning the system for Oracle ASMLib disks: [ OK ]

[code]....

But disk lable is there and could be seen from both nodes on the same partition Quote:

head /dev/mapper/mpath6p1
VOL1ORCLDISKVOL1

My suspicion is on multipath configuration. I've tried both (not at the same time) combinations given below.

Quote:ORACLEASM_SCANORDER="dm"
ORACLEASM_SCANEXCLUDE="mpath mapper sd sda sdb"

and

Quote:ORACLEASM_SCANORDER="mapper"
ORACLEASM_SCANEXCLUDE="mpath dm sd sda sdb"

But still the problem is there, (disks disappears when asm is restarted and never visible on the "other" node).

View 8 Replies View Related

Access 2000 With Oracle 9i

Jan 23, 2008

I have linked all my tables in access 2000 to my oracle 9I database, created an odbc connection and I can open smaller tables, however when I try to open tables that are accessing more data from other tables, i get the error "ODBC -- call failed, [Microsoft][ODBC Driver Manager] Function sequence error (#0)" Am I using the wrong ODBC Driver? I installed the Oracle 10g SQL*Plus that should have included the correct driver for this setup.

The strange thing is that I do not think it is a driver issue because I can access the smaller tables in the set.

View 1 Replies View Related

Buffer Overflow Limit Of 2000 Bytes

Jul 14, 2011

I got a below error while running a procedure!

ORA-20000: ORU-10027: buffer overflow, limit of 2000 bytes

at that time i am using below parameters in that script:

set serveroutput on size 1000000

DBMS_OUTPUT.ENABLE(1000000);

But still getting same error.. how can i resolve this issue..

View 7 Replies View Related

Windows :: Installing Oracle 10g Developer 2000 At Win 7 64 Bit

Jan 10, 2012

tips to install the ORACLE 10g,developer 2000 in Windows 7 64 bit.

View 3 Replies View Related

Oracle 10g With Developer 2000 - Report Path?

Feb 6, 2011

I am working on oracle 10g with developer 2000 . I have a problem while running reports. when i run a report it goes to a particular path in which my database are not there and hence gives a error 'cannot find server'. everytime i have to physically change the path of the database to run the report.

THE PATH WHERE MY APPLICATION AND THE IP ADDRESS OF WINDOWS SYSTEM IS THIS

[URL]...

WHERE AS THE REPORT TAKES ME TO THIS PATH

[URL]...

I had a look at the reports conf file , but couldnt find the path of the database which the report shows for me to change it. It looks like some where the report path has been hardcoded but i am not able to locate it.

There might be some link missing while installing the application and the database.

View 1 Replies View Related

Forms :: Using Developer 2000 Application With Oracle 9i DB

Jan 18, 2010

I am using Developer 2000 Application with Oracle 9i DB(32-bit on Windows) at backend. Now I install a new server with 10g(64-bit on Linux) and load all the data into it. Some of the forms and reports are hanging while it runs against 9i well.

View 4 Replies View Related

PL/SQL :: Commit After 2000 Records In Update Statement But Not Using Loop

Mar 12, 2013

My oracle version is oracle 9i

I need to commit after every 2000 records.Currently am using the below statement without using the loop.how to do this?

do i need to use rownum?

BEGIN

UPDATE
(SELECT A.SKU,M.TO_SKU,A.TO_STORE FROM
RT_TEMP_IN_CARTON A,
CD_SKU_CONV M
WHERE

[Code].....

View 8 Replies View Related

Server Utilities :: Export From Oracle 9.2.0.8 Windows 2000 Prof?

Dec 20, 2010

I am doing export from Oracle 9.2.0.8 windows 2000 prof.

Exporting command

exp <>/<>@<> file=<> log=<> owner=<>

and get error in export log

. exporting synonyms
. exporting views
. exporting stored procedures
EXP-00056: ORACLE error 1410 encountered
ORA-01410: invalid ROWID
EXP-00000: Export terminated unsuccessfully

View 3 Replies View Related

JDeveloper, Java & XML :: Native Java In Oracle Versus PL/SQL?

Aug 26, 2011

we can you java code natively with Oracle. But I didn't get how to decide when to use native java in oracle and when to use pl/sql.

View 5 Replies View Related

Forms :: Possible To Install And Execute Developer 2000 In A Laptop Using Windows 7 64 Bits?

Jul 5, 2011

Is it possible to install and execute Developer 2000 in a laptop using windows 7 64 bits?

View 1 Replies View Related

Server Administration :: Monitoring Script Required For Oracle 9.2.0.7.0 On Windows 2000 Server

Apr 8, 2010

My manager is asking to create a SQL scrip, which will provide following information.

Our database is 9.2.0.7.0 on Windows 2000 Server

-How many records Insert / Update or Delete daily in my Oracle database?

- Check Archive log / Redo Log switching information?

-Check database growth ?

View 10 Replies View Related

Forms :: Connecting Developer 2000 Forms To Oracle 9i

Jun 24, 2010

we have these oracle developer 2000 forms (in .fmx format) in a server and the data of these forms in another server.... the server with the data is very old and is very slow...so we decided to relocate the database(oracle 9i) to a new server..... also, we move the developer 2000 forms from the old server to another server which will serve as the front end to the new data server. how to make the developer 2000 forms on the new front end server to point to the new database on the new data server. how the forms find the data, where this "connection string" is for developer 2000 forms.

View 1 Replies View Related

SQL & PL/SQL :: Restricting Other Language Characters?

Jan 24, 2011

I need to give validation for not allowing french or arabic or hindi alphabets or numbers except for only english alphanumeric letters.

I understood how to restrict special characters or spaces .

regexp_instr(i, '[^[:alnum:]]') = 0

This function allow only characters and numbers in English language and doesnt allow special characters.

I need to restrict further by not allowing any other language characters or numbers except only english alphanumeric letters.

View 37 Replies View Related

SQL & PL/SQL :: Oracle Procedure With C Language

Apr 16, 2010

My question is--> Is it possible to create procedure with embeded C code ?

View 10 Replies View Related

INSO Filter Language Support?

May 4, 2011

Is it possible to extract kannada text from a pdf document using INSO filter ?

Or Does it support only English Language ?

View 5 Replies View Related

Forms :: RTF Changes Not Shown For Specific Language

Mar 20, 2013

cookiemonster wrote on Wed, 20 March 2013 22:01Or if the user does anything to wipe the modified data - clear block, enter query etc - forms will also raise the alert.

i've uploaded a new RTF for Spanish but wen i login with the Spanish creds and run the program. Its not showing the changes i've chosen the right language and territory code.

View 1 Replies View Related

Server Administration :: Language In Oracle 10g

Jul 16, 2013

I have an Oracle DB's charset configured for Korean language and things in there are English and Korean and they are working fine. If i try to import a txt file with Chinese characters into the DB. It doesn't show correctly on query.

Is there any way I can solve this ? Since I find that there are many charset / NLS language options througout DB. I read from others that they have the following response. Any alternative beside changing the whole DB charset ?

Recreate the database with the correct character set
Convert the database to AL32UTF8. Documentation link
Change the databases National Character Set to AL32UTF8 & change your application to use NVARCHAR2()/NCHAR() datatypes instead of VARCHAR2() (documented at the same link as above)

View 5 Replies View Related

Forms :: Setup Arabic Language

Aug 8, 2010

My arabic data appears like ???????

How could I setup Arabic for forms , database?

I have 10G oracle database, forms,reports.

View 13 Replies View Related

Forms :: Multi-Language Support In 6i

Mar 12, 2012

I want to enter data in Arabic and English through Oracle Forms6i.

View 8 Replies View Related

Forms :: Setting Of Urdu Language

Feb 14, 2008

Any one tell me how can i enable urdu in oracle 9i which charter set will be use

View 2 Replies View Related

SQL & PL/SQL :: Arabic Language Appearing In A Different Format?

Mar 13, 2011

While generating reports, arabic languages are not exceuting in a normal format.

instead of سيبسيل its appearing as ÈãÇÚÒ íÊÎØÇÁ ÇáÔÇÑÚ æÇÕØÏãÉ æÊæÝÇÁ ÇáãÇÚÒ

[/bold]

1) we have done following changes at DB level.

CONN SYS/SYS@THAI AS SYSDBA;
SHUTDOWN IMMEDIATE;
STARTUP MOUNT;
ALTER SYSTEM ENABLE RESTRICTED SESSION;

[code]...

2) also installed regional Language.

View 10 Replies View Related

Forms :: How To Create LOV Via Own Mother Language

Apr 28, 2011

I am using Developer 6i and oracle 8i. when we r create LOV , it's generate by English language. and it's contains 3 button . this r find, ok , cancel button. but now i want this 3 button language show by my mother language(Bangla language). it's possible

View 1 Replies View Related

Correct SQL Language For Oracle / Toad

Jan 30, 2012

My colleague sent me a sql script to copy and execute in Toad for Data Analysts (see attached). Once I execute I get error messages on the date and a few other lines. My question is should I completely rewrite the script?

I would rather have this in a grid format anyway with the same data instead of how this script is pulling. I'm very green when it comes to this (if you didn't notice) and need some insight esp. on the date format considering the date column has 10 digits i.e. 1209105576.

Attached File(s)

Doc1__1_.doc ( 41K )
Number of downloads: 2

View 1 Replies View Related

Server Utilities :: IMP With Different Language Settings?

May 7, 2010

i have to import Data (exported with EXP) from a 8.1.6 Database running with GERMAN_GERMANY.WE8MSWIN1252 language settings. The destination database is running with GERMAN_GERMANY.AL32UTF8.

What do i have to do to import (IMP) the data correctly?

View 2 Replies View Related

SQL & PL/SQL :: Change Oracle Database Language?

Feb 4, 2011

how can i change my oracle database language

View 6 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved