SQL script on emp and dept

Tables to be used:

1 scott.emp

2 scott.dept

For all s deptno in dept table if there is at least 1 used in the emp table output should be 1 otherwise the output must be 0.

For example, deptno in dept table 40 have no employees present in the emp table if the output should be 0.

Desired output:

REQ

----------

0

Now, if I add a line in the table emp which deptno is 40 (now for all deptnos in the dept table, there is record emp at least 1), production should be 1

REQ

----------

1

I formed query as below but do not know how to do furthur

SELECT count (empno), deptno from emp by deptno group

Hello

2742751 wrote:

Select dept Dept. d

where 0! =

(select count (*) in e emp

where e.deptno = d.deptno

);

This will not work; There is no column dept in the dept table.

Select deptno from dept d

where there are

(select count (*) in e emp

where e.deptno = d.deptno

);

Do not know how to perform tried furthur two queries

Good start.  It's a good way to use a correlated EXISTS subquery.  (EXISTS subqueries are almost always correlated.  Why?  Discuss among you).

The query above tells you what are departments have used; He said nothing on which federal departments have not used, and this is what primarily interests us.  There are probably still some departments that have employees (even if you test this in any case); the real question here is: Y at - it all departments that have not used?   So change IS not there and see what you get.

SELECT DeptNo

D DEPT

WHERE DOES NOT EXIST)

SELECT 1 - keep it simple

FROM emp e

WHERE e.deptno = d.deptno

)

ORDER BY deptno

;

It's okay put you in the SELECT a clause subquery EXISTS; the subquery does not return actually what you say, the subquery just returns TRUE or FALSE. You need to select for syntax, but you might as well put something that is easy to type at this location.

Here is the result of the above query:

DEPTNO

----------

40

What is the problem with that?  I see two problems:

It produces the real Department deptno; We want that it displays 0 where there is a Ministry without employee.  It's an easy solution: change the SELECT main clause so that it returns the literal 0 instead of deptno.

The other problem is trickier.  The above query produces 1 row of output for each Department that satisfies the condition in the WHERE clause.  In the table scott.emp, it happens to be just 1 row, but if there were 2 or 3, or 2300 these departments, then the above query would produce 2 or 3 or 2300 lines of output.  What happens if 0 rows meet the condition in the WHERE clause?  Then the query would produce 0 lines of output.  It's no good: we want exactly 1 row of output, regardless of the number of rows satisfy the WHERE clause.  Do you know of any which is guaranteed to produce 1 row of output, regardless of the number of lines it finds, even if it is 0 rows?  An aggregate function without a GROUP BY doing the exact clause that: she produced exactly 1 row of output, no matter what, if anything, that it finds in the table, we can say:

SELECT MIN (0) AS req

D DEPT

WHERE DOES NOT EXIST)

SELECT 1

FROM emp e

WHERE e.deptno = d.deptno

)

ORDER BY deptno

;

Output:

REQ

----------

0

0 being the only value which is ever produced, no matter if we use MIN or MAX.  We could even use AVG or SUM if we wanted to be cute.

However, there is still a problem: If no rows satisfy the WHERE clause, no 0 will be produced, so MIN returns null.  We want the query to display 1 in this case, not NULL, so we can use NVL do display 1 instead of NULL, like this:

SELECT NVL (MIN (0)

1

) AS req

D DEPT

WHERE DOES NOT EXIST)

SELECT 1

FROM scott.emp e

WHERE e.deptno = d.deptno

)

ORDER BY deptno

;

Furthermore, I copy the scott schema emp and dept tables in my schema to test this, so I could add or remove data to test the situations as

  • several services without employees
  • no representation without employees
  • no departments at all (emply dept table)
  • no departments with emplpoyees

You don't want to edit any table provided by Oracle; You must keep the scott paintings exactly as they are, then, make copies you can change anything you want.

Tags: Database

