Latest Posts - All Tracks

New Release White Paper through Contractors Network

July 3rd, 2009 by Rebecca Bragg

Contractors Network is pleased to announce the latest free of charge release into our extensive Oracle Apps related White Paper Library of:

“A Structured Approach to SQL Query Design”

Authored By Brendan Furey

About Brendan;

Brendan is an Oracle Applications Consultant with over nineteen years Oracle experience, across a wide range of projects and industries. He has worked with many Oracle modules, including Financials, Supply Chain, and CRM, up to 11.5.10. He is technically oriented, and has expert level knowledge of most of the Oracle development tools, as well as Unix and other tools, and also has good functional knowledge.

Recent projects have included: implementation of multi-org and intercompany invoicing within an existing single-org implementation; development of complex interfaces between Oracle instances using different CRM modules, with PO, AP AR; integration design (using middleware) for a European implementation of Oracle ERP (back-office) along with Siebel (front-office) and other systems.

The Purpose of Brendan’s Paper;

The purpose of this document is to describe a structured, graphical approach to the design of SQL queries that may be a useful way of handling complexity without reverting to procedural design. It focuses on sub query structure and join orders, rather than on other areas such as grouping and aggregation, or design patterns. The author has used it to design complex queries with up to 46 table instances, and the approach is demonstrated using a real (rather simpler) example of a custom report within Oracle’s Order Management and Inventory modules (see REF-2 for Oracle’s table specifications).

If you would like request a copy please email myself on rebecca.bragg@oraclecontractors.com or register via the White Paper library and request your copy today.

Contractors Network Blogs to be featured in Oracle Scene Magazine

July 2nd, 2009 by Rebecca Bragg

The UKOUG has chosen articles/ blogs from our Website for the up and coming release of Oracle Scene Magazine.

Well Done to Andy Noble and Rory Dwyer for being selected in the up and coming issue for your Articles.

Rory Dwyer wrote Its Not What You Know Its Who You Know

http://blog.oraclecontractors.com/?p=543

Andy Noble wrote How to quickly identify a missing join

http://blog.oraclecontractors.com/?p=454

Well done guys I look forward to reading your Articles in printed form :)

 

Querying Microsoft Office Access 2007 data from an Oracle 11g Database Part 4 A

June 30th, 2009 by Matt Canning

Stage 4:  Automating Data Refreshes.

In part 1 of this blog, I demonstrated the initial configuration of the Oracle Database Gateway for ODBC (DG4ODBC).

Part 2 completed the configuration and also showed how to run some basic queries.

Part 3 showed a method of resolving issues encountered when dealing with LONG data type columns, using a combination of external tables and materialized views.

In the fourth and final part, I’ll demonstrate one method of automating the data refreshes for this solution. There are many solutions available to automate procesess, but for this example, I’ll use the database scheduler.
 
Step L: Check the objects we have created previously
——-
58) Run the query below to confirm the list of objects owned by NWIND_ACCESS, that were created in parts 1,2 and 3 of this blog:

conn nwind_access/zuggy4

select table_name from user_tables union select view_name from user_views;

The information below shows how the tables and views map to the Microsoft Office Access 2007 database tables from the northwind database.

ORCL11 Object                                            ORCL11 objects referenced                      Microsoft Office Access tables
==========                                           ======================            ====================
MV_NWIND_CUSTOMERS (materialized view)  NWIND_CUSTOMERS(external table)         Customers
MV_NWIND_ORDERS (materialized view)        NWIND_ORDERS (external table)             Orders
                                                                  V_ORDER_DETAILS(View)                       Order Details
                                                                  V_ORDER_STATUS(View)                        Order Status
                                                                  T_ORDER_DETAILS(Table)                      Order Details
                                                                  T_ORDER_STATUS(Table)                       Orders Status

Step M: Create Additional Materialized Views and re-create existing materialized views
——-

59) We created materialized views based on the Customers table and the Orders table from the northwind database. We now also need to create them for information stored within the Order Details and Orders Status tables.

As demonstrated previously, we aren’t able to base these on selects directly from the table. (If we try to create the materialized view as a “select * from v_order_details” or “select * from “Order Details”@Northwind” then you just see the error:  ORA-00942: table or view does not exist)

60) Create the text files that the external tables will be based on.

conn nwind_access/zuggy4

set head off feedback off trimspool on lines 32766 buffer 32767 pages 0 space 0 colsep ‘~’

alter session set nls_date_format=’DD-MON-YYYY HH24:MI:SS’;
spool
 C:\app\Administrator\admin\ORCL11\nwind_dump\order_details.txt
select * from
“Order Details”@Northwind;
spool off
spool
C:\app\Administrator\admin\ORCL11\nwind_dump\order_status.txt
select * from
“Orders Status”@Northwind;
spool off

Then re-set your SQLPLUS* environment:
 
set head on feedback on trimspool off lines 132 buffer 132 pages 1000 space 1 colsep ” “

Note: Throughout all of this work, ensure that the permissions of the directory which contains the output text files (i.e. the nwind_dir database directory location) is restricted according to your company’s security policies.
61) Create the new external tables nwind_order_details and nwind_order_status and re-create the existing external tables:

conn nwind_access/zuggy4

