... Creation of database in windows with oracle9i (Step-by-Step) By M.B.G. Suranga De Silva @ ceylonlinux dot com (Name of the database=db18) (Note: all commands are in bold letters) 1. ... SID as set oracle_ sid=db18 4. Start a windows service with internal password oradim –new –sid <database name> intpwd <password> is the syntax. In this case I use ceylonlinux_suranga ... –sid db18 –intpwd ceylonlinux_suranga 5. Create a directory called db18. In my case I created it in d:\ drive (Note: all my parameter files and .sql file that are going to discuss following are...
... USP_SANDAUTrang 19 masd in number,tensan in varchar2)asbeginINSERT INTO SANDAU(Ma_SD, Ten_San) VALUES (masd, tensan);commit;end USP_SANDAU;PROCEDURE USP_VONGDAU(mavd in number,tenvong in varchar2)asbeginINSERT ... varchar2)asbeginINSERT INTO VONGDAU(Ma_VD, Ten_Vong) VALUES (mavd, tenvong);commit;end USP_VONGDAU;PROCEDURE USP_TRANDAU( matd in number, ngaytd in date, madb1 in number, madb2 in number, ... pkg_INSERTasPROCEDURE USP_DOIBONG(madb in number,tendb in varchar2); PROCEDURE USP_LUOTDAU(mald in number,tenluot in varchar2); PROCEDURE USP_SANDAU(masd in number,tensan in varchar2);...
... kqdoi1 in number, kqdoi2 in number, vong in number,Trang 23 ); PROCEDURE USP_TRANDAU( matd in number, ngaytd in date, madb1 in number, madb2 in number, kqdoi1 in number, kqdoi2 in number, ... varchar2)asbeginINSERT INTO VONGDAU(Ma_VD, Ten_Vong) VALUES (mavd, tenvong);commit;end USP_VONGDAU;PROCEDURE USP_TRANDAU( matd in number, ngaytd in date, madb1 in number, madb2 in number, ... đấuTrang 34 masd in number,tensan in varchar2)asbeginINSERT INTO SANDAU(Ma_SD, Ten_San) VALUES (masd, tensan);commit;end USP_SANDAU;PROCEDURE USP_VONGDAU(mavd in number,tenvong in varchar2)asbeginINSERT...
... titled:■ Oracle9 i Database Getting Started for Windows ■ Oracle9 i Database Administrator’s Guide for Windows ■ Oracle9 i Security and Network Integration Guide for Windows Task MappingWe recognize ... Database" in Oracle9 i Database Administrator’s Guide for WindowsSee Also: Oracle9 i Database Concepts ixHKEY_LOCAL_MACHINE\SOFTWARE \ORACLE\ OSD9I\CM 9-12HKEY_LOCAL_MACHINE\SOFTWARE \ORACLE\ OSD9I\IPC ... tools. Using Oracle9 i on Windows 2000There are some differences between using Oracle9 i on Windows 2000 and Windows NT 4.0. For more information, see Chapter 3, "Using Oracle9 i on Windows...
... sau: (Gợi ý: sử dụng Full Outer Join)) select p.sp,p.mdv,d.tdv select p.sp,p.mdv,d.tdv from pnhap1 p join dmvt d from pnhap1 p join dmvt d using (mdv);using (mdv);9. 9. Thực hành câu ... Natural Join))select sp,mdv,tdv select sp,mdv,tdv from pnhap1 from pnhap1 natural join dmvt;natural join dmvt;8. 8. Thực hành câu lệnh SQL để có kết quả như sau: (Gợi ý: sử dụng Using)) ... SQL để có kết quả như sau: (Gợi ý: sử dụng Join On))select p.sp,p.mdv,d.tdv select p.sp,p.mdv,d.tdv from pnhap1 p join dmvt d from pnhap1 p join dmvt d on (p.mdv=d.mdv)on (p.mdv=d.mdv)11....
... job_id NOT LIKE ‘%REP%’Group by job_idHaving sum(salary)>12000Order by sum(salary) desc;select job_id,sum(salary)from employeesgroup by job_idhaving job_id not like '%REP%' and ... ra department_id, mức lương trung bình tính dựa theo department_id, với điềukiện: lương trung binh phải lớn hơn 500010. Chọn ra department_id, lương cao nhất tính dựa theo department_id, với ... nhất phải lớn hơn 8000.Select department_id,max(salary) From employeesGroup by department_idHaving max(salary)>8000Order by avg(salary) asc ;11. Liệt kê job_id, tổng lương tính dưạ theo...
... BÀI THỰC HÀNH SỐ 6 – ORACLE (Subquery)1. Chọn ra last_name của tất cả nhân viên có lương cao hơn lương của nhân viên ... salary ở mức thấp nhất. SELECT LAST_NAME,JOB_ID,SALARY FROM EMPLOYEES WHERE SALARY=(SELECT MIN(SALARY)FROM EMPLOYEES);4. Chọn ra employee_id, last_name, job_id, salary của những nhân viên...
... trước khi làm:- Truy vấn xem thông tin của bảng employees_cp- Sau đó xóa toàn bộ dữ liệu của bảng employees_cp- Truy vấn xem lại thông tin của bảng employees_cp- Thực hiện ... Employees_cp DELETE FROM EMPLOYEES_CP WHERE TO_DATE(HIRE_DATE ,’MM/YYYY’) = ‘01/1998’;8. Xóa đi thông tin của departments_cp có location_id = 1600.DELETE FROM departments_cpWHERE location_id = 1600;9. ... salaryFrom employeesWhere employee_id = 112)Where employee_id = 205;7. Xóa đi tất cả thông tin của nhân viên có ngày bắt đầu vào làm việc là trong tháng 1 năm1998 trong bang Employees_cp...
... 4-21Joining Tables Using SQL: 1999 Syntax 4-22Creating Cross Joins 4-23Creating Natural Joins 4-24Retrieving Records with Natural Joins 4-25Creating Joins with the USING Clause 4-26Retrieving ... SQLSQL1Introduction to Oracle9 i: PL/SQLinClassDevelop PL/SQL Program UnitsPL/SQLFundamentalsIntroduction to Oracle9 i: SQLinClassIntegrated Languages CurriculumIntroduction to Oracle9 i: ... Dashed line Optional element indicating “ may be” Solid line Mandatory element indicating “must be” Crow’ s foot Degree element indicating “ one or more” Single line Degree element indicating...
... 8-5Trapping Exceptions 8-6Trapping Exceptions Guidelines 8-7Trapping Predefined Oracle Server Errors 8-8Predefined Exceptions 8-11Trapping Nonpredefined Oracle Server Errors 8-12Nonpredefined ... 17-15Enforcing Data Integrity within the Server 17-16Protecting Data Integrity with a Trigger 17-17Enforcing Referential Integrity within the Server 17-18Protecting Referential Integrity with a ... subprograms in a packageMutually recursive programs are programs that call each other directly or indirectly. Introduction to Oracle9 i: PL/SQL 12-16Invoking Package Constructs (continued)When you invoke...
... &P_YEAR;V_REMAINDER1 NUMBER(5,2);V_REMAINDER2 NUMBER(5,2);V_REMAINDER3 NUMBER(5,2);BEGINV_REMAINDER1 := MOD(V_YEAR,4);V_REMAINDER2 := MOD(V_YEAR,100);V_REMAINDER3 := MOD(V_YEAR,400);IF ((V_REMAINDER1 ... provided as a supplement to the course Introduction to Oracle9 i: PL/SQL. In these practices, you apply the concepts that you learned in Introduction to Oracle9 i: PL/SQL. The additional practices ... provides supplemental practice in declaring variables, writing executable statements, interacting with the Oracle server, writing control structures, and working with composite data types, cursors...
... procedural programming capabilities.PL/SQL inOracle Tools:Many Oracle tools, including Oracle Developer, have their own PL/SQL engine, which is independent of the engine present in the Oracle Server.The ... SQLSQL1Introduction to Oracle9 i: PL/SQLinClassDevelop PL/SQL Program UnitsPL/SQLFundamentalsIntroduction to Oracle9 i: SQLinClassIntegrated Languages CurriculumIntroduction to Oracle9 i: ... Statements in PL/SQL 3-3SELECT Statements in PL/SQL 3-4Retrieving Data in PL/SQL 3-7Naming Conventions 3-9Manipulating Data Using PL/SQL 3-10Inserting Data 3-11Updating Data 3-12Deleting Data...
... 3.01 Files in $ORACLE_ HOME/bin Verify and set ownership All files in the $ORACLE_ HOME/bin must be owned by the Oracle software account. In Windows, this account must be part of the Administrators ... 10g ,9i √ 1 S 3.03 Files in $ORACLE_ HOME (not including $ORACLE_ HOME/bin) Permissions set to 0750 or less on Unix systems All files in $ORACLE_ HOME directories (except for $ORACLE_ HOME/bin) ... known 1.01 Windows platform Do not install Oracle on a domain controller Oracle must only be installed on a domain member server or a standalone server. 10g ,9i √ 1 1.02 Windows Services...
... for Oracle9 iIntroduction to Oracle9 iforExperienced SQL UsersinClassorAdvanced PL/SQLinClassSQL for End UsersinClassExtended DataRetrieval with SQLSQL1Introduction to Oracle9 i: ... 20-13Pivoting INSERT 20-15External Tables 20-18xxi PrefaceCurriculum MapIntroductionObjectives I-2 Oracle9 i I-3 Oracle9 i Application Server I-5 Oracle9 i Database I-6 Oracle9 i: Object Relational ... 4-4Generating a Cartesian Product 4-5Types of Joins 4-6Joining Tables Using Oracle Syntax 4-7 Copyright â Oracle Corporation, 2001. All rights reserved.Introduction Creating a Script 8-10Copying...