CRUD Stored procedure for Oracle database - oracle

I have a oracle database and would like an easy way to generate stored procedure for crud (Create,Retrieve,Update,Delete). I've been searching the internet but couldn't find any proper tool.

Oracle SQL Developer offers this feature. Right click on your table, and choose, Generate Table API

Related

How to remove database name from the user/schema name in oracle after migration from SQL Server to Oracle?

We are migrating our database from SQL Server to Oracle using the SQL developer tool. While migration, the schema name in SQL Server is "schmdw". This schema is used in our datawarehouse or OLAP database AdvworksDW. After migration we were expecting the schema/user name in oracle will be schmdw. But it is coming as schmdw_AdvworksDW i.e. schemaname_databasename. How can we get rid of this and get the schema/user name in Oracle as schmdw only? Can anyone help me in this regard?
In Oracle, there's no supported way to rename a schema/user. The best solution for you is to create another user, SCHMDW in your case, and give it grants on all objects of the SCHMDW_ADVWORKSDW plus synonyms. Have a look at the second comment on this post, it gives a pl/sql script to automate that.

How to migrate(convert) database(or just tables) from PostgreSQL to Oracle using only Oracle tools?

Data was sent to our company with PostgreSQL, but we are prohibited to use the tools of PostgreSQL , permitted the use of only Oracle.
How to migrate data from PostgreSQL to Oracle without using a third party application(they are also prohibited)? You can only use the tools of Oracle.
I found this article https://support.oracle.com/knowledge/Oracle%20Database%20Products/2220826_1.html but we don't have Support Identifier
We have one .sql file. It weighs 8 Gigabytes.
It looks like you have so many impediments in your company. Regarding Oracle's SQL Developer Migration Workbench, unfortunately it does not support the migration of PostgreSQL databases. However, the following 3rd-party software tools are available and may assist in migration, but I am afraid you cannot use them as you said that those products are forbidden:
http://www.easyfrom.net/download/?gclid=CNPntY36vsQCFUoqjgodHnsA0w#.VRBHKGPVuRQ
http://www.sqlines.com/postgresql-to-oracle
Other options will only move the data from your Postgresql database to Oracle database, it means that you must have the DDLs of the tables before to run the import:
To move data only, you can generate a flat file of the the
PostgreSQL data and use Oracle SQL*Loader.
Another option to migrate data only is to use Oracle Database
Gateway for ODBC which requires an ODBC driver to connect to the
PostreSQL database, and copy each table over the network using
sqlplus "COPY" or "CREATE TABLE AS SELECT" commands via oracle
database link.
Also, Oracle has discussion forum for migrating non-oracle databases to Oracle.
http://www.oracle.com/technetwork/database/migration/third-party-093040.html
But, if you have only a sql file, you should look at it to see whether you have both DDLs ( create tables and indexes, etc ) and the data itself as insert statements. If so, you need to split it and treat the DDLs to convert the original data types to Oracle datatypes.

re-engineering database using oracle sql developer data modeler does not include synonyms

I am trying to re-engineer a DB schema using oracle sql developer data modeler version 3.0.04 using this as a reference:
http://www.oracle.com/webfolder/technetwork/tutorials/obe/db/sqldevdm/r40/mod1_dm_v4/mod1_dm_v4.html
The schema is huge and all the tables are in the "synonyms". Even though I choose the synonyms (regardless of the number of them) they are not visible in the final diagram. If I choose from "tables" they are displayed in the final diagram.
Does anybody know how to fix this? Should I use a different version? I have to do this process using sql developer only, but is there an easier tool?
Thanks
You can't import only the synonyms. You need to import the underlying tables that those synonyms point to.
If you have SELECT privs on the tables, you'll be able to import them to your relational model in Oracle SQL Developer Data Modeler.

How to download table from Oracle with little server load

I have a Oracle server which is very highly loaded. I want to Select big table with several millions rows of data and download the data using SQL Developer. How I can do this with little performance impact of the production database?
use oracle's export tool for most efficient dump of data from a table.
example
exp user/password tables=mytable query="optional where clause here"
Note you have to have oracle client installed to use it.

Insert or Update Data in Google Spreadsheet from Oracle Database

I would like to know how I can insert or update data in a Google Spreadsheet from an Oracle Database please?
Apps Script residing in a spreadsheet container or somewhere else can fetch data from oracle and update your spreadsheet but I don't think there is any simple way to update spreadsheet from Oracle side. For programming, Oracle uses PLSQL but I have not come to any solution yet to use Spreadsheet API with PLSQL.
It would be better to write Apps Script code and which will run by a time driven trigger and look for changes in Oracle table and update the same in spreadsheet.
Here is the reference link to use JDBC Service in Apps Script.

Resources