Similar Questions

  • Matching EMP and DEPT

    Hi all

    11.2.0.1

    I have departments in the DEPT table which are 10 and 20. Department 10 has 100 employees in EMP while 20 Department hasn't in the EMP, so there is no corresponding line.

    How can I create a query such as all the dept with no EMP will be displayed:

    EMP DEPT

    ====      ====

    10 100

    20 0

    30 20

    Thank you

    pK

    You must learn more about Outer Join

    Select d.deptno

    count (e.empno) emp_count

    d Dept

    Join emp left e

    on d.deptno = e.deptno

    Group

    by d.deptno

  • Create jobs and positions via PL/SQL script

    Hi, it is recommended to insert new jobs and positions via PL/SQL Script?

    I know it's possible, I'm not sure if it is recommended. especially when it's via a direct insertion.

    Is there an API for it?

    I have about 200 + positions I need to set in our Instance of the EBS Test.

    Thank you!

    The APIs are the best way to do it in batches of charges-

    Job: HR_JOB_API

    Position: HR_POSITION_API

    To know that all the seeds API, add the responsibility of integrated SOA gateway

  • Other new lines in SQL script file and problem with SQL * more

    Hi all


    I would like to ask a question on the characters of new line inside files SQL scripts. I have a very long SQL query, stored in a file txt (ANSI encoding). Because query instructions are very long (several table joins and WHERE conditions) tried to separate, WHERE and ORDER BY clauses by inserting several new characters of lines (just hit the entrance) among them in order to improve the clarity of the source code. Now the problem is, whenever these newline characters are inserted in the file, apparently SQL * Plus cannot parse the file properly and gives me the following error message:
    SP2-0042: unknown command "FROM" - rest of line ignored.
    SP2-0734: unknown command beginning "myenterpri..." - rest of line ignored.
    The problem is definitely related to these new line because characters that when I remove them, the scripts runs without any problem. I would appreciate that you could kindly guide me how should I deal with this problem. Is there any SQL * Plus command to run to correctly interpret the new line characters?


    Thanks in advance,


    Kind regards
    Dariyoosh

    Hello

    In [SQL * Plus 9 | http://download.oracle.com/docs/cd/B10501_01/server.920/a90842/ch13.htm#1013073] (and), you can tell

    SET     SQLBLANKLINES   ON
    

    allow to completely empty rows in an SQL statement.

  • exp and imp in a sql script

    Hello

    I want to develop a sql script contains both code for the creation and insertion on a table and the exp command to export this table.
    Do you have an idea how integrate the command exp and imp in the sql script.

    Thank you.

    Edited by: Andrew1 Nov. 11. 2009 02:33

    This should be easy under Windows.

    Put the #1 and #2 in separate text files (.sql as use ending), for example create_table_web_enfants1.sql

    Create a batch (.cmd use as ending) file when you call these sql files, for example setup.cmd

    sqlplus /@ @create_table_web_enfants1.sql
    ...

    Add your exp returns to your command file

    and STI test.

    BTW: I'm going to assume that you post any real names of user/passwords to a production company database in your example, if not, you have broken some rules concerning the said database access security.

    C.

  • ACCEPT in SQL script does not

    G ' Day

    Why the use of the key word 'accept' does not work?

    I want a user to be prompted to commit or rollback, but it does not work in the following 'experience '.


    set echo on
    Set termout on
    Set of feedback on
    Update emp set sal = sal * 2 where ename = 'SCOTT ';
    accept char prompt action ' rollback or commit > '
    & action

    This is what happens when I run the script:

    SQL > @temp02.sql
    SQL > set echo on
    SQL > set termout on
    SQL > set comments on
    SQL > update emp set sal = sal * 2 where ename = 'SCOTT ';

    1 line update.

    SQL > accept char prompt action ' rollback or commit > '
    Rollback or commit > restoration
    SQL > & action
    SP2-0042: unknown '& action' - command remains ignored line.


    Any suggestion is appreciated.

    Tony

    Hi, Tony,.

    Welcome to the forum!

    SQL * more looks at the first word of a statement before solving the substitution variables. (I don't know why, it solves them regardless of which is the command.) In any case, the first word in an SQL command * more interpreter must be specified.

    "BEGIN" which begins an anonymous block counts as the first word, so you can take the suggestion of Andy much further by saying simply:

    BEGIN
        &action;
    END;
    /
    

    @ also account as the first word, then you might also have a script called commit.sql line

    COMMIT;
    

    and rollback.sql,

    ROLLBACK;
    

    and then tell

    @&action
    
  • How to generate a sql script that is based on the structure of the table

    I want to generate a sql script that is based on a table structure.

    For example:

    If the table is:

    CID id c_value
    -----------------------------
    1 1 zz
    2 1 yy
    3 2 zz
    4 2 xx
    5 3 ss
    6 tt 3


    The expected output is:

    WITH
    CHILD_tab like)
    SELECT 1 cid, 1 id, 'zz' c_value of all the double union
    SELECT 2 cid, 1 id, 'yy' c_value of all the double union
    SELECT 3 cid, 2 id, 'zz' c_value of all the double union
    SELECT 4 cid, 2 id, 'xx' c_value of all the double union
    SELECT 5 cid, 3 id, 'ss' c_value of all the double union
    SELECT 6 cid, 3 id, 'tt' double c_value)


    11.1.0.7.0 release

    I do a lot of XML these days (maybe too well) so here is a solution involving XQuery.
    We pass a query string and it generates a CLOB containing the WITH clause:

    SELECT DBMS_XMLGEN.Convert(
    XMLQuery(
    q'[concat(
    "WITH t AS (
    ",
    string-join(
     for $i in /ROWSET/ROW
     return concat( " SELECT ",
                    string-join($i/*/concat("'",ora:replace(text(),"'","''"),"' ",local-name()),", "),
                    " FROM dual" ),
    " UNION ALL
    "
    ),
    "
    )")]'
    passing dbms_xmlgen.getXMLType('SELECT * FROM scott.emp')
    returning content
    ).getClobVal(), 1) AS WITH_CLAUSE
    FROM dual;
    
    WITH_CLAUSE
    --------------------------------------------------------------------------------
    WITH t AS (
     SELECT '7369' EMPNO, 'SMITH' ENAME, 'CLERK' JOB, '7902' MGR, '17/12/80' HIREDATE, '800' SAL, '20' DEPTNO FROM dual UNION ALL
     SELECT '7499' EMPNO, 'ALLEN' ENAME, 'SALESMAN' JOB, '7698' MGR, '20/02/81' HIREDATE, '1600' SAL, '300' COMM, '30' DEPTNO FROM dual UNION ALL
     SELECT '7521' EMPNO, 'WARD' ENAME, 'SALESMAN' JOB, '7698' MGR, '22/02/81' HIREDATE, '1250' SAL, '500' COMM, '30' DEPTNO FROM dual UNION ALL
     SELECT '7566' EMPNO, 'JONES' ENAME, 'MANAGER' JOB, '7839' MGR, '02/04/81' HIREDATE, '2975' SAL, '20' DEPTNO FROM dual UNION ALL
     SELECT '7654' EMPNO, 'MARTIN' ENAME, 'SALESMAN' JOB, '7698' MGR, '28/09/81' HIREDATE, '1250' SAL, '1400' COMM, '30' DEPTNO FROM dual UNION ALL
     SELECT '7698' EMPNO, 'BLAKE' ENAME, 'MANAGER' JOB, '7839' MGR, '01/05/81' HIREDATE, '2850' SAL, '30' DEPTNO FROM dual UNION ALL
     SELECT '7782' EMPNO, 'CLARK' ENAME, 'MANAGER' JOB, '7839' MGR, '09/06/81' HIREDATE, '2450' SAL, '10' DEPTNO FROM dual UNION ALL
     SELECT '7788' EMPNO, 'SCOTT' ENAME, 'ANALYST' JOB, '7566' MGR, '19/04/87' HIREDATE, '3000' SAL, '20' DEPTNO FROM dual UNION ALL
     SELECT '7839' EMPNO, 'KING' ENAME, 'PRESIDENT' JOB, '17/11/81' HIREDATE, '5000' SAL, '10' DEPTNO FROM dual UNION ALL
     SELECT '7844' EMPNO, 'TURNER' ENAME, 'SALESMAN' JOB, '7698' MGR, '08/09/81' HIREDATE, '1500' SAL, '0' COMM, '30' DEPTNO FROM dual UNION ALL
     SELECT '7876' EMPNO, 'ADAMS' ENAME, 'CLERK' JOB, '7788' MGR, '23/05/87' HIREDATE, '1100' SAL, '20' DEPTNO FROM dual UNION ALL
     SELECT '7900' EMPNO, 'JAMES' ENAME, 'CLERK' JOB, '7698' MGR, '03/12/81' HIREDATE, '950' SAL, '30' DEPTNO FROM dual UNION ALL
     SELECT '7902' EMPNO, 'FORD' ENAME, 'ANALYST' JOB, '7566' MGR, '03/12/81' HIREDATE, '3000' SAL, '20' DEPTNO FROM dual UNION ALL
     SELECT '7934' EMPNO, 'MILLER' ENAME, 'CLERK' JOB, '7782' MGR, '23/01/82' HIREDATE, '1300' SAL, '10' DEPTNO FROM dual
    )
    

    It may be useful for small datasets only because we reached quickly ORA-01706.

  • Update SQL script

    Hi friends,

    I started this thread yesterday, but for some reason that I'm not able to answer/continue on this old thread. Here are the details from the old thread

    I need help with a sql script to update sid_no_new column with values based on sid_no for about 6000 + records.

    Here is an example below...

    SQL > select * from test1;

    SID_NO SID_NO_NEW UNIT_NO

    --------------------         --------------------           --------------------

    2000                                                          unit1

    2000                                                          unit3

    2000                                                          unit4

    2002                                                          unit16

    4500                                                          unit22

    In the example above, there are 3 sid_no consecutive '2000'. Sid_no_new must be 2000_1, 2000_2, 2000_3, respectively.

    It should be like:

    SQL > select * from test1;

    SID_NO SID_NO_NEW UNIT_NO

    --------------------      --------------------           --------------------

    2000 2000_1 unit1

    2000 2000_2 unit3

    unit4 2000_3 2000

    2002 2002 unit16

    4500 4500 unit22

    I ran the script (thanks to the experts who have contributed to) below, it works very well for the above documents, but I get ORA-30926 error when I run on the table with 6000 records...

    Fusion IN test1 tgt USING

    (SELECT sid_no,

    sid_no_new,

    unit_no,

    Count (sid_no) over (partition BY sid_no) cnt,

    ROW_NUMBER() over (partition BY order of sid_no to unit_no) rn

    OF test1

    ) CBC ON(tgt.sid_no=src.sid_no AND tgt.unit_no=src.unit_no)

    WHEN matched THEN

    UPDATE SET Sid_no_new = CASE WHEN cnt > 1 THEN sid_no |' _'. RN ELSE sid_no END;

    ERROR on line 1:

    ORA-30926: failed to get a stable set of rows in the source tables

    Please give your suggestions... Thank you very much

    In fact, this could be done easier:

    SQL > select *.

    test1 2

    3.

    SID_ SID_NO UNIT_N

    ---- ------ ------

    2000 2000_1 unit1

    2000 2000_2 unit3

    unit4 2000_3 2000

    2002 2002 unit16

    4500 4500 unit22

    SQL > select *.

    2 of test4

    3.

    UID_NO TYP RULE_DUE

    ---------- --- ----------

    RAF 2000 90

    3140 TH 100

    6712 JUL 21

    233 12 H6

    SQL > fusion

    2 in d of test4

    3 use)

    4 with as t4)

    5. Select uid_no,

    6                               type,

    7                               rule_due,

    8 rowid RID,

      9                               uid_no || '_' || ROW_NUMBER() over (partition by uid_no by 1 order) sid_no_new

    10 of test4

    11                      )

    12. Select t1.sid_no_new,

    T4.type 13,

    T4.rule_due 14,

    15 cases

    16 when t1.sid_no = t1.sid_no_new then t4.rid

    17 when t4.sid_no_new = t1.sid_no_new then t4.rid

    18 end rid

    19 of t4,

    Test1 20 t1

    21 where t1.sid_no = t4.uid_no

    22          ) s

    23 on)

    24 d.rowid = s.rid

    25       )

    26 when matched

    27 then

    Update 28

    29 set d.uid_no = s.sid_no_new

    30 when no match

    31 then

    32 insert

    33 values)

    s.sid_no_new 34,

    s.type 35,

    36 s.rule_due

    37                )

    38.

    3 lines merged.

    SQL > select *.

    2 of test4

    3.

    UID_NO TYP RULE_DUE

    ---------- --- ----------

    2000_1 RAF 90

    3140 TH 100

    6712 JUL 21

    233 12 H6

    2000_3 RAF 90

    2000_2 RAF 90

    6 selected lines.

    SQL >

    SY.

  • How to run multiple parallel sql scripts?

    I try to execute multiple sql scripts parallel to the short run of the process via sqlplus. Are there opportunities to do? LINUX ORACLE 5. XX

    I do it too via Scheduler, but now I need to do this via sqlplus or shell + sqlplus?

    How do I start using shell script several xterminals and ech session begins all the sql scripts?

    nohup./SQL1.sh &

    nohup./sql2.sh &

    nohup./SQL3.sh &

    The '&' causes the script1.sh to run in the background so that the command prompt is returned immediately.  This means that sql2.sh can start immediately and at the same time as sql1.sh.  It doesn't have to wait for sql1.sh.   This assumes that there are no dependencies between scripts!  This meets your need to run scripts in parallel.

    The nohup untie your shell script.  So, even if you disconnect, the script continues to run.  Without the nohup, if you were to close your session before the end of the scripts running, they would get fired.

    Hemant K Collette

  • can the run/run .sql script in another application?

    Hello..

    I have a problem to run my .sql script (for example: @c:\Users\test.sql) in my netbeans application. There is no problem when I want to run/run my sql query (for example: "select * from...").

    But when I want to run my script, no presentation of the result. my script content my query to export to the csv file.

    script: @c:\Users\test.sql

    in the script:

    coil c:\Users\test.csv;

    ' Select ' ' ' | LOT_NUMBER | « «, » » || DEVICENUMBER | « «, » » || DEVICENAME | « «, » » || STEP_NAME | « «, » » || INSERT_DATE | « «, » » || STATUS | « «, » » || DISPOSEDBY | « «, » » || ACCEPTBY | « «, » » || AVAILABLE | « «, » » || GENDISPOSITION | » » »

    of RF_LOT_ON_HOLD_LIST;

    spool off;

    Thank you.

    bunch

    Yes, we know what talking about your question.

    a .sql script is just a plain text file containing everything you want.  The code in it can be a pure SQL statements, it may contain of the PL/SQL code, and it can also include SQL * more specific orders (keep in mind SQL * more is a tool, not a language, so that these commands are specific to this tool and other tools which can also interpret the same commands).

    Not quite sure how your question relates to this blog, as this blog is showing the code that gets the data in JSON format in a jqGrid (jQuery grid?) and then exports the data in an Excel file.

    What you're trying to do is to take a series of SQL * Plus and SQL statements in a text file and generate a CSV file from them.

    As already mentioned, SPOOL is a SQL * more order, specific to SQL * more command line tool.  The database itself has no idea what "spool" means, while passing to the database somehow does not work.  I also doubt that netbeans knows what that means, either.

    So, in short, how you try to do, not you cannot.

  • I installed the SQL 4.0 developer and repository installation was a success. But the tools-> Data Miner-> Make visible option is not enabled. Also when I double click on the data minor user login I get the message the montrela

    I installed the SQL 4.0 developer and repository installation was a success. But the tools-> Data Miner-> Make visible option is not enabled. Also when I double click on the data minor user login I get the message workflow repository data need to be stored as xml binary on databases of version 11.2.0.4 or higher. You want to migrate your data from worklfow binary storage?  WARNING: All sessions with the ODMRUSER role will be disconnected.  Client version: 12.2.0.17.29 Version: 12.1.0.1.0 the database repository Version: 12.1.0.2.1. I don't have an older repository. Please help me solve this problem.

    Try to create a data minor user account (for example DMUSER) using the script createuser.sql in the \dataminer\scripts directory.  Use this user account to connect instead of the anonymous account.

    Thank you.

  • passage OEM "SQL Script" job name in lowercase as proxy database

    Hello

    I have a SQL script that requires the name of the database in lower case to be passed when running - she uses it as a substitution variable to create database directories that point to the UNIX file system (which is why they are case sensitive). I want to be able to configure this script as work in OEM (12 c version 3) so that I can run on several databases (11.2.0.3), but at the creation of employment, the % DBName parameter returns only the name of the database uppercase. I tried to change the % DBName parameter and run the script in a PL/SQL block, but the variable I spend it is interpreted as a literal string. I also tried to run in a shell script, but because of the way the user operating system is set up that I can't get that to work either.

    Does anyone have any ideas how this can be done? Ideally, I wish I could just run @script lower (%DBName%) or something similar.

    Thanks in advance,

    Robin

    In case anyone else has trouble with this, I worked on that I was able to use a PL/SQL block to convert the variable substitution for lower case, then create the directory with the variable:

    DECLARE

    v_lowerSID varchar2;

    BEGIN

    Select lower ('& 1') in the double v_lowerSID;

    run immediately ' create the db_dir as directory "/ [path] /' | v_lowerSID | '/' || v_lowerSID | ' _directory1 "';

    END;

    /

  • Running SQL scripts on different databases

    Hello!

    At my work we have many databases on a server. I have to make a request so that users can run the application on a selected database SQL scripts.

    So my question may be separated into 2 sections:

    1 - is possible to let users SQL scripts run directly from the application?

    I think a database to create a page that displays the list of all the SQL scripts, that we want to use, and when you click on a specific script name in the list, it asks something like "Where the database you want to run the script?", and then, as confirmed by the user, it would show results running the script on a different page.

    is 2 - possible to let users choose what database to run these scripts?

    Any information would be helpful, I'm at the beginning of the project and am not sure at all about how to proceed, or if it is at all possible.

    Thank you!

    Fallen_Kaede wrote:

    Thanks for the quick response. I confirm that we are talking about databases on a server.

    The request is to "debug" to other databases. For example, be run scripts to the locks on the list, to show the different indexes on a table, etc. to help diagnose problems.

    It looks like the 'users' are DBA who should use OEM/Grid Control to do so.

    1 - is possible to let users SQL scripts run directly from the application?

    Lol the only way to run scripts in the APEX is the use of the SQL Scripts for SQL workshop component.

    The key word in your question is 'application '. SQL * more and Developer SQL are applications that allow users to run SQL scripts on the desktop. Scripts SQL is an APEX integrated application that allows developers to run SQL scripts on the web. However, there is no documented way supported for end users to run SQL scripts in a custom of APEX application that you created. Therefore, rethink your approach. Rather than create an application APEX runs scripts, you must convert the scripts in PL/SQL, APEX packages, pages, components and applications leverage features of the APEX and reports, graphics and interactivity (e.g. exploration links; timed refreshes etc.). This will give you a user experience improved, beyond what is possible using static SQL scripts.

    is 2 - possible to let users choose what database to run these scripts?

    The APEX applications would exist on an instance of the APEX in a database and access other databases using the database links (which can have a performance impact). It would be possible to create a LOV based on the view of the USER_DB_LINKS dictionary and use in a selection set to a global page list to provide a control to set the current context of the database. Region data sources will have to be generated dynamically in the packages of PL/SQL use the links from relevant database based on this value LOV.

  • SRM + SQL + 3rd party replication and suspend the DB

    Gentlemen

    What can the SRM to ensure customers a SQL VM running on (and replicated by) 3rd party storage is applied consistently? The HP SRA has code that can invoke the suspension in the virtual machine? Or is there some kind of way scripted as part of SRM, that a quiesce DB in the virtual machine can be triggered in tandem with or just as a LUN replication occurs?

    I know that HP is responsible for the ASR - but in these situations, we sometimes get caught between vendors. Looking for experience "How have any other mission critical SQL resources protected using 3PAR and SRM".

    In other words:

    We are looking for assistance with a DR implementation for a specific application of SQL. The app is on virtual machines running on 3PAR storage. We bought all the necessary "3PAR suite application licenses" and then also have VMware SRM.

    We are more concerned than LUNS replicated DR on-site production (LUN will be virtual computers hosting SQL data storage I assume) will be fully SQL-compliant (i.e. better than crash-consistent), during replication.

    We have some experience with 3PAR replications - but to my knowledge have not yet worked with the application suites.

    Question - anyone can describe what role (if any) suites of applications 3PAR can have in correctly the suspension SQL running on a virtual machine that is on a LUN 3PAR? I don't know we can do this medium - seems that we will have to use RDM (or vVOls if they are compatible SRM) be properly suspended the DB. Is there a HP storage agent that can run on a VM SQL in order to coordinate with the table when the underlying LUN snapshots are performed?

    You are right. Consistency in the application will have to be managed at the level of the array. Some providers of table (I know NetApp specifically) offer the ability to place an agent on the VMS and this agent to use the table to ensure uniformity in the application, I'm not sure of HP.

    Another option that you might look at is vSphere replication. VR offers quiecing VSS (with JEREMIAH) in native mode.

    If you are looking for a specific response to the use of replication 3PAR application suites I suggest you post to a forum of HP. vVOLs are not yet compatible with SRM and I do not see how RDM you will get what you are looking for.

    Finally, how you deal with your post, I would say that you do not assume that only men participate in this forum.

  • Several Windows local sql scripts to run automatically.

    Hi Experts, here's my dillemma.

    Oracle DB version: 10G

    Installed in: Sun solaris Sparc Unix machine.

    Customer used in local machine: PLSQL developer version 10

    I'm going to get a set of .sql files every week on my local machine to windows 7 especially recreate tables, insert data, and perform other actions of DB.

    Our project aims to automate the process of sql executions.

    Whatever the State of execution of the 1 file, execution should continue with the rest of the sql files & save errors and other messages.

    But the problem here is

    (1) we don't have access to the Unix machine where DB is installed to write a shell script and run these files.

    (2) we have only customer plsql developer which interfaces with DB.

    My life I worked with scripts Unix & plsql, but not having don't access Unix is a newthing to me & its driving me crazy.

    Please give me advice on how to approach it.

    (1) can use us plsql developer for pickthe local files & run them?

    (2) can write us that all back base program in order to recover and run the local sql files.

    Assumptions:

    I think that PLSQL programming in itself is not a way to access the files stored in the local computer (my system and not the box Pb, in that it is installed).

    Thank you for your time and response.

    Tip:

    use customer sqlplus to connect to db. and run your scripts in the bat file

Maybe you are looking for