I'm new to PLSQL and I been testing some of its features. I need to select columns from a table and write them to an output file. How can I do this? For example, let say that I have an "EMP" table that has "NAME", and "Address" columns. How can I select both of these columns and write it to a file using PL-SQL?
(I've been trying to use a package called "logfilepkg.writelogline" which always seems to give me 21/13 PLS-00201: identifier 'LOGFILEPKG.WRITELOGLINE' must be declared
21/13 PL/SQL: Statement ignored.)
Can anyone provide me with a simple example just to get me started? Thank you very much for your time.
PL\SQL can be used to write output to a text file. That is not the simplest way to get Oracle data to a text file though. The simplest way is via SQL*Plus in three steps:
1. spool [a valid path/file_name]
Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.
How to Create User-Defined Aggregates in Oracle
Before we begin creating these things, what are user-defined aggregates? They are a feature introduced in Oracle 9i that allows a developer to create his or her own functions like "SUM", "AVG", and…
I remember the day when someone asked me to create a user for an application developement. The user should be able to create views and materialized views and, so, I used the following syntax:
This way, I guessed, I would ensure that use…
This video shows how to copy a database user from one database to another user DBMS_METADATA. It also shows how to copy a user's permissions and discusses password hash differences between Oracle 10g and 11g.
This video shows setup options and the basic steps and syntax for duplicating (cloning) a database from one instance to another. Examples are given for duplicating to the same machine and to different machines