create table nwind_order_details
(
 ID                                                                       NUMBER(10),
 ORDER_ID                                                                 NUMBER(10),
 PRODUCT_ID                                                               NUMBER(10),
 QUANTITY                                                                 NUMBER(18,4),
 UNIT_PRICE                                                               NUMBER(19,4),
 DISCOUNT                                                                 FLOAT(53),
 STATUS_ID                                                                NUMBER(10),
 DATE_ALLOCATED                                                           DATE,
 PURCHASE_ORDER_ID                                                        NUMBER(10),
 INVENTORY_ID                                                             NUMBER(10)
)
organization external
(type oracle_loader
default directory nwind_dir
access parameters
(
records delimited by newline
badfile NWIND_DIR:’order_details.bad’
discardfile NWIND_DIR:’order_details.dsc’
logfile NWIND_DIR:’order_details.log’
fields terminated by ‘~’ optionally enclosed by ‘”‘ LRTRIM
missing field values are null
reject rows with all null fields
(
ID,
ORDER_ID, 
PRODUCT_ID, 
QUANTITY,    
UNIT_PRICE,             
DISCOUNT,                                          
STATUS_ID,                                                       
DATE_ALLOCATED  CHAR(20) date_format DATE mask “dd-mon-yyyy hh24:mi:ss”,                                                    
PURCHASE_ORDER_ID,                                                   
INVENTORY_ID                                                         
 )
)
location (NWIND_DIR:’order_details.txt’)
)
reject limit unlimited
/
create table nwind_order_status
(
STATUS_ID                                                                NUMBER(3),
STATUS_NAME                                                              VARCHAR2(100)
 )
organization external
(type oracle_loader
default directory nwind_dir
access parameters
(
records delimited by newline
badfile NWIND_DIR:’order_status.bad’
discardfile NWIND_DIR:’order_status.dsc’
logfile NWIND_DIR:’order_status.log’
fields terminated by ‘~’ optionally enclosed by ‘”‘ LRTRIM
missing field values are null
reject rows with all null fields
(
STATUS_ID,                                                             
STATUS_NAME                                                           
 )
)
location (NWIND_DIR:’order_status.txt’)
)
reject limit unlimited
/

Note: In the above, you’ll notice that we’ve left out the ” skip 1” clause that was included in the create table statements in earlier parts of this blog. As commands will not be echoed to the spool file, as we are using the database scheduler, we need to remove this clause, otherwise we’ll lose the first row of data. Because of this issue, we’ll also need to drop and re-create the existing Customers and Order external tables also. (We don’t need to re-create the materialized views that were based on these tables).  We also don’t need to include the ” load when ( != “off”)   ” commands in the access parameters section, as the SQL commands will not appear in the output file.

Welcome Senthilkumar Shanmugam as an Author on this Blog

June 29th, 2009 by Rebecca Bragg

Contractors Network would like to welcome Senthilkumar Shanmugam who has joined our Blog. Senthilkumar will be sharing his expertise across SOA & BPEL to name a few.

Senthil has worked on various R12 projects and has good knowledge on OA Framework, ADF , BPEL, SOA, Web Services. He is currently working on building custom applications using ADF and integrate with Oracle Application.

We are delighted and we look forward to Senthilkumar sharing his expertise and Knowledge with us through the Blog. 

Upgrade Oracle Database 11.1.0.6 to 11.1.0.7 Patch Set 6890831

June 26th, 2009 by Pat Lehane

This Blog entry is to step through the basic notes to upgrade a 11.1.0.6 database to version 11.1.07. This is for a single instance database but has the note references for RAC & ASM. (Upgrade was completed on Solaris 10)

Upgrade 11.1.0.6 => 11.1.0.7 (Patch Set: 6890831)

If upgrading from Oracle9i directly to Release 11.1.0.7, see OracleMetaLink Doc ID: 568125.1

and go to section: “Actions for the DSTv4 update in the 11.1.0.7 patchset.”

Turn off crontabs, OEM and CDC (Change Data Capture)

Shutdown all Oracle databases running from 11.1.0.6 Oracle Home including listener

Upgrade the Oracle Home software with 11.1.0.7 patchset

Upgrade init.ora requirements:

“shared_pool_size” needs to be increased to at least 448 MB

“java_pool_size” needs to be increased to at least 128 MB

“pga_aggregate_target” needs to be increased to at least 24 MB

Start up database ###

startup upgrade;

spool invalid_dbname_pre.log

select * from dba_objects where  status =’INVALID’

select count(*) from dba_objects where  status =’INVALID’

spool off

spool dbname_utlu111i.log

$ORACLE_HOME/rdbms/admin/@utlu111i.sql; –This runs a pre check on the target database before

upgrading.

spool off

Check for any errors / warnings

spool upgrade_dbname.log

$ORACLE_HOME/rdbms/admin/catupgrd.sql

spool off

Open database in read write mode:

startup;

spool spool utlrp_dbname.log

$ORACLE_HOME/rdbms/admin/utlrp.sql   — This recompiles the database objects

spool off


Diazepam Buy Hydrocodone Online Buy Propecia Buy Zyprexa Buy Online Xanax Viagra Online Online Xanax Adipex Buy Norvasc Buy Hydrocodone Cipro Zyban Buy Cheap Phentermine Ephedrine Zyprexa Buy Carisoprodol Buy Phentermine Online Glucophage Buy Viagra Online Ativan Glucophage Ativan Buy Oxycontin Lortab Buy Cipro Buy Ambien Adipex Vicodin Buy Ambien Buy Ativan Zyrtec Ambien Nexium Buy Adipex Buy Generic Viagra Buy Xanax Online Buy Norvasc Ephedrine Codeine Buy Bontril Phentermine Online Bontril Buy Ativan Nexium Buy Diflucan Norvasc Buy Lortab Buy Lortab Bupropion Buy Lexapro Acyclovir Acyclovir Diflucan Zovirax Buy Diazepam Codeine Viagra Bupropion Norvasc Buy Ephedrine Valium Online Ultram Effexor Buy Cialis Buy Adipex Hydrocodone Phentermine Online Buy Fioricet Buy Cipro Buy Levitra Online Xanax Seroquel Prozac Buy Tramadol Online Lorazepam Buy Vicodin Buy Acyclovir Zyban Buy Zocor Viagra Buy Zovirax