Hướng dẫn cài đặt oracle 11g trên window server 2023

Hi When i install Oracle database 11g 11.2.0.1 on Windows Server 2016 Standard Edition, it will prompt me this error "[INS-13001] Environment does not meet minimum requirements". This is the only version i could download from OTN for Windows 64 bit environment. I have set the Path and ORACLE_HOME in windows Environment parameters. I am running the Windows Server 2016 on VM machine with 8 GB RAM and 60 GB disk space. I have also set the swap file to be 8 GB. Please advise if there is a patch for Windows Server 2016? regards chris

Hãy nâng cấp lên Microsoft Edge để tận dụng các tính năng mới nhất, bản cập nhật bảo mật và hỗ trợ kỹ thuật.

DTS_E_CANNOTACQUIRECONNECTIONFROMCONNECTIONMANAGER when you use Oracle connection manager

  • Bài viết
  • 06/20/2023

Trong bài viết này

This article helps you resolve the problem that occurs when you use Oracle connection manager.

Original product version: SQL Server Original KB number: 2009312

Symptoms

Consider the following scenario for either SQL Server:

  • You design a SQL Server Integration Services (SSIS) package using Business Intelligence Development Studio (BIDS).
  • In your package, you connect to an Oracle server using an OLEDB provider for Oracle and use either Oracle client 10G or 11G.
  • You use package configuration file to set all the connection properties for the Oracle connection at runtime.

In this scenario, if you execute the package from BIDS, you get the following error message

"Error: 0xC0202009 at Package, Connection manager "OLEDB Provider": SSIS Error Code DTS_E_OLEDBERROR. An OLE DB error has occurred. Error code: 0x80040E21.

An OLE DB record is available. Source: "Microsoft OLE DB Service Components" Hresult: 0x80040E21 Description: "Multiple-step OLE DB operation generated errors. Check each OLE DB status value, if available. No work was done.".

Error: 0xC020801C at Data Flow Task, Oracle OLEDB Source [1]: SSIS Error Code DTS_E_CANNOTACQUIRECONNECTIONFROMCONNECTIONMANAGER. The AcquireConnection method call to the connection manager "OLEDB Provider" failed with error code 0xC0202009. There may be error messages posted before this with more information on why the AcquireConnection method call failed.

Error: 0xC0047017 at Data Flow Task, DTS.Pipeline: component "Oracle OLEDB Source" (1) failed validation and returned error code 0xC020801C."

Cause

This is due to the fact that the Initial Catalog property in configuration file is not recognized by the Oracle provider. This is blank for the Oracle Connection manager in the configuration file.

For example, the following XML Configuration file is generated when you use BIDS to create an SSIS package that connects to an Oracle server:


  
    
        
    
     
        Data Source=MyServerName;User ID=MyAccount;Password=MyPassword; **Initial Catalog=**; Provider=MSDAORA.1;Persist Security Info=True;
    

Resolution

Remove the check box for Initial Catalog when creating or editing the configuration file through the BIDS Designer.

For example, the fixed version of the example Configuration file shown in the Cause section will be as follows:

– Step 2: Thi qua môn Oracle Database 11g: Administration I 1Z0-052 Nếu bạn muốn lấy chứng chỉ OCA 11g) hoặc Oracle Database 12c: Installation and Administration 1Z0-062 (Nếu bạn muốn lấy chứng chỉ OCA 12c)

Bước 3: Vào thư mục này chạy file setup.exe (Chú ý: cài đặt trước jdk1.6 vì Oracle 11g R2 hỗ trợ chỉ tới phiên bản này.)

Bước 4: Thực hiện lần lượt:

Điền địa chỉ email để được support hoặc tích vào ô checkbox để bỏ qua rồi click next

Hướng dẫn cài đặt oracle 11g trên window server 2023

Chọn “Create and configure a database” rồi click next

Hướng dẫn cài đặt oracle 11g trên window server 2023

Chọn “Desktop Class” rồi click next

Hướng dẫn cài đặt oracle 11g trên window server 2023

Bước điền thông tin quan trọng:

Thư mục cài đặt: mặc định là C:\app\{user name} (Có thể đặt lại cho gọn như C:\oracle chẳng hạn).

Global database name: mặc định không nên thay đổi là orcl (cần nhớ, nó là SID để đăng nhập sau này)

Nhập Password: Ví dụ mật khẩu do Oracle hướng dẫn là Orcl1234

Hướng dẫn cài đặt oracle 11g trên window server 2023

Click next và bắt đầu quá trình kiểm tra trước khi cài đặt:

Hướng dẫn cài đặt oracle 11g trên window server 2023
Hướng dẫn cài đặt oracle 11g trên window server 2023

Click finish để bắt đầu cài đặt

Hướng dẫn cài đặt oracle 11g trên window server 2023

Trong quá trình cài đặt cần xác nhận cho java runtime bởi firewall và đừng để phần mềm diệt virus xóa hay lock file nào.

Nếu cài đặt OK thì nó chuyển sang:

Hướng dẫn cài đặt oracle 11g trên window server 2023

Chờ một lát kêt quả hiện ra:

Hướng dẫn cài đặt oracle 11g trên window server 2023

Ở đây HTTP Server Control chạy trên: https://localhost:1158/em

Cài đặt hoàn thành:

Hướng dẫn cài đặt oracle 11g trên window server 2023

  1. Bắt đầu sử dụng:

Bước 1: Vào Start > All Programs > Oracle – OraDb11g_home1 > Application Development:

Gõ vào user-name là: sys as sysdba

Và password là: Orcl1234 (như trong ví dụ cài đặt)

Kết quả hiện ra thành công là:

Hướng dẫn cài đặt oracle 11g trên window server 2023

Nếu nó có lỗi TNS: protocol adapter error như dưới

Hướng dẫn cài đặt oracle 11g trên window server 2023

Thì phải chắc chắn đã start 3 service sau:

Hướng dẫn cài đặt oracle 11g trên window server 2023

Nếu mà không start được service có thể ImagePath đã không được tạo khi cài đặt (do phần mềm diệt virus lock file)

Bạn phải sửa lại thủ công bằng cách vào Run > gõ regedit > mở ra Registry Editor. Vào HKEY_LOCAL_MACHINE > SYSTEM > CurrentControlSet > services

Trỏ đến Service không có Path. Click chọn New > Expandable String Value, đặt tên là ImagePath và giá trị là đường dẫn đến file bị mất

Hướng dẫn cài đặt oracle 11g trên window server 2023

Các Service và đường dẫn tương ứng như sau:

OracleDBConsoleorcl C:\oracle\product\11.2.0\dbhome_1\bin\nmesrvc.exe OracleJobSchedulerORCL C:\oracle\product\11.2.0\dbhome_1\Bin\extjob.exe OracleMTSRecoveryService C:\oracle\product\11.2.0\dbhome_1\bin\omtsreco.exe OracleOraDb11g_home1ClrAgent C:\oracle\product\11.2.0\dbhome_1\bin\OraClrAgnt.exe OracleOraDb11g_home1TNSListener C:\oracle\product\11.2.0\dbhome_1\BIN\TNSLSNR.exe OracleServiceORCL C:\oracle\product\11.2.0\dbhome_1\bin\oracle.exe OracleVssWriterORCL c:\oracle\product\11.2.0\dbhome_1\bin\OraVSSW.exe

Bước 2: Bạn start service OracleDBConsoleorcl (Hay tốt nhất bạn để Automatic để start cùng với windows ngay từ đầu để tránh lỗi). Service này dùng để thao tác với HTTP Server Controls trên URL: https://localhost:1158/em

Bước 3: Trong Oracle có các tài khoản như sys, hr, scott…Nhưng ban đầu các tài khoản khác ngoài sys thì đều bị lock. Bạn có thể unlock bằng cách vào https://localhost:1158/em Trỏ tới Database > Users > HR > Unlock và đặt password.

Bước 4: Sử dụng SQL Developer:

Hướng dẫn cài đặt oracle 11g trên window server 2023

Sau khi unlock các tài khoản HR, SCOTT… Bạn chạy SQL Developer (Lần đầu tiên chạy tool này nó bắt trỏ đến thư mục cài jdk1.6) và thấy giao diện như trên. Bên menu trái là tập các Connection. Mỗi Connection này trỏ tới một tài khoản Oracle Database. Ban đầu chỉ có SYS, các bạn phải thêm các Connection cho HR, SCOTT… với thông tin như trên.