Report Printing in Apex 4.x / Oracle Linux - Need Help

Hi
I am new to Oracle Application Express tool. I am trying to setup an Oracle Apex environment to start a new application development. So far, I have completed the following:
1. Installed Oracle Linux 6.3
2. Installed Oracle 11g Express (64 bit version). As you know, Oracle Apex is bundled in this.
3. Completed the installation as per the documentation provided, and it works fine (I tried the following).
- Able to connect to the DB via SQL*Net from other machines in the network.
- Able to run Apex from other machines in the network.
- Created new workspace and applications (pages etc) and they work fine.
4. Downloaded the Apache FOP 1.1 binary and extracted the files under /usr (the extract created a directory fop-1.1 under /usr and all fop related files are there under this.
5. Tested the fop by running "fop -fo <input_file> <output file>" from the $ prompt. It works fine.
Now, I am stuck at setting up Report printing. Please note that, other that what is mentioned above, we have no other software installed on the server. Can someone guide me on how I can setup report printing with this software setup? Please help.
Thanks

Hi,
With APEX you have two options for configuring a print server for PDF printing. BI Publisher and Apache FOP. The Apache FOP options actually refers to a J2EE app that we ship with APEX (see /utilities/fop/fop.war in your installation folder). This .war file needs to be installed on OC4J and then your APEX instance needs to be pointed to a specific URL in your print configuration, see more details here:
http://www.oracle.com/technetwork/developer-tools/apex/application-express/configure-printing-093060.html
When using the database 11g, you'll also have to enable networking services, which is also covered in the documented I mentioned above..
Given what you outlined in your post, I'm assuming you're using the embedded gateway (built-in web server in the database). As an alternative, you might want to look at the APEX Listener, which actually has FOP built-in, so in your APEX Instance Administration you would only have to select the APEX Listener as the print options, and all the other config steps would not be needed
More information on the APEX Listener can be found here:
http://www.oracle.com/technetwork/developer-tools/apex-listener/overview/index.html
Regards,
Marc

Similar Messages

  • PDF printing in APEX not working on Linux with BI Publisher configured

    I have downloaded BI Publisher standalone version 10.1.3.3.1 and configured it with APEX 3.0.1 on Linux. Report Printing has been enabled for our tabular form in APEX but the report never displays in any format (pdf, html, word). The page is blank. Generating a pdf report gives the following error message when selecting the 'open' option: Adobe Reader could not open Zipcode_Table[1].pdf because it is either not a supported file type or the file has been damaged. The same happens if the file is saved and then opened in Adobe Reader. Please help!
    Thanks,
    Denise

    I have downloaded BI Publisher standalone version
    10.1.3.3.1 and configured it with APEX 3.0.1 on
    Linux. Report Printing has been enabled for our
    tabular form in APEX but the report never displays in
    any format (pdf, html, word). The page is blank.
    Generating a pdf report gives the following error
    message when selecting the 'open' option: Adobe
    Reader could not open Zipcode_Table[1].pdf because
    it is either not a supported file type or the file
    has been damaged. The same happens if the file is
    saved and then opened in Adobe Reader. Please
    help!
    Thanks,
    DeniseDenise,
    In APEX, first try using the default report layout (its ugly, but it will show at least if your query is producing xml data).
    Can you build a small report in APEX, with one or two columns, and build the RTF layout in Word and upload it to you app, and try that as a test..
    Next I would recommend looking at the apache logs to see if there are any errors occurring when APEX sends the xml stream to BI Publisher.
    Also, have you posted this over in the APEX support forum? The developers of APEX are there and they WILL help you find an answer, Marc the product manger helped me with my BI Publisher/APEX issues..

  • Error with FOP for Report Printing in Apex 3.2.1

    We are trying to use FOP deployed onto GlassFish Community but after setting up as described in the applicaton express guide to allow report printing; we are getting the following error
    'package oracle.xml.parser.v2' does not exist
    We are running GlassFish on Debian 5.0 (Lenny)
    Any help appericated :)

    Here is what I did to get it to work.
    1. Copy xmlparserv2.jar from my ORACLE_HOME/oc4j/lib directory to my glassfish domains/domain1/applications/fop/WEB-INF/lib directory.
    2. Added the following two lines to the glassfish domains/domain1/fop/apex_fop.jsp before the driver.run() line
    out.clear();
    out = pageContext.pushBody();The second part of solution I found on another forum page.

  • Oracle Linux Exam Help!

    Hello!
    I will kindly ask for your honest opinions as I want to study for an Oracle Linux exam and I need to get the below indicated topics covered, but unfortunately I could not find a book to cover them all (as I did for Oracle 11g).
    Please help me locate a book, two or how many are necessary to help me study for the exam and cover the following topics:
    Thank you all!
    Installing Enterprise Linux
    Install Enterprise Linux on any supported architecture.
    Create partitions, software RAID and LVM storage configurations.
    Select Packages for Installation.
      PC Hardware & Linux
    Get detailed information about all PCI & USB devices that are connected to a Linux system
    Identify, load, unload and configure kernel modules
    Tune the running kernel using the /proc/ filesystem
      Post-Install System Configuration
    Set and maintain the system clock with date, hwclock and NTP
    Install, update and remove RPM packages with the rpm & yum commands
    Configure printers with CUPS
    Create and use Kickstart files for automated, hands-off installations
      Boot Process & SysV Init
    Configure the GRUB boot loader
    Manage SysV Init scripts, including customizing files under the /etc/sysconfig/ directory to tune SysV Init scripts
    Configure and use SysV runlevels
    Shutdown & reboot Linux systems
      User/Group Administration and NFS
    Describe and apply the User Private Group scheme
    Create, delete and configure user and system accounts
    Create, delete and configure groups
    Customize the PAM configuration
    Configure and control access to su and sudo
    Configure Linux systems to use centralized authentication and user information stores for system logins
    Implement a file server to share files with NFS v3 & v4
    Configure the automounter (autofs) allowing un-privileged users to mount filesystems on-demand
      Filesystem Administration
    Work with device nodes and udev
    Partition hard drives after installation
    Create and tune filesystems
    Mount filesystem, including persistent configuration in the /etc/fstab file
    Create, manage and tune swap devices
    Configure, manage, assign and maintain quotas on filesystems
    Create, use and remove File Access Control Lists (FACLs)
      LVM & Raid
    Configure Logical Volume Manager volume groups and logical volumes
    Create and use software RAID devices
    Grow and shrink logical volumes and the filesystems on them
    Use LVM snapshots to create consistent, reliable backups
      Task Automation & Process Accounting
    Use the at & batch facilities to run one-time tasks
    Manage cron jobs for recurring tasks, both system-wide and per-user
    Configure syslog for central system logging
    View, manage and kill running processes
    Monitor system and application logs on a daily basis with logwatch
    Configure process accounting and examine the resulting logs
    Limiting and measuring resource usage (ulimit, pam, sar, vmstat, iostat)
      Client Networking
    Configure TCP/IP networking on Linux systems
    Configure static routing on a Linux system
    Aggregate multiple network links into a single interface via the bonding driver's Etherchannel and 802.3ad support
    Configure a Linux system to participate in multiple VLANs on a managed switch via 802.1q frame tagging
    Configure and maintain a DHCP server
    Using networking diagnostics tool (ping,arp,ethtool)
    Enterprise Linux Fundamentals
    What is Linux?
    Identify the origins of UNIX and how Linux is related to UNIX
    Describe the major goals of the Free Software Foundation and the GNU project
    List key elements of a Linux distribution and name several distributions
    List several standards that apply to Linux
    Describe the basic mechanisms that make UNIX so powerful
      Multi User Concepts
    Describe the differences between the administrative (root) user and normal user accounts and explain when each should be used
    Log into the system
    Switch between accounts using the 'su' command
    Use basic commands to gather information about the system
    Use system help facilities to learn about commands and their options.
      The Linux File System
    List the standard system directories and explain what type of files are contained in each
    Navigate the file system
    Explain standard POSIX file permissions including special permissions such as the SUID, SGID and Sticky bits on both files and directories
    Change permissions of files
    Explain how file ownership (user: group) relates to file permissions
    Change ownership of files
    Describe how the User Private Group (UPG) scheme works and the problem it solves
      Manipulating Files
    Be able to create, delete, copy, move and rename files and directories
    Describe the various types of files that can be stored on UNIX and Linux file systems
    Explain hard links and symbolic links, their pros & cons and when & where they can or can not be used
    Identify the type of content of any file
    View the contents of both text-based and binary files
    Search the file system for files and directories with specific properties
      Text Processing
    Search inside of files for specified information
    Perform file editing, sorting, cutting & merging text files from the command linee
      Shell Basics
    Understand the varied roles the command shell plays in everyday UNIX/Linux usage
    Pipe several commands together to perform more complex and useful processing
    Use file redirection on the command line
    Create and use shell and environment variables to configure and control the operation of the system, the command shell and programs
    Use and escape special characters when they are used on the command line
      Regular Expressions Construct regular expressions for matching text patterns
    Archiving and Compression
    Use tar & cpio to create archives and extract files from them
    Compress and decompress files using the UNIX compress, GNU gzip, bzip2 and zip formats
      Text Editing
    Use simple text editors like pico and nano
    Perform basic and intermediate text editing functions efficiently with vi & Vim
    Perform basic and intermediate text editing functions with GNU Emacs
      Command Shells
    List the history and relationships of the various popular shell implementations available on UNIX and Linux systems
    Identify and switch between the various shell implementations
    Customize the command prompt on Bourne and BASH shells
    Use command line history, command completion, aliases and command line editing
    Customize command shell operation system wide and for individual users
      Introduction to Shell Scripting
    Process arguments passed into a shell script
    Get input from the user of a shell script
    Generate formatted output from a shell script
    Perform tasks conditionally using if, case and while loops in a shell script
    Perform repeated actions over a set of values with for loops on the command line and within shell scripts
    Do math in a shell script
      Process Management and Job Control
    Describe the differences between process and threads
    Find and control running programs with ps, top, kill, and nice
    Use the jobs, fg and bg commands to view and access several tasks at once on a single shell
    Use the screen command to run several programs and disconnect from running programs on remote systems
      Messaging
    Send local messages with the write and wall commands
    Use talk and ytalk to chat with other users
    Send and read email with the mail and pine commands
      The Secure Shell
    Configure the ssh client and sshd server programs securely
    Establish secure, remote connections to other systems
    Use SSH's key-based authentication
      Managing Software
    Find and download software via FTP & HTTP with text & graphical client programs like wget, lftp, links, Konqueror and Mozilla Firefox
    Install binary programs in RPM packages
    List software already installed on the system with RPM
    Compile and install software from source releases
    Compile and install software from a source RPM (SRPM or .src.rpm) package
      Printing
    Use CUPS to connect to available local and network printers
    Use various commands to process and convert files in preparation for printing
    Send jobs to a printer
    Monitor and remove print jobs
      Mounting FileSystems and Managing Removable Media
    Use the mount command
    Access NFS and SMB filesystems over the network
    Use autofs for on-demand mounting of filesystems without root privileges
      X Window System
    Start the graphical environment manually
    Select different desktop environments
    Launch graphical applications
    Use Linux as an X terminal
    Customize the graphical environment and auto-start applications at login and X startup
    Securely tunnel remote graphical applications through SSH

    Hello!
    I will kindly ask for your honest opinions as I want to study for an Oracle Linux exam and I need to get the below indicated topics covered, but unfortunately I could not find a book to cover them all (as I did for Oracle 11g).
    Please help me locate a book, two or how many are necessary to help me study for the exam and cover the following topics:
    Thank you all!
    Installing Enterprise Linux
    Install Enterprise Linux on any supported architecture.
    Create partitions, software RAID and LVM storage configurations.
    Select Packages for Installation.
      PC Hardware & Linux
    Get detailed information about all PCI & USB devices that are connected to a Linux system
    Identify, load, unload and configure kernel modules
    Tune the running kernel using the /proc/ filesystem
      Post-Install System Configuration
    Set and maintain the system clock with date, hwclock and NTP
    Install, update and remove RPM packages with the rpm & yum commands
    Configure printers with CUPS
    Create and use Kickstart files for automated, hands-off installations
      Boot Process & SysV Init
    Configure the GRUB boot loader
    Manage SysV Init scripts, including customizing files under the /etc/sysconfig/ directory to tune SysV Init scripts
    Configure and use SysV runlevels
    Shutdown & reboot Linux systems
      User/Group Administration and NFS
    Describe and apply the User Private Group scheme
    Create, delete and configure user and system accounts
    Create, delete and configure groups
    Customize the PAM configuration
    Configure and control access to su and sudo
    Configure Linux systems to use centralized authentication and user information stores for system logins
    Implement a file server to share files with NFS v3 & v4
    Configure the automounter (autofs) allowing un-privileged users to mount filesystems on-demand
      Filesystem Administration
    Work with device nodes and udev
    Partition hard drives after installation
    Create and tune filesystems
    Mount filesystem, including persistent configuration in the /etc/fstab file
    Create, manage and tune swap devices
    Configure, manage, assign and maintain quotas on filesystems
    Create, use and remove File Access Control Lists (FACLs)
      LVM & Raid
    Configure Logical Volume Manager volume groups and logical volumes
    Create and use software RAID devices
    Grow and shrink logical volumes and the filesystems on them
    Use LVM snapshots to create consistent, reliable backups
      Task Automation & Process Accounting
    Use the at & batch facilities to run one-time tasks
    Manage cron jobs for recurring tasks, both system-wide and per-user
    Configure syslog for central system logging
    View, manage and kill running processes
    Monitor system and application logs on a daily basis with logwatch
    Configure process accounting and examine the resulting logs
    Limiting and measuring resource usage (ulimit, pam, sar, vmstat, iostat)
      Client Networking
    Configure TCP/IP networking on Linux systems
    Configure static routing on a Linux system
    Aggregate multiple network links into a single interface via the bonding driver's Etherchannel and 802.3ad support
    Configure a Linux system to participate in multiple VLANs on a managed switch via 802.1q frame tagging
    Configure and maintain a DHCP server
    Using networking diagnostics tool (ping,arp,ethtool)
    Enterprise Linux Fundamentals
    What is Linux?
    Identify the origins of UNIX and how Linux is related to UNIX
    Describe the major goals of the Free Software Foundation and the GNU project
    List key elements of a Linux distribution and name several distributions
    List several standards that apply to Linux
    Describe the basic mechanisms that make UNIX so powerful
      Multi User Concepts
    Describe the differences between the administrative (root) user and normal user accounts and explain when each should be used
    Log into the system
    Switch between accounts using the 'su' command
    Use basic commands to gather information about the system
    Use system help facilities to learn about commands and their options.
      The Linux File System
    List the standard system directories and explain what type of files are contained in each
    Navigate the file system
    Explain standard POSIX file permissions including special permissions such as the SUID, SGID and Sticky bits on both files and directories
    Change permissions of files
    Explain how file ownership (user: group) relates to file permissions
    Change ownership of files
    Describe how the User Private Group (UPG) scheme works and the problem it solves
      Manipulating Files
    Be able to create, delete, copy, move and rename files and directories
    Describe the various types of files that can be stored on UNIX and Linux file systems
    Explain hard links and symbolic links, their pros & cons and when & where they can or can not be used
    Identify the type of content of any file
    View the contents of both text-based and binary files
    Search the file system for files and directories with specific properties
      Text Processing
    Search inside of files for specified information
    Perform file editing, sorting, cutting & merging text files from the command linee
      Shell Basics
    Understand the varied roles the command shell plays in everyday UNIX/Linux usage
    Pipe several commands together to perform more complex and useful processing
    Use file redirection on the command line
    Create and use shell and environment variables to configure and control the operation of the system, the command shell and programs
    Use and escape special characters when they are used on the command line
      Regular Expressions
    Construct regular expressions for matching text patterns
    Archiving and Compression
    Use tar & cpio to create archives and extract files from them
    Compress and decompress files using the UNIX compress, GNU gzip, bzip2 and zip formats
      Text Editing
    Use simple text editors like pico and nano
    Perform basic and intermediate text editing functions efficiently with vi & Vim
    Perform basic and intermediate text editing functions with GNU Emacs
      Command Shells
    List the history and relationships of the various popular shell implementations available on UNIX and Linux systems
    Identify and switch between the various shell implementations
    Customize the command prompt on Bourne and BASH shells
    Use command line history, command completion, aliases and command line editing
    Customize command shell operation system wide and for individual users
      Introduction to Shell Scripting
    Process arguments passed into a shell script
    Get input from the user of a shell script
    Generate formatted output from a shell script
    Perform tasks conditionally using if, case and while loops in a shell script
    Perform repeated actions over a set of values with for loops on the command line and within shell scripts
    Do math in a shell script
      Process Management and Job Control
    Describe the differences between process and threads
    Find and control running programs with ps, top, kill, and nice
    Use the jobs, fg and bg commands to view and access several tasks at once on a single shell
    Use the screen command to run several programs and disconnect from running programs on remote systems
      Messaging
    Send local messages with the write and wall commands
    Use talk and ytalk to chat with other users
    Send and read email with the mail and pine commands
      The Secure Shell
    Configure the ssh client and sshd server programs securely
    Establish secure, remote connections to other systems
    Use SSH's key-based authentication
      Managing Software
    Find and download software via FTP & HTTP with text & graphical client programs like wget, lftp, links, Konqueror and Mozilla Firefox
    Install binary programs in RPM packages
    List software already installed on the system with RPM
    Compile and install software from source releases
    Compile and install software from a source RPM (SRPM or .src.rpm) package
      Printing
    Use CUPS to connect to available local and network printers
    Use various commands to process and convert files in preparation for printing
    Send jobs to a printer
    Monitor and remove print jobs
      Mounting FileSystems and Managing Removable Media
    Use the mount command
    Access NFS and SMB filesystems over the network
    Use autofs for on-demand mounting of filesystems without root privileges
      X Window System
    Start the graphical environment manually
    Select different desktop environments
    Launch graphical applications
    Use Linux as an X terminal
    Customize the graphical environment and auto-start applications at login and X startup
    Securely tunnel remote graphical applications through SSH
    How about posting this question in the Certification Forum
    Since Oracle Linux is based on Red Hat Enterprise Linux, you can use and search "RHEL books". There should some.

  • Does creating Excel,Word,PDF reports & printing in Apex need licensing ?

    I am new to this Apex 4.0
    I have installed the Apex 4.0 with Oracle 10g database.
    Now using Apex if I create any web application, and develop some reports in the web application.
    1) Now to do the printing of the reports in Excel,Word,PDF does Apex need some other components to be installed ?
    2) Does those components needs licensing ? or are they free like Apex 4.0 ?

    Hi,
    Yes you need other components
    http://www.oracle.com/technetwork/developer-tools/apex/configure-printing-093060.html
    Some of solutions need license, like BI Publisher.
    There is also free solutions using e.g. Cocoon, Jasper reports ...
    http://carlback.blogspot.com/2007/03/apex-cocoon-pdf-and-more.html
    http://www.poveravoce.net/blog/?p=85
    http://ubuntuforums.org/showthread.php?t=1004742
    http://daust.blogspot.com/2010/09/jasper-reports-integration-v1100.html
    ANNOUNCE:JAPEX Open Source PDF reporting & Blob Download/Flash upload
    Regards,
    Jari

  • Installing Linux ---need help

    Hi
    I am new to linux and i downloaded enterprise linux from oracle
    now i want to intall it as a dual boot on my system.
    I have 160 gb hard disk and of that i used 15 gb to install windows,
    now i want to install linux on the remaining free space of 144 gb.
    what are the partitions that i need to do to install linux on this free space.
    only making root partition is enough.
    can any one guide me for this or any links which have the instructions for installation.
    i want to install oracle 11i on Linux.
    Thanks in advance

    Hi,
    This link would be a good start:
    http://www.oracle.com/technology/pub/articles/smiley_10gdb_install.html

  • Migrating from Red Brick database to Oracle 11g -Need help with the process

    Hi,
    I am on this new project were we are migrating from IBM Red Brick Data Warehouse to Oracle 11g. We have a very tight time line. I was hoping if any of you have done this migration before and are willing to share their experience. Any help would be greatly appreciated. I would like to get a brief idea about how to go about the process.
    Thanks in advance!

    Hello,
    that is a matter of supply and demand, and as the demand to migrate Red Brick to Oracle RDBMS is very low, Oracle never included Red Brick into the migration tools.
    If you search in the forums for Red Brick, you will not find much more than this one from the year 2006:
    Re: Migration from rebrick 6.0.3 to Oracle 9i
    Options:
    In general we have the following options:
    1. Oracle Migration Workbench
    2. SQL Developer Migration Workbench
    3. Generic Connectivity
    4. SQL*Loader
    Regarding your dedicated foreign database, option 1 and 2 fail as those tools
    do not work against Red Brick DB.
    Generic Connectivity would be an option if you have an ODBC driver to this database.
    In this dedicated case, you can then set up generic connectivity (= a database
    link to the foreign database using odbc).
    The Oracle database we support generic connectivity can reside on Windows,
    Solaris, HP-UX, AIX and Linux.
    If the Oracle database is on any other platform, you might migrate to a
    database on this platform, then export the migrated DB and then load it into
    the real target db.
    Generic Connectivity will allow you to perform a SQL*Plus copy of tables; this
    means you can create tables like they are defined in your source and transfer
    the data to the Oracle db; but no procedures, triggers or anything coded can be
    transferred.
    Last option (4) is that you generate "flat files". This means ASCII-SPOOL
    Files and then import them using SQL*Loader. As far as I know there is no
    existing SQL*Loader sample file for Red Brick databases exports and you need to
    write them on your own.
    I recommend to read also the following note in My Oracle Support:
    Note 233876.1: Options for Connecting to Foreign Data Stores and Non-Oracle Databases
    Best regards
    Wolfgang

  • [Oracle 8i] Need help pruning branches from a hierarchical query

    My problem is that my hierarchical query seems only to trim out the values that don't meet my criteria, but still includes their children. When my query hits a record that does not meet my criteria, I want it to stop there. I've tried including the criteria in just the 'where' clause of the query, and have also put the criteria in the 'connect by' clause as well, but nothing has fixed it. Please keep in mind I'm using Oracle 8i, so I can't use some of the 'nicer' statements for hierarchical queries that they introduced in 9. I'm stuck with 'Start With...Connect By'.
    I have sample tables/data that I can post if someone needs to see that to help me, but to start with, here's my current query:
    SELECT     *
    FROM     (
              SELECT
                   LEVEL
              ,     c_bill.comp_part_nbr                     AS     c_part_nbr
              ,     (select c_part.part_desc
                   FROM part c_part
                   WHERE c_part.part_nbr=c_bill.comp_part_nbr)     AS     c_part_desc
              ,     (SELECT c_part.part_type
                   FROM part c_part
                   WHERE c_part.part_nbr=c_bill.comp_part_nbr)      AS     c_part_type
              ,     c_bill.qty_per                          AS     c_qty_per_p
              ,     c_bill.qty_per_type                     AS     c_qty_per_type
              ,     (SELECT c_part.qty_on_hand                
                   FROM part c_part
                   WHERE c_part.part_nbr=c_bill.comp_part_nbr)      AS     c_qty_on_hand
              ,     c_bill.oper_nbr                     AS     rqd_at_op
              ,     c_bill.comp_off_adj                     AS     rqd_offset
              ,     c_bill.bom_doc_nbr                     AS     p_part_nbr
              ,     (SELECT p_part.qty_on_hand
                   FROM part p_part
                   WHERE p_part.part_nbr=c_bill.bom_doc_nbr)      AS     p_qty_on_hand
              FROM
                   BILL c_bill
              WHERE
                             (c_bill.status           =      'RL')           
                        AND     (c_bill.view_code     IN      ('M','G'))     
                        AND     (c_bill.end_eff_dt     >      SYSDATE)      
                        AND     (c_bill.begn_eff_dt     <=      SYSDATE)
              START WITH c_bill.bom_doc_nbr=RPAD(?,25)
              CONNECT BY PRIOR c_bill.comp_part_nbr=c_bill.bom_doc_nbr
              AND     c_bill.view_code     IN     ('M','G')     
              AND     c_bill.status          =     'RL'
              AND      c_bill.end_eff_dt     >     SYSDATE
              AND     c_bill.begn_eff_dt     <=     SYSDATE     
         ) a
    WHERE     c_part_type = 'M'

    The outside criterion of part_type='M' isn't my problem. Where I'm actually seeing my issue rear its ugly head is in the criterion:
    (c_bill.view_code     IN      ('M','G'))What I'll have happen is that one of the children or grandchildren of the part number I'm querying for (my parameter), will be of some view code that's not 'M' or 'G'. In my sample data below, I have a level 4 part that is part of the 'H' view code, which I don't want, nor do I want it's children. However, its child is in the 'G' view code, and my query returns it anyway.
    In my sample data below, I'm assuming that the parameter = 'XYZ-100'
    CREATE TABLE part
    part_nbr     varchar(25) not null,
    part_desc     varchar(25) not null,
    part_type     char(1) not null,
    qty_on_hand     double(13,4) not null
    CONSTRAINT part_pk
    PRIMARY KEY (part_nbr),
    CONSTRAINT check_part_type
    CHECK (part_type IN ('M','P','X','Y')),
    CONSTRAINT check_qty_on_hand
    CHECK (qty_on_hand >= 0)
    CREATE TABLE bill
    row_added_ts     char(20) not null,
    bom_doc_nbr     varchar(25) not null,
    comp_part_nbr     varchar(25) not null,
    qty_per          double(9,5) not null,
    qty_per_type     char(1) not null,
    oper_nbr     char(4) not null,
    comp_off_adj     double(3,0),
    status          char(2),
    view_code     char(1) not null,
    end_eff_dt     date() not null,
    begn_eff_dt     date() not null
    CONSTRAINT bill_pk
    PRIMARY KEY (row_added_ts),
    CONSTRAINT check_qty_per_type
    CHECK (qty_per_type IN ('0','1','2','3')),
    CONSTRAINT check_status
    CHECK (status IN ('IN', 'RL')),
    );     Values for those tables:
    INSERT INTO part
    VALUES ('xyz-1', 'purchased part', 'P', 5);
    INSERT INTO part
    VALUES ('xyz-2', 'purchased part', 'P', 1);
    INSERT INTO part
    VALUES ('xyz-3', 'purchased part', 'P', 1);
    INSERT INTO part
    VALUES ('xyz-3a', 'manufactured part', 'M', 1);
    INSERT INTO part
    VALUES ('xyz-4', 'purchased part', 'P', 1);
    INSERT INTO part
    VALUES ('xyz-9-1', 'manufactured part', 'M', 0);
    INSERT INTO part
    VALUES ('xyz-9a', 'manufactured part', 'M', 0);
    INSERT INTO part
    VALUES ('raw-1', 'purchased raw material', 'P', 212);
    INSERT INTO part
    VALUES ('raw-2', 'purchased raw material', 'P', 75.5);
    INSERT INTO part
    VALUES ('XYZ-100', 'manufactured part', 'M', 0);
    INSERT INTO part
    VALUES ('(OPEN)', '(not in use)', 'Y', 0);
    INSERT INTO part
    VALUES ('XYZ-100-1', 'manufactured part', 'M', 0);
    INSERT INTO part
    VALUES ('XYZ-100-2', 'manufactured part', 'M', 1);
    INSERT INTO part
    VALUES ('XYZ-100-3', 'manufactured part', 'M', 0);
    INSERT INTO part
    VALUES ('XYZ-100-4', 'manufactured part', 'M', 2);
    INSERT INTO part
    VALUES ('XYZ-100-A', 'manufactured part', 'M', 0);
    INSERT INTO bill
    VALUES ('2008072153100150000','XYZ-100','xyz-1',3,'1','****',0,'RL','M','01-Jan-2050','01-Jan-1900');
    INSERT INTO bill
    VALUES ('2008072153100150000','XYZ-100','XYZ-100-1',1,'1','****',0,'RL','M','01-Jan-2050','01-Jan-1900');
    INSERT INTO bill
    VALUES ('2008072153100150000','XYZ-100-1','xyz-1',2,'1','****',1,'RL','M','01-Jan-2050','01-Jan-1900');
    INSERT INTO bill
    VALUES ('2008072153100150000','XYZ-100-1','XYZ-100-2',3,'1','****',0,'RL','M','01-Jan-2050','01-Jan-1900');
    INSERT INTO bill
    VALUES ('2008072153100150000','XYZ-100-2','xyz-2',6,'1','****',2,'RL','M','01-Jan-2050','01-Jan-1900');
    INSERT INTO bill
    VALUES ('2008072153100150000','XYZ-100-2','xyz-4',6,'1','****',2,'IN','M','01-Jan-2050','01-Jan-1900');
    INSERT INTO bill
    VALUES ('2008072153100150000','XYZ-100-2','xyz-100-3',1,'1','****',0,'RL','M','01-Jan-2050','01-Jan-1900');
    INSERT INTO bill
    VALUES ('2008072153100150000','XYZ-100-3','xyz-3',8,'1','****',1,'RL','M','01-Jan-2050','01-Jan-2000');
    INSERT INTO bill
    VALUES ('2008072153100150000','XYZ-100-3','xyz-3a',8,'1','****',1,'RL','M','01-Jan-2000','01-Jan-1900');
    INSERT INTO bill
    VALUES ('2008072153100150000','XYZ-100-3','XYZ-100-4',4,'1','****',0,'RL','M','01-Jan-2050','01-Jan-1900');
    INSERT INTO bill
    VALUES ('2008072153100150000','XYZ-100-3','XYZ-100-A',2,'1','****',2,'RL','M','01-Jan-2050','01-Jan-1900');
    INSERT INTO bill
    VALUES ('2008071153100150000','XYZ-100-3','(OPEN)',2,'1','****',0,'RL','E','01-Jan-2050','01-Jan-1900');
    INSERT INTO bill
    VALUES ('2008071153100150000','XYZ-100-3','xyz-9-1',2,'1','****',0,'RL','H','01-Jan-2050','01-Jan-1900');
    INSERT INTO bill
    VALUES ('2008072153100150000','XYZ-100-4','raw-1',8.75,'1','****',0,'RL','M','01-Jan-2050','01-Jan-1900');
    INSERT INTO bill
    VALUES ('2008072153100150000','XYZ-100-A','raw-2',3.75,'1','****',0,'RL','M','01-Jan-2050','01-Jan-1900');
    INSERT INTO bill
    VALUES ('2008075911100150000','xyz-9-1','xyz-9a',1,'1','****',0,'RL','G','01-Jan-2050','01-Jan-1900');
    INSERT INTO bill
    VALUES ('2008087711100150000','xyz-9a','raw-2',3.75,'1','****',0,'RL','G','01-Jan-2050','01-Jan-1900');Sample data displayed in table format:
    --PART table (from insert statements above)
    part_nbr     part_desc          part_type     qty_on_hand
    xyz-1           purchased part          P          5
    xyz-2           purchased part          P          1
    xyz-3           purchased part          P          1
    xyz-3a           manufactured part     M          1
    xyz-4           purchased part          P          1
    xyz-9-1           manufactured part     M          0
    xyz-9a           manufactured part     M          0
    raw-1           purchased raw material     P          212
    raw-2           purchased raw material     P          75.5
    XYZ-100           manufactured part     M          0
    (OPEN)          (not in use)          Y          0
    XYZ-100-1     manufactured part     M          0
    XYZ-100-2     manufactured part     M          1
    XYZ-100-3     manufactured part     M          0
    XYZ-100-4     manufactured part     M          2
    XYZ-100-A     manufactured part     M          0
    --BILL table (from insert statements above)
    row_added_ts          bom_doc_nbr     comp_part_nbr     qty_per     qty_per_type     oper_nbr     comp_off_adj     status     view_code     end_eff_dt     begn_eff_dt
    2008072153100150000     XYZ-100          xyz-1          3     1          ****          0          RL     G          01-Jan-2050     01-Jan-1900
    2008072223100150000     XYZ-100          XYZ-100-1     1     1          ****          0          RL     M          01-Jan-2050     01-Jan-1900
    2008072411100150000     XYZ-100-1     xyz-1          2     1          ****          1          RL     M          01-Jan-2050     01-Jan-1900
    2008072459100150000     XYZ-100-1     XYZ-100-2     3     1          ****          0          RL     M          01-Jan-2050     01-Jan-1900
    2008072578100150000     XYZ-100-2     xyz-2          6     1          ****          2          RL     M          01-Jan-2050     01-Jan-1900
    2008072694100150000     XYZ-100-2     xyz-4          6     1          ****          2          IN     G          01-Jan-2050     01-Jan-1900
    2008072786100150000     XYZ-100-2     xyz-100-3     1     1          ****          0          RL     M          01-Jan-2050     01-Jan-1900
    2008072865100150000     XYZ-100-3     xyz-3          8     1          ****          1          RL     M          01-Jan-2050     01-Jan-2000
    2008073100100150000     XYZ-100-3     xyz-3a          8     1          ****          1          RL     M          01-Jan-2000     01-Jan-1900
    2008073159100150000     XYZ-100-3     XYZ-100-4     4     1          ****          0          RL     M          01-Jan-2050     01-Jan-1900
    2008073346100150000     XYZ-100-3     XYZ-100-A     2     1          ****          2          RL     M          01-Jan-2050     01-Jan-1900
    2008073478100150000     XYZ-100-3     (OPEN)          2     1          ****          0          RL     E          01-Jan-2050     01-Jan-1900
    2008073529100150000     XYZ-100-3     xyz-9-1          2     1          ****          0          RL     H          01-Jan-2050     01-Jan-1900
    2008073798100150000     XYZ-100-4     raw-1          8.75     1          ****          0          RL     M          01-Jan-2050     01-Jan-1900
    2008073811100150000     XYZ-100-A     raw-2          3.75     1          ****          0          RL     M          01-Jan-2050     01-Jan-1900
    2008075911100150000     xyz-9-1          xyz-9a          1     1          ****          0          RL     G          01-Jan-2050     01-Jan-1900
    2008087711100150000     xyz-9a          raw-2          3.75     1          ****          0          RL     G          01-Jan-2050     01-Jan-1900--What I want to get with my query (branches pruned off my tree)
    LEVEL     C_PART_NBR     C_PART_DESC          C_PART_TYPE     C_QTY_PER_P     C_QTY_PER_TYPE     C_QTY_ON_HAND     RQD_AT_OP     RQD_OFFSET     P_PART_NBR     P_QTY_ON_HAND
    1     XYZ-100-1     manufactured part     M          1          1          0          ****          0          XYZ-100          0
    2     XYZ-100-2     manufactured part     M          3          1          1          ****          0          XYZ-100-1     0
    3     xyz-100-3     manufactured part     M          1          1          0          ****          0          XYZ-100-2     1
    4     XYZ-100-4     manufactured part     M          4          1          2          ****          0          XYZ-100-3     0
    4     XYZ-100-A     manufactured part     M          2          1          0          ****          2          XYZ-100-3     0--What I actually get with my query (includes children of items that don't meet query criteria)
    LEVEL     C_PART_NBR     C_PART_DESC          C_PART_TYPE     C_QTY_PER_P     C_QTY_PER_TYPE     C_QTY_ON_HAND     RQD_AT_OP     RQD_OFFSET     P_PART_NBR     P_QTY_ON_HAND
    1     XYZ-100-1     manufactured part     M          1          1          0          ****          0          XYZ-100          0
    2     XYZ-100-2     manufactured part     M          3          1          1          ****          0          XYZ-100-1     0
    3     xyz-100-3     manufactured part     M          1          1          0          ****          0          XYZ-100-2     1
    4     XYZ-100-4     manufactured part     M          4          1          2          ****          0          XYZ-100-3     0
    4     XYZ-100-A     manufactured part     M          2          1          0          ****          2          XYZ-100-3     0
    5     xyz-9a          manufactured part     M          1          1          0          ****          0          xyz-9-1          0Edited by: user11033437 on Jul 30, 2009 7:27 AM (grammar)

  • New Oracle DBA - Need help with backup & restore procedure via RMAN

    Hello everyone,
    I've been a SQL Server DBA for 12 years now, but new to the Oracle space. My first assignment at work was to refresh our training environment with production. So with that said, I took a full backup of our production database via RMAN and backed up the Control File. I then copied both the Control File and full backup from our production environment to training. I followed the procedures listed in the URL below:
    http://www.dba-oracle.com/t_rman_clone+copy_database.htm
    I then connected to RMAN and executed a 'show all' which is as follows:
    RMAN configuration parameters are:
    CONFIGURE RETENTION POLICY TO REDUNDANCY 1; # default
    CONFIGURE BACKUP OPTIMIZATION OFF; # default
    CONFIGURE DEFAULT DEVICE TYPE TO DISK; # default
    CONFIGURE CONTROLFILE AUTOBACKUP OFF; # default
    CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '%F'; # default
    CONFIGURE DEVICE TYPE DISK PARALLELISM 1 BACKUP TYPE TO BACKUPSET; # default
    CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
    CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
    CONFIGURE MAXSETSIZE TO UNLIMITED; # default
    CONFIGURE ARCHIVELOG DELETION POLICY TO NONE; # default
    The CONFIGURE CONTROLFILE AUTOBACKUP was set to ON but received a message that the database needed to be mounted, so, I mounted the database and made the changes, but when I shutdown the database and performed the startup nomount again, the settings were gone. Are these settings valid only when the database is mounted? How can I successfully refresh this training environment with production data? I'm at a standstill here so any help would be very much appreciated.
    Thank you,
    Pete

    The CONFIGURE CONTROLFILE AUTOBACKUP was set to ON but received a message that the database needed to be mounted, so, I mounted the database and made the changes, but when I shutdown the database and performed the startup nomount again, the settings were gone. These settings are persistent settings.So these information retain in control files.To reading information from control files database instance must be MOUNT or OPEN stage.Due to you have mount instance and try SHOW ALL command through RMAN.
    Are these settings valid only when the database is mounted? Not only MOUNT also OPEN stage.
    How can I successfully refresh this training environment with production data? I'm at a standstill here so any help would be very much appreciated.
    There are several ways like duplication.But you take full backup from production database using BACKUP DATABASE through rman.In this case you will get also AUTOBACKUP for controlfiles/spfiles.Then copy these backup files and all available archive logs to training server and perform below steps.
    1) You have set properly ORACLE_HOME and ORACLE_SID environment variable.After that first need restore spfile as
    rman target /
    startup force nomount;
    restore spfile from 'autobackup_location';
    startup force nomount;2) Now you have to restore controlfiie as
      rman>restore controlfile from  'autobackup_location';
    rman>alter database mount;
      3) Now need catalog(it means register) all backup files and archivelogs in new restored controlfile as
       rman>catalog start with 'backuplocation';
       4) Finally you can restore and recover your database as below
       rman>restore database;
    rman>recover database;
    rman>alter database open resetlogs;
       If you want restore database to new location then before executing RESTORE DATABASE command you can use SET NEWNAME FOR DATAFILE clause.Firstly refer backup recovery guide in online documentation.

  • Am trying to instal driver for HP 3600 laser printer onto my new laptop HP 625 need help

    Am trying to instal driver for HP3600 printer onto my new HP625 laptop but keep getting message that I do not have IE5 or later and cannot instal until I instal IE5 or later.  I have the lastet Internet Explorer so don't know why I get the message and why I can't instal the driver.  Can anyone help me?
    Ron Howie

    RH, what Windows system? (32-bit or 64-bit)
    Please mark the post that solves your issue as "Accept as Solution".
    If my answer was helpful click the “Thumbs Up" on the left to say “Thanks”!
    I am not a HP employee.

  • [SOLVED] New to Arch Linux, Need help in Installation.

    Hi,
    I am  Ubuntu user for sometime, but I want to migrate to Arch Linux. I need some help. Please note that I am  not Linux Expert but I have been using Ubuntu and OpenSUSE for quite sometime now. The reason for deciding to migrate to Arch Linux is with I need speed.
    My laptop configuration is
    Dell Vostro 1015 - Intel Dual Core 1.8 GHz  with 2 GB RAM.
    I was using Ubuntu 64 bit version.
    Here in Arch Linux, I find there are 3 options to download                i686 CPU,    x86-64 CPU,    Dual Architecture
    Now which one should I download among x86-64 and Dual Architecture?
    Thanks.
    Last edited by sanjaydelhi (2011-11-16 15:11:14)

    Thank you all for welcoming me at Arch Linux!
    I was bit worried at the beginning because I tried Fedora before but it has one bug because of which it does not get installed on my laptop.
    http://forums.fedoraforum.org/showthread.php?t=255943
    I was bit disappointed being not able to use Fedora (both 14 and 15 ) because of this bug.
    The reason I got worried because I am new to Arch, as I mentioned I am not Linux expert and Arch is not for beginners( though I consider myself intermediate in Linux but certainly not expert). So I thought if I do not get community support probably I will not be able to use Arch Linux. The reason I got interest in Arch Linux is http://lifehacker.com/5680453/build-a-k … he-process this article. I am not thinking of upgrading my laptop for speed anytime sooner. So I thought of trying Arch Linux.
    The reason to post the topic was in most of Linux distros we see two options (x86, AMD_64). I found 3 options at Arch. I just wanted to make sure I am downloading right download.
    So I hope I clarified it.
    ANOKNUSA wrote:However, just for future reference: When engaging in any discussion with anyone anywhere on the internet at any time, it's often best to just leave experience and credentials out of the discussion.  I don't mean any offense myself, but claiming to be "in software development" while appearing unfamiliar with hardware architecture comes of as a bit odd.
    You are right. I should not have have brought experience and credentials in discussion. I used to follow hardware architectures but now I have so many other things to follow, so I can not keep up with hardware architectures. I still do not know exact architecture of i3,i5 or i7 processor or any of AMD processors. Thats how it is.
    I thank you all for support.
    Looking forward to trying Arch Linux.
    Thanks

  • Would like to write OCA exam for Oracle 11G, Need Help ?

    Hi Team,
    I would like to write OCA exam for Oracle 11g, I am a SQL/PLSQL developer and could you please guide me what are the exams needs to take.
    Please provide me links and materials inorder to know the exam details/model paper.
    Thanks in advance............
    Thanks
    Raghavendra Setty S
    [email address removed by moderator for security purposes]
    Edited by: Certification Forum Moderator on May 16, 2012 4:12 AM

    Hi Raghavendra, welcome to the forum!
    I suggest you remove you email from your post to avoid recieveing undesired emails.
    There are two OCA paths, OCA Developer or OCA DBA.
    For both paths you need to take one of the following SQL exams:
    1z0-007 Introduction to Oracle9i SQL (this is an outdated exam)
    or
    1z0-047 Oracle Database SQL Expert (more advanced exam recommended for developers/dbas with SQL experience)
    or
    1z0-051 Oracle Database 11g: SQL Fundamentals I (recommended for beginners or people with average experience in SQL)
    After passing one of these exams, if you want to take the OCA DBA path you need to do the:
    1z0-052 Administration I exam
    After passing one of the SQL exams, if you want to take the OCA Developer path you need one of the:
    1z0-147 Program with PL/SQL (outdated exam)
    or
    1z0-144 Oracle Database 11g: Program with PL/SQL (more actual exam, recommended)
    For information on specific exams:
    1z0-007: http://education.oracle.com/pls/web_prod-plq-dad/db_pages.getpage?page_id=41&p_exam_id=1Z0_007
    1z0-047: http://education.oracle.com/pls/web_prod-plq-dad/db_pages.getpage?page_id=41&p_exam_id=1Z0_047
    1z0-051: http://education.oracle.com/pls/web_prod-plq-dad/db_pages.getpage?page_id=41&p_exam_id=1Z0_051
    1z0-052: http://education.oracle.com/pls/web_prod-plq-dad/db_pages.getpage?page_id=41&p_exam_id=1Z0_052
    1z0-147: http://education.oracle.com/pls/web_prod-plq-dad/db_pages.getpage?page_id=41&p_org_id=1001&lang=US&p_exam_id=1Z0_147
    1z0-144: http://education.oracle.com/pls/web_prod-plq-dad/db_pages.getpage?page_id=41&p_org_id=1001&lang=US&p_exam_id=1Z0_144
    For information on the OCA Developer path:
    http://education.oracle.com/pls/web_prod-plq-dad/db_pages.getpage?page_id=458&get_params=p_track_id:PLSQL
    For information on the OCA DBA path:
    http://education.oracle.com/pls/web_prod-plq-dad/db_pages.getpage?page_id=458&get_params=p_track_id:Datab11g

  • Installing Flashplayer to Linux, need help please

    Ok, so I'm a windows xp person, I am new to Linux/ubuntu
    system setup thing... anywho I have been trying to watch youtube
    and get on to sites that require flashplayer, etc. It isn't letting
    me watch vids, so I do not have flashplayer, and when I went to
    read the instructions on how to download it, It was all gibberish
    to me, this is my first time ever using a linux so can someone
    explain to me how to download it? Im new so you may have to include
    every single detail, and tell me where to go, etc. Thank you so
    much for reading this and I hope you all can help me :)

    If anyone could help me with this, I would really appreciate
    it.

  • H-P Laserjet 4L printer will not print with Windows 7 operating system. Need help

    I have an H-P Laserjet 4L printer that worked fine with a Dell PC and Windows XP. But, it no longer worked when the PC was updated to Windows7. I was advised to buy an adapter that would accept the H-P plug and connect to the PC by means of a  USB port. I did that, but the H-P still will not print. Anyone know what to do about this problem?
    EugeneZ

    Hello EugeneZ,
    Welcome to the HP Support Forums!
    To get your issue more exposure I would suggest posting it in the commercial forums since this is a commercial product. You can do this at Commercial LaserJet Forums.
    The support page for your product may be helpful in the meantime: HP LaserJet 4L/mL Printer series
    I hope this helps!
    JERENDS
    I work on behalf of HP
    Please click “Accept as Solution” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos Thumbs Up" to the left of the reply button to say “Thanks” for helping!

  • Why my numbers printing result always a blank page? Need help :(

    Friends, I really need fast response.
    Every time I tried to print my Numbers file (contained 3 tables in 1 sheet), the printing result always blank page.
    And there's this notification:
    Error Number : 306 A communication error has occurred. Make sure that the printer is plugged in, powered-on, and properly connected to your computer. Then try printing again.
    I'm using Canon iP100.
    Everything's normal when I print my emails or pages file.
    Thanks much before

    Maybe the brute force treatment is not required.
    One may try:
    export as XL file
    import the XL file
    it may clean the annoying oddity.
    Other scheme:
    export as CSV
    import the CSV file.
    It's more severe that the 1st one but it's less than dropping the file
    Yvan KOENIG (VALLAURIS, France) mardi 17 janvier 2012
    iMac 21”5, i7, 2.8 GHz, 12 Gbytes, 1 Tbytes, mac OS X 10.6.8 and 10.7.2
    My Box account  is : http://www.box.com/s/00qnssoyeq2xvc22ra4k
    My iDisk is : http://public.me.com/koenigyvan

Maybe you are looking for