Conversion of query MS Access to Oracle
Hello
With the help of Oracle 11 g.
I need to convert query MS Access to Oracle:
UPDATE AR2000_CREDITS_DEBITS INNER JOIN (APPROVED_CREDITS_DEBITS INNER JOIN CREDIT_DEBIT_TYPE ON APPROVED_CREDITS_DEBITS. CREDIT_DEBIT_TYPE = CREDIT_DEBIT_TYPE. CREDIT_DEBIT_TYPE)
ON AR2000_CREDITS_DEBITS. CREDIT_DEBIT_ID = APPROVED_CREDITS_DEBITS. CREDIT_DEBIT_ID AND
AR2000_CREDITS_DEBITS. OBLIGATION_SUB_ACCOUNT = APPROVED_CREDITS_DEBITS. SUB_ACCOUNT)
SET
AR2000_CREDITS_DEBITS. CLASSIFICATION_CODE = 'X ',.
AR2000_CREDITS_DEBITS.comments = 'PB - all fields. "
WHERE
AR2000_CREDITS_DEBITS. CLASSIFICATION_CODE is null
AND AR2000_CREDITS_DEBITS. BASE_AMOUNT = BEFORE_TAX_AMOUNT
AND LAST_SIGNED_DATE = OBLIGATION_DATE
AND AR2000_CREDITS_DEBITS.GL_DISTRIBUTION_CODE not Like '% SMB.
Thank you
M.R.
You are not viewing the details of your tables so we do not know where the
BEFORE_TAX_AMOUNT, LAST_SIGNED_DATE, or OBLIGATION_DATE owned or what relationships are exactly.
You'll probably look at something on these lines:
Update arcd ar2000_credit_debits
Set classification_code = 'X ',.
Comments = "PB - all fields."
where classification_code is null
and gl_distribution_code not like '% SMB.
and (base_amount, last_signed_date)
in (select before_tax_amount, obligation_date
of acd approved_credit_debits
Join credit_debit_type cdt on (acd.credit_debit_type = cdt.credit_debit_type)
where arcd.credit_debit_id = acd.credit_debit_id
and arcd.obligation_sub_account = acd.sub_account
)
Although I doubt that it works because it is (there certainly not tested), and we need all the information on the tables and relationships first.
Tags: Database
Similar Questions
-
Block unauthorized access to Oracle.
Hello
I would like to know if there was a way to block certain programs to access Oracle 9i?
We use the program ERP manufacturing Visual and want to block other programs access to (mark) the database (MS Query / MS Access), apart from the roles/system priv/object priv?
Thank you
Ryan
Published by: 850956 on April 27, 2011 13:33Yes and no.
You cannot prevent a competent attacker to connect to the database of the program they would like to if you have their given username & password and if they have the connection information for the database. You can erect barriers that should keep most users not malicious to become too creative.
-If the programs you want to allow applications to three levels, you can use the TCP protocol. INVITED_NODES to limit the IP addresses are allowed to connect to the database. It would be more challenging to circumvent obstacles.
-You can create a logon trigger that looks at things like the PROGRAM area in V$ SESSION to throw an exception if incorrect client program is used. However, it is trivial to rename the SQL * more executable to match the name of the executable of the ERP to work around this restriction.
-If the Visual production happens to set other attributes in V$ SESSION (the MODULE and ACTION in particular), you can use the logon trigger as well. It's harder to move because he need someone write the code, but it certainly isn't foolproof.Justin
-
transfer of data from access to oracle through ODBC
I plan to create a data warehouse.
I transfer an access to oracle table using ODBC. structure of the access table is below.
When I opened the session table in oracle hour start and end changed to 30-dec-99, could you please help me how to display time of beginning and end of column value
Sorry, but this is the forum for data retrieval. Try to find a forum for ODBC or go on the forum of the General database.
-
Access to Oracle Press VirtualBox virtual host
Hello
I have a windows host system 8, install the Virtual Box last edition.
The guest operating system is Linux oracle that came with the selection of pre-designed developer programs Oracle's VM.
The virtual machine is set to HOST ONLY the network settings.
Now, the thing is I want to access the Oracle in the guest from my windows host computer.
the guest operating system indicates the IP 192.168.56.101. I can ping the IP address of the HOST machine, but cannot connect to the
Developer SQL to oracle in the guest to the host OS. He goes on to say that impossible to connect the network card.
Please I need help, now please do not say that to install the oracle in the window itself. In fact, I want to do the same on my macbook pro since it is my main machine.
Hello guys,.
Thanks for the responses you provided really appreciate it.
I made this connection and access between the host and the guest, and to access the oracle on the guest database.
System information:
- MacBook Pro - OS X 10.8.4
- RAM 4 GB [go to 8 GB]
- Package VM: Oracle Virtual Box
- Guest VM: Oracle VM [ http://goo.gl/dtbzO ] developer pre-designed program selection
- Network connection: host only
Steps to connect the host to host
- If you see the "ifconfig", you will see a network card named 'vboxnet0' [created after the installation of VB]
- Check the address allocated to the virtual machine [MAC]-> preferences-> network: copy the beginning or between address, which in my case has been 192.168.56.101 [start a]
- Assign the address to the vboxnet0 adepter by terminal: sudo ifconfig vboxnet0 alias 192.168.56.101 to the top
- Change the virtual machine network affecting "Host," only
- Select the vboxnet0 virtual adapter in the adapter list, apply the configurations, click ok
- Start the guest operating system and login
- Check the IP configuration it by ifconfig, you will find the map eth0 with the same IP address that you assigned to the vboxnet0 on the host machine.
- Sql Developer on the host machine fire
- Make a new connection and "Hostname" as even as the vboxnet0 IE. 192.168.56.101, fill in the other details of the connection details Oracle needed comments
- Test the connection
- Woollaaaa you are finished
-
Interface between MS Access to Oracle
Guys,
I need to have an interface between a MS Access DB for Oracle. On some events on MS Access. you will need to send information to oracle db and at the same time some events on oracle to send info to MS Access
There will be communication in both directions between ms access and oracle.
According to your experience guys do you have suggestions?
Number of things I've designed:
1 can visit his profile generate the XML file and dump it to oracle and periodically predefined folder can access this file for the registration process and insertion.
2. direct connection between MS access and Oracle
You guys have any suggestions?
RHello
Click on the link below
[http://www.orafaq.com/node/60]Kind regards
Delphine K -
Import an Access from Oracle database
Hello
I would like to know if there is a way to import an Access from Oracle database
Thanks forwardThe easy and simple way to do this is using Sql Developer
Please see the link is a guide step by step to achieve what you want
http://www.Oracle.com/technology/tech/Migration/Workbench/Viewlets/accessconnlauncher.html
http://www.Oracle.com/technology/tech/Migration/Workbench/Viewlets/msaccesslauncher.html
Concerning
-
capture the data of Internet users access to oracle application server
How to capture the details (for example, user, date & time of session id, ip address, etc) of all users (in home, vpn access, etc.) to access the oracle application server.Hello
If you use $ORACLE_HOME/webcache/newspapers you can view access logs because all traffic passes through...
concerning
-
Example to use the query string in the Oracle Access Manager policy.
Hi all
Can is there any one please tell me what is the value of the query string and Query String Variable OAM political?
If possible, please explain with an example of the sample.
Thanks in advance.
Siva NAKI.Let's say I have an application that has logout URL as http://abc.com/app.cgi?function=logout&user=LOGGED_USER.
In this case, logged in user will always be different, but you want the user to sign out when this URL is hit. In this scenario, you can use query string variables and specify the function = disconnect it.In other scenarios where you know all the query parameters and you want to protect these URLs then the query string can be used.
Thank you
Kiran Thakkar -
Output query based on date - Oracle 8i
I'm writing a very simple query for output data based on date ranges, but I continue to encounter an error.
When I make this statement:
Select * from my.table
where startdate > ' 2008-01-01'
I get this error:
[ODBC] [Ora] ORA-01861: literal does not match the format string
When I format the select statement in this way:
Select * from my.table
where startdate > #2008-01-01 #.
I get this error:
[ODBC] [Ora] ORA-00932: inconsistent data types: expected DATE got the NUMBER
Currently using CF8, and what I believe is Oracle 8i. I tried these data in many other ways of formatting, but can not make it work. I know that when I query the database using access, he has no problem returns results with the date SQL formatted as # #01 / 01 / 2008You can use the Oracle to_date() function to convert your string to a date/time object:
Select * from my.table
where startdate > to_date ('2008-01-01', ' YYYY-MM-DD "")Otherwise, because you are using an ODBC for Oracle connection, you can try using the function CreateODBCDate() in ColdFusion:
Select * from my.table
where startdate > #CreateODBCDate("2008-01-01") #.Or, as has already been suggested, use cfqueryparam with the proper CFSQLType, such as CF_SQL_TIMESTAMP instead of CF_SQL_INTEGER as you try to do.
You can not use a date value 'string' against a date/time column in a query Oracle, as he proceed to an implicit type conversion.
Phil
-
To access the Oracle Postgres using DG4ODBC and very slow psqlodbc
I've set up DG4ODBC a base of Oracle 11 g Windows 2003 32-bit to access a Windows 2008 64 bit 9.1 database Postgres, you use the psqlodbc (32-bit) driver.
I can't do it because of the queries, but they are very slow. The reason is that the place where clause of the query is deleted somewhere along the line (I've seen actual queries run by Postgres using pgAdmin server status screen) and all the rows of the table are extracted from Postgres. Naturally with tables bigger than the few lines which means do a full table in Postgres scan, so that transfer a lot of bytes through the network.
"For example, if I mark from Oracle like this: select * of" dps_user"@pg where 'id' = '2423', run the sql in Postgres is: select * from dps_user, which retrieves all the rows of the table! When I get the result of the query in Oracle, I get only the row with id 2423, so I guess that Oracle Gets the entire table and that he not filtering at its end.
In a separate 32-bit Windows XP machine I have implemented the same psqlodbc driver, and ran the same query by using Microsoft Query. In this case, the query to run in Postgres contains a where clause and, therefore, it is much faster because a unique index scan is performed in Postgres, and that a line is transferred to Microsoft Query.
Could you help me, please?
Thank you very much
CarlosHi Carlos,
Yes - he manipulated me the SR ;-)
Sometimes they have a little more time and information to study can throw up the answer.Kind regards
Mike -
Error connecting to the Access from Oracle database
Dear all,
I am trying to connect to Oracle 9i in the Access database.
but im getting error when running query below.
I did the next thing through to connect to the database.ERROR at line 1: ORA-28545: error diagnosed by Net8 when connecting to an agent NCRO: Failed to make RSLV connection ORA-02063: preceding 2 lines from MYSQL
(1) first of all I did called ODBC1 odbc driver
(2) I create the following file on the oracle C:\oracle\ora9I\hs\admin\initodbc1.ora Server
I have change the thing below in initodbc1.ora
(3) I made a few changes in sqlnet.oraHS_FDS_CONNECT_INFO =ODBC1 HS_FDS_TRACE_LEVEL = ON
(4) here's the entries in tnsnames.ora I changed the port of 1521 to 1522 cos 1521 already exists.SQLNET.AUTHENTICATION_SERVICES= NONE before it was *NTS*
(5) the code in the file listenerODBC1.TADAWI.LOC = (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = admin-amc)(PORT = 1522)) ) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = ODBC1) ) ) ODBC1.WORLD = (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.0.251) (PORT = 1522) ) (CONNECT_DATA = (SID = ODBC1) ) (HS=OK) )
(6) after that I createdODBC1 = (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = admin-amc)(PORT = 1522)) ) LISTENER = (DESCRIPTION_LIST = (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = admin-amc)(PORT = 1521)) ) (DESCRIPTION = (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC2)) ) ) SID_LIST_LISTENER = (SID_LIST = (SID_DESC = (SID_NAME = PLSExtProc) (ORACLE_HOME = C:\oracle\ora9I) (PROGRAM = extproc) ) (SID_DESC = (GLOBAL_DBNAME = orcl) (ORACLE_HOME = C:\oracle\ora9I) (SID_NAME = orcl) ) (SID_DESC = (PROGRAM = hsodbc) (ORACLE_HOME = C:\oracle\ora9I) (SID_NAME = ODBC1) ) )
(7) the listener statusSQL> CREATE DATABASE LINK MYSQL CONNECT TO XTRACK IDENTIFIED BY XTRACK USING 'ODBC1.WORLD' Database link created.
I did exactly what documents said, and it will not be through any error but atlast when I try to access access database tables it gives me the error belowLSNRCTL for 32-bit Windows: Version 9.2.0.1.0 - Production on 04-MAR-2012 21:26:16 Copyright (c) 1991, 2002, Oracle Corporation. All rights reserved. Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=admin-amc)(PORT=1521))) STATUS of the LISTENER ------------------------ Alias LISTENER Version TNSLSNR for 32-bit Windows: Version 9.2.0.1.0 - Production Start Date 04-MAR-2012 20:52:33 Uptime 0 days 0 hr. 33 min. 44 sec Trace Level off Security OFF SNMP OFF Listener Parameter File C:\oracle\ora9I\network\admin\listener.ora Listener Log File C:\oracle\ora9I\network\log\listener.log Listening Endpoints Summary... (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=admin-amc.tadawi.loc)(PORT=1521))) (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC2ipc))) (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=admin-amc.tadawi.loc)(PORT=8080))(Presentation=HTTP)(Session=RAW)) (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=admin-amc.tadawi.loc)(PORT=2100))(Presentation=FTP)(Session=RAW)) Services Summary... Service "ODBC1" has 1 instance(s). Instance "ODBC1", status UNKNOWN, has 1 handler(s) for this service... Service "PLSExtProc" has 1 instance(s). Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service... Service "orcl" has 2 instance(s). Instance "orcl", status UNKNOWN, has 1 handler(s) for this service... Instance "orcl", status READY, has 1 handler(s) for this service... Service "orclXDB" has 1 instance(s). Instance "orcl", status READY, has 1 handler(s) for this service... The command completed successfully
I use Oracle9i Enterprise Edition Release 9.2.0.1.0 any help will be appreciate.SELECT * FROM DBO_COMPANY@MYSQL * ERROR at line 1: ORA-28545: error diagnosed by Net8 when connecting to an agent NCRO: Failed to make RSLV connection ORA-02063: preceding 2 lines from MYSQL
Concerning
Houda
Published by: houda Shareef on 4 March 2012 10:25I guess that your listener.ora always has a section of SID and you did not copy paste... Then please post the entire file
Please open a command line window and do:
C:\oracle\ora9I\bin\hsodbc
After all output including the call.Published by: kgronau on March 6, 2012 18:31
When the listener above is still correct, the cause would be that you have 2 SID with the same name in your listener.ora:
SID_LIST_ODBC1 =
(SID_LIST =
(SID_DESC =
(SID_NAME = ODBC1)
(ORACLE_HOME = C:\oracle\ora9I)
(PROGRAM = hsodbc)
)
(SID_DESC =
(GLOBAL_DBNAME = ODBC1)
(ORACLE_HOME = C:\oracle\ora9I)
(SID_NAME = ODBC1)
)
)Please change to:
SID_LIST_ODBC1 =
(SID_LIST =
(SID_DESC =
(SID_NAME = ODBC1)
(ORACLE_HOME = C:\oracle\ora9I)
(PROGRAM = hsodbc)
)
)Published by: kgronau on March 6, 2012 18:34
Once you change the listener, please stop and start the listener called odbc1: odbc1 stop lsnrctl and lsnrctl start odbc1 -
DB MS Access to Oracle Migration
Hello
Please let me know the possible approaches for migration to a MS Access database to Oracle.
Kind regards
VN
Hello
SQL devleoper is the best approach.
Documentation: Migrating from a Microsoft Access database to Oracle 11 g database
Kind regards
-
To access the Oracle PLL (library) of Java forms
Hello
We must Access a library PLL (Oracle Forms) from Java code and make a request to use it. I searched the net but could not find any evidence that this can be done.
Is it possible, is it of any source you can advice?
I really appreciate all the comments.
Thank you
Emre
Direct access to procedures pll of the tools other than forms is not possible, no. If it is possible, you can convert your pll procedure in a stored procedure and call it in your pll and in java.
see you soon
-
Problem after 10g to the conversion of 11g with access ODBC application connection.
We have recently updated one of our databases Oracle 10.2.0.4 on 11.2.0.4.0. We used Data Pump export of database 10g and the new database 11g Data Pump import. Everything went well. We have several users who use an Access database with an ODBC connection to our Oracle database. We installed 11g on their PC client and install the tnsnames file to point to the new database 11g. We have a configuration read only account that everyone uses to connect to the Oracle11g database through the Access application. We have a user who gets an error, even if this computer has been installed just like everyone elses. She becomes an odbc error, that the account is locked. I had the read-only account on our database 10g locked, so everyone would be forced to use the 11g database, because we could not completely stop the 10g database. We have searched the c:\ drive and you can find 1 tnsnames file and it is directed to the new database 11g. However when we unlock the account read-only on the 10g database, access works very well. It is as if she is always directed to the 10g database, but we cannot find any link to it. This user can also connect another pc that the ODBC connection to server 11g works with the access application and it does not work with them connected. Any help would be appreciated!
Our resolution is a slight reorganization of elements of Oracle in the Environment Variable Path in system settings Desktop/Properties/Advanced to ensure that the proper path containing the precise tnsnames.ora file was represented was just what he needed.
-
Designer sql access manager oracle to initialize application on Windows 7 error
I try to use the application on a windows computer Designer 7. PeopleTools 8.50.10 and Oracle 10 g 32-bit client installed. I can connect to the database via sqlplus. When I open the application designer and try to connect, I get:
SQL Access file Manager: SQL ManagerSQL Access error. #2 stmt. Position of the error: 0 return: 8097 - Oracle initialization error
My account of windows 7 is a "standard user" account When I log in as an administrator, I can connect to designer app without any problem. Anyone know what changes I can make so that standard users can use designer app or mover of data without the need to access admin account?
Thank you!
Way the easiest way is to disable the user on windows access control.
From the windows menu start in the search box, type UAC, and move the slider to never notify.
Also, make sure that the configuration manager settings are configured correctly, this is related to the windows user profile (ConnectId, path of the Oracle Client, etc.).
Because you can connect to the developer of the Application with the administrator user, first try to export configuration manager settings while logged into Windows with an administrator account and import the same configuration manager settings while logged into Windows with a regular user account.
Maybe you are looking for
-
Does not work an extension of solitaire. Many of them say they'll be updated to Firefox is restarted. Apparently, some of them seem to work, but by clicking on the 'Préférences' button does not cause any response. I have Firefox 3.6.13. I tried to un
-
Satellite Pro L20 PSL2YE: 1 GB Ram upgrade does not show in the Bios
I just bought a 1 GB mem stick samsung 4200 s 533 mhz for my L20.It does not show in the Bios or in the main menu in Device Manager, but it shows in cpu - z and pz Assistant 2007. I am very confused, and upgrade the bios on toshibas website does not
-
How to make flag appear after some time signal of Boolean
Hello and good day to all... I'm doing a change in case of false to true after having received the signal of 3 or more than a Boolean. example of situation, the signal is sent, but the case will change true after three times of the signal is received
-
Cannot download any file, error message "program has a virus and has been deleted."
Original title: Difficulty to download repair manuals and information programs on the internet. I'm having problems when downloading of information on programs and the internet repair manuals. Windows always tells me that this program has a virus and
-
I don't have windows recovery, how do I get it?
Original title: my komputer. I don't have windows recovery, how do I get it? my computer is ACER Aspire 6920, thank you,