国产av无码日韩av无码网站-国产av无码专区亚洲a∨毛片-国产av无码专区亚洲av-国产av无码专区亚洲avjulia-国产av无码专区亚洲av果冻传媒-国产av无码专区亚洲av麻豆

長(zhǎng)治網(wǎng)站建設(shè)
win7 64位系統(tǒng)下安裝php + Oracle 11g

Introduction

Now a day, many PHP applications have been developed keeping Oracle as database instead of MySQL and it’s a very common problem for those, using Oracle 11g in Windows 7 (64-bit) with PHP applications that the connection of Oracle database has been refused to connect. Here I have used Instant Client to connect Oracle database with my PHP application.

Instead of using separate installation of PHP and Apache, I have used here WAMP server. Just follow the step-by-step to connect Oracle database with PHP applications on the platform of Windows 7 (64-bit).

Step-by-Step

STEP 1. Install WAMP server and Oracle 11g at first.

STEP 2. For Windows 7 (64-bit), extract instantclient-basic-windows.x64-11.2.0.3.0.zip, downloaded fromhttp://www.oracle.com/technetwork/topics/winx64soft-089540.html toC:WindowsSysWOW64instantclient_11_2 and set it on PATH variable for Environment variable.

STEP 3. Reboot the system now.

STEP 4. Allow PHP extension from php.ini as

extension=php_oci8_11g.dll (just remove the ";" from the start of the line)

STEP 5. Restart WAMP server.

STEP 6. Open the file to see the database name asD:appFarhanproduct11.2.0dbhome_1NETWORKADMINtnsnames.ora

 LISTENER_ORCL =
  (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))


ORACLR_CONNECTION_DATA =
  (DESCRIPTION =
    (ADDRESS_LIST =
      (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
    )
    (CONNECT_DATA =
      (SID = CLRExtProc)
      (PRESENTATION = RO)
    )
  )

ORCL =
  (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
    (CONNECT_DATA =
      (SERVER = DEDICATED)
      (SERVICE_NAME = orcl.168.1.2)
    )
  )

Here, the service name is found as "orcl.168.1.2" .

STEP 7. Make the connection in PHP script as oci_connect(your_username, your_password, "localhost/orcl.168.1.2");

2006-2014 IT0355.com 山西中聯(lián)科創(chuàng)科技有限公司. All Rights Reserved.
電話:0355-3728808 傳真:0355-3728808
ICP備案號(hào):晉ICP備06003721號(hào)本站已通過國(guó)際W3C認(rèn)證
關(guān)鍵字:中聯(lián)科創(chuàng),長(zhǎng)治網(wǎng)站建設(shè),長(zhǎng)治網(wǎng)站推廣,長(zhǎng)治網(wǎng)絡(luò)工程,長(zhǎng)治軟件開發(fā),山西網(wǎng)站建設(shè),山西軟件開發(fā) 長(zhǎng)治五金網(wǎng)

            

主站蜘蛛池模板: 久久亚洲精品成人综合| 日本理论片免费观看在线视频| 视频二区欧美| 中文字幕 一区 婷婷 在线| 欧美亚洲另类图片| 亚州色吧| 六月婷婷网| 天天碰天天操| 国产精品美女在线观看| 三级韩国一区久久二区综合| 在线电影你懂得| 人人艹在线| 业余性自由色xxxx视频| 欧美日韩一日韩一线不卡| 午夜影视在线视频观看免费| 狠狠色狠狠色| 天天色成人| 黄www色| 天堂资源在线官网| 大看蕉a在线观看| 深爱五月网| 国产高清免费| 四虎国产一区二区三区| 操干| 手机看片日韩日韩| 国产精品视频久久久| 四虎最新入口| 狠狠操狠狠插| 五月天婷婷丁香| 美女免费毛片| 亚洲国产精品免费观看| 欧美视频在线观看xxxx| 亚洲视频大全| 日本韩国中文字幕| 中文字幕一区二区三区在线观看| 日韩伦理网站| 爱射综合| 天天操天天看| 乱码精品一区二区三区| 亚洲乱强| 日本视频在线免费看|