長治網站建設
        win7 64位系統下安裝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 山西中聯科創科技有限公司. All Rights Reserved.
        電話:0355-3728808 傳真:0355-3728808
        ICP備案號:晉ICP備06003721號本站已通過國際W3C認證
        關鍵字:中聯科創,長治網站建設,長治網站推廣,長治網絡工程,長治軟件開發,山西網站建設,山西軟件開發 長治五金網

                    

        91av国产精品| 亚洲一区二区精品视频| **网站欧美大片在线观看| 欧美jizzhd精品欧美| 国产精品岛国久久久久| 国产天天综合永久精品日| 亚洲精品无码久久毛片| 欧美精品中文字幕亚洲专区| 亚洲精品成人av在线| 亚洲国产精品成人久久蜜臀 | √天堂资源地址在线| 国产精品国产三级国产专播| 久久精品亚洲欧美日韩久久| 无码aⅴ精品一区二区三区浪潮| 华人在线精品免费观看| 亚洲AV无码成人精品区大在线 | 国产一区二区精品尤物| 冲田杏梨在线精品二区| 欧美成人精品一级高清片| 亚洲婷婷国产精品电影人久久| 国产精品无套内射迪丽热巴| 精品一区二区三区高清免费观看| 少妇人妻偷人精品视频| 国产精品欧美亚洲韩国日本久久| 美女黄页免费视频大全在线| 久久97精品久久久久久久不卡| 亚洲精品二三区| 国产成人精品久久免费动漫| 欧美精品高清在线xxxx| 久久精品国产清高在天天线| 国产欧美精品一区二区三区四区| 久久婷婷国产综合精品| 精品视频久久久久| 国产精品人成在线播放新网站| 麻豆精品视频在线观看| 99久久免费国产精品热| 亚洲精品偷拍视频免费观看| 久久精品一区二区| 国模私拍视频在线| 国产成人精品久久亚洲| 久久精品麻豆日日躁夜夜躁|