The report is being designed in Crystal Reports XI.
It uses an ODBC connection to an Oracle database using the CR Oracle ODBC driver 4.1.
I need this report to be easily distributed across 14 sites that use the same ODBC DSN, but the database at each site has a different owner and/or schema name.
I followed Business Objects instructions to modify the fully qualified name for each table in a report:
On the 'Database' menu, click 'Set Datasource Location'. The 'Set Datasource Location' dialog box appears.
In the 'Current Data Source' area, expand the list of current connections in order to view each table in the report.
For each table in the report:
i. Expand the 'Properties' list.
ii. Click 'Overridden Qualified Table Name', and then press the F2 key or double-click.
iii. Move the cursor to the end of the text and type the table name.
iv. Press Enter.
I am getting error
Crystal Reports
Failed to retrieve data from the database.
Details: ORA-00942: table or view does not exist
[Database Vendor Code: 942 ]
I either need a fix for these errors or a better way to make these Oracle reports more portable.
Related
I'm connecting to a new Oracle database with Toad.
If a create a procedure like:
create or replace procedure MyProc...
After I compile it, the name automatically is changed to
SchemaName.MyProc
This doesn't happen in other Oracle databases where I'm doing the same test.
Is that a database configuration?
Thanks!
If you open TOAD settings, you'll find it here:
Editor - Open/save
Object loading
if set to "Always include", you'll see owner name (SCOTT in my example)
if you set it to "Never include", owner name isn't visible any more
I already assign data source and get these table, but I still can not Mapping my Column name (like the picture)
How should I do it?
I'm using H2 DB.
I think you have only selected the "current schema" - which is the one you used to create your datasource/connection. You need to add/select the owning schema for the objects you wish to map.
OPTION 1 -
During Datasource Setup:
Data Sources and Drivers Window
Select the "Schemas" tab (the tool opens on the "General" tab) and choose the schema under which the object you are looking to map exists.
OPTION 2 -
After Datasource Setup
You can follow the instructions for new datasource setup if you can get back to the window where you initially set up the datasource, however, there is a shortcut. If you were able to successfully create a datasource, you should see that data source in the IntelliJ "Database Tool Window" (View > Tool Windows > Database). There is a small pill icon that you can interact with. Mine says "3 of 2195" - this is telling you that you have visibility of 3 schemas of a total 2195 available. Click the pill icon. Find the schema that owns the table you need to map and select it.
After Option 1 OR 2
You should then be able to navigate to the persistence tool, right click your project, and select "Generate Persistence Mapping", then click "By Database Schema". Once you select a datasource in the "Import Database Schema Window" you should see all the objects(tables) available for mapping.
NOTE:
I am running IntelliJ Ultimate Edition v2020.1. I am connecting and mapping objects from an enterprise Oracle 12c database (can't really share screenshots so I will try to be descriptive)
I know I was pulling my hair out so I hope someone finds this helpful!
Our Oracle database has 500+ database users ( one for each 'human' user ). We are using TOAD Version 11.5
After every logon, I have to switch to the application schema, which means choosing the schema from a very long "users" dropdown list.
Is there a way to set a default schema upon logon ?
If you just want to pre-select the schema in the Schema Browser, for example, then right-click the Schema Dropdown and choose the "Set XYZ as Default Schema" menu item. If you are referring to some other place in Toad then please be specific.
You can set an Auto Connect connection too. From the session/new connection window, scroll right and check the box for "Auto Connect" on the connection you want. When you start Toad, it will auto-connect to the entry you selected.
I'm trying to copy table from One database to another. Source and target schema are different. I m trying "Sql developer" for this using database copy utility. However, I m not able to find option to select schema name for the target.
I m attaching screenshot here for the reference.
Error Message :-
Moving Data for object XXXXXX
Error occurred inserting data for TABLE: XXXXXX. Batch 1 containing 500 rows failed.
ORA-00942: table or view does not exist
SQL Developer provides the Database Copy wizard for quickly copying data from one schema to another.
In your example HEDGEP connection is pointing to the source schema and DIWD1 is pointing to the destination schema. If you intend to copy multiple schemas using SQL Developer then you will need to define multiple source and destination connections each pointing to the respective source and target schemas and then run the wizard separately for each of those pairs.
I'm running into a problem while linking some tables and views present on a Oracle 11g database to a Access 2007 file.
I'm using the Oracle Client (SQORA32.DLL) version 11.02.00.03.
If the view/table returns a small amount of data, there's no problem. The problem happens when the view or the table returns a "large" amount of data. I've tried to increase the buffer size on the driver (default is 64000) to see if that happens. I've also removed the "Enable query timeout" option - otherwise I would get a "Query cancelled by user" or a "ODBC - Call Failed" error.
In order to link the tables/views, I've used the "native tool" (External Data -> ODBC Database -> Link to data source by creating a linked table).
I was wondering if I could retrieve the data from the tables/views using vba. Sometimes, I (you should read "I" as "the users") may need to update data on some tables (control tables).
Please let me know your thoughts.
EDIT: Our goal with this project was to migrate from SQL Server 2005 to Oracle 11gR2. After analyzing the behaviour of the Access files regarding the SQL Server, I've concluded that the results are showing like a "cursor" - if you scroll down on the result window, it will load more.
I think that this may be the issue because, AFAIK, Oracle (driver, maybe?) pulls everything from the DB and, only then, populates MS Access.
It's a long time after this so here goes the solution. MS access has a flag for the ODBC connection as "Treat Float as Numeric". This have made the trick.