Seminar Sehari
PHP Indonesia
Saturday, 5th May 2012
Pelajari lebih lanjut tentang PHP+Oracle di http://pojokprogrammer.net
Related Content:
http://pojokprogrammer.net/search/node/oracle
If you use scripting languages to power web, mobile, and/or enterprise applications, this session will show you how to use Oracle Database efficiently. It demonstrates how PHP can take full advantage of new performance, scalability, availability, and security features in Oracle Database 12c and Oracle Linux. Many of these features are available to other C-based scripting languages too, like Ruby, Python and Perl. DBA's will also benefit by seeing how applications can be monitored.
PHP Oracle Web Applications:
Best Practices and Caching Strategies
by Kuassi Mensah, Server Technologies, Oracle
Talk presented at PHP Barcelona Conference 2009.
Create a Database Application Development Environment with DockerBlaine Carter
In this session, Blaine Carter will explain how to use Docker to create Docker Containers which can be used to develop Database Applications with Node.js and Oracle REST Data Services (ORDS). He will demonstrate how to use Docker to create one container running an Oracle XE Database, a second running REST ORDS, and a third running Node.js on Linux running code from files in a directory on the host machine. All three containers will communicate through a Docker Network. Once the containers are up and running, Blaine will run through a couple of examples using the new Docker Containers.
If you use scripting languages to power web, mobile, and/or enterprise applications, this session will show you how to use Oracle Database efficiently. It demonstrates how PHP can take full advantage of new performance, scalability, availability, and security features in Oracle Database 12c and Oracle Linux. Many of these features are available to other C-based scripting languages too, like Ruby, Python and Perl. DBA's will also benefit by seeing how applications can be monitored.
PHP Oracle Web Applications:
Best Practices and Caching Strategies
by Kuassi Mensah, Server Technologies, Oracle
Talk presented at PHP Barcelona Conference 2009.
Create a Database Application Development Environment with DockerBlaine Carter
In this session, Blaine Carter will explain how to use Docker to create Docker Containers which can be used to develop Database Applications with Node.js and Oracle REST Data Services (ORDS). He will demonstrate how to use Docker to create one container running an Oracle XE Database, a second running REST ORDS, and a third running Node.js on Linux running code from files in a directory on the host machine. All three containers will communicate through a Docker Network. Once the containers are up and running, Blaine will run through a couple of examples using the new Docker Containers.
Oracle REST data service is a powerful utility to publish an Oracle database into a REST based webservice. This presentation will focus on basic installation of ORDS in a Tomcat server, PLSQL apis for publishing a REST service and securing the REST endpoints
ORDS, the Oracle Rest Data Services, has evolved from just a supporting component of Oracle Application Express to the de facto standard tool for delivering RESTful API services for the Oracle database.
In this session we will cover
- what is Oracle Rest Data Services
- set up Oracle Rest Data Services to talk to your database
- use Oracle Rest Data Services to get data of all sorts in and out of your database
- create documentation for your API's
- secure the calls through Oracle Rest Data Services
In the end it will be clear, it is not magic.
It is the best way to get even more value out of your Oracle database!
This presentation will cover all the necessary steps to open up the information in your Autonomous database in the Cloud to the outside world - of course in a secure way.
ORDS nowadays is so sophisticated that most steps are extremely easy to do. It almost looks like magic!
This presentation is an overview of things all IT management team needs to consider before upgrading to Oracle Database 12c and were presented in a webinar: bit.ly/1yzSdsd
Oracle ACE Director Dan Morgan was a 12c beta tester and is intimately familiar with changes in architecture and how they will impact existing infrastructure and planning and budgeting considerations.
In 2015, most organizations will begin to migrate to the latest version of Oracle Database 12c, but few are aware of the challenges to management, planning and budgeting that need to be addressed before executing such a project. Dan Morgan presents what needs to be considered and shares a few tips about 12c new features.
If you have any questions regarding your future Oracle migrations and upgrades, feel free to visit Performance Tuning Corporation at www.perftuning.com
PHP, The X DevAPI, and the MySQL Document Store Presented January 23rd, 20...Dave Stokes
This presentation from the January 2019 Benelux PHP conference and covers use of the MySQL Document Store via the X DevAPI so that MySQL can used as a NoSQL JSON Document store as wells as a relational database, providing the best of both works
This is one of the 15 minute "TED" style talk presented as part of the Database Symposium at the ODTUG Kscope18 conference. In this presentation @SQLMaria coveres topics like what data type you should use to store JSON documents (varchar2, clob or blob) the pro's and con's of using an IS JSON check constraint, and how to load, index, and query JSON documents.
Oracle REST data service is a powerful utility to publish an Oracle database into a REST based webservice. This presentation will focus on basic installation of ORDS in a Tomcat server, PLSQL apis for publishing a REST service and securing the REST endpoints
ORDS, the Oracle Rest Data Services, has evolved from just a supporting component of Oracle Application Express to the de facto standard tool for delivering RESTful API services for the Oracle database.
In this session we will cover
- what is Oracle Rest Data Services
- set up Oracle Rest Data Services to talk to your database
- use Oracle Rest Data Services to get data of all sorts in and out of your database
- create documentation for your API's
- secure the calls through Oracle Rest Data Services
In the end it will be clear, it is not magic.
It is the best way to get even more value out of your Oracle database!
This presentation will cover all the necessary steps to open up the information in your Autonomous database in the Cloud to the outside world - of course in a secure way.
ORDS nowadays is so sophisticated that most steps are extremely easy to do. It almost looks like magic!
This presentation is an overview of things all IT management team needs to consider before upgrading to Oracle Database 12c and were presented in a webinar: bit.ly/1yzSdsd
Oracle ACE Director Dan Morgan was a 12c beta tester and is intimately familiar with changes in architecture and how they will impact existing infrastructure and planning and budgeting considerations.
In 2015, most organizations will begin to migrate to the latest version of Oracle Database 12c, but few are aware of the challenges to management, planning and budgeting that need to be addressed before executing such a project. Dan Morgan presents what needs to be considered and shares a few tips about 12c new features.
If you have any questions regarding your future Oracle migrations and upgrades, feel free to visit Performance Tuning Corporation at www.perftuning.com
PHP, The X DevAPI, and the MySQL Document Store Presented January 23rd, 20...Dave Stokes
This presentation from the January 2019 Benelux PHP conference and covers use of the MySQL Document Store via the X DevAPI so that MySQL can used as a NoSQL JSON Document store as wells as a relational database, providing the best of both works
This is one of the 15 minute "TED" style talk presented as part of the Database Symposium at the ODTUG Kscope18 conference. In this presentation @SQLMaria coveres topics like what data type you should use to store JSON documents (varchar2, clob or blob) the pro's and con's of using an IS JSON check constraint, and how to load, index, and query JSON documents.
Oracle DBA Tutorial for Beginners -Oracle training institute in bangaloreTIB Academy
Get Oracle DBA Training through free Oracle DBA Tutorial, In this Oracle DBA Tutorial specially made for Beginners. You can download Oracle DBA Tutrial
Managing large chain of Hotels and ERP database comprises of core areas such as HRMS & PIP.HRMS (Human Resource Management System), which further includes areas such as Soft Joining, Promotion, Transfer, Confirmation, Leave Attendance and Exit, etc. PIP (Payroll Information Portal), wherein employees can view their individual Salary details, submit investment declaration, Reimbursement claim & CTC structuring, etc. Management of Large Chain of Hotels and ERP Database in AWS Cloud involves continuous monitoring with regards to the areas such as Performance of resource usages and optimization techniques relating to the use of PL/SQL. High Availability (HA) of data is accomplished through the Backup and Recovery mechanism and security of the data by Encryption & Decryption mechanism.
PHPID - Code Factory Online Meetup, Supporting COVID-19 with Rumah Komunitas. Silakan kunjungi laman ini untuk rekaman meetup https://youtu.be/pACuwalpQpk
UiPath Test Automation using UiPath Test Suite series, part 4DianaGray10
Welcome to UiPath Test Automation using UiPath Test Suite series part 4. In this session, we will cover Test Manager overview along with SAP heatmap.
The UiPath Test Manager overview with SAP heatmap webinar offers a concise yet comprehensive exploration of the role of a Test Manager within SAP environments, coupled with the utilization of heatmaps for effective testing strategies.
Participants will gain insights into the responsibilities, challenges, and best practices associated with test management in SAP projects. Additionally, the webinar delves into the significance of heatmaps as a visual aid for identifying testing priorities, areas of risk, and resource allocation within SAP landscapes. Through this session, attendees can expect to enhance their understanding of test management principles while learning practical approaches to optimize testing processes in SAP environments using heatmap visualization techniques
What will you get from this session?
1. Insights into SAP testing best practices
2. Heatmap utilization for testing
3. Optimization of testing processes
4. Demo
Topics covered:
Execution from the test manager
Orchestrator execution result
Defect reporting
SAP heatmap example with demo
Speaker:
Deepak Rai, Automation Practice Lead, Boundaryless Group and UiPath MVP
Search and Society: Reimagining Information Access for Radical FuturesBhaskar Mitra
The field of Information retrieval (IR) is currently undergoing a transformative shift, at least partly due to the emerging applications of generative AI to information access. In this talk, we will deliberate on the sociotechnical implications of generative AI for information access. We will argue that there is both a critical necessity and an exciting opportunity for the IR community to re-center our research agendas on societal needs while dismantling the artificial separation between the work on fairness, accountability, transparency, and ethics in IR and the rest of IR research. Instead of adopting a reactionary strategy of trying to mitigate potential social harms from emerging technologies, the community should aim to proactively set the research agenda for the kinds of systems we should build inspired by diverse explicitly stated sociotechnical imaginaries. The sociotechnical imaginaries that underpin the design and development of information access technologies needs to be explicitly articulated, and we need to develop theories of change in context of these diverse perspectives. Our guiding future imaginaries must be informed by other academic fields, such as democratic theory and critical theory, and should be co-developed with social science scholars, legal scholars, civil rights and social justice activists, and artists, among others.
UiPath Test Automation using UiPath Test Suite series, part 3DianaGray10
Welcome to UiPath Test Automation using UiPath Test Suite series part 3. In this session, we will cover desktop automation along with UI automation.
Topics covered:
UI automation Introduction,
UI automation Sample
Desktop automation flow
Pradeep Chinnala, Senior Consultant Automation Developer @WonderBotz and UiPath MVP
Deepak Rai, Automation Practice Lead, Boundaryless Group and UiPath MVP
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...Ramesh Iyer
In today's fast-changing business world, Companies that adapt and embrace new ideas often need help to keep up with the competition. However, fostering a culture of innovation takes much work. It takes vision, leadership and willingness to take risks in the right proportion. Sachin Dev Duggal, co-founder of Builder.ai, has perfected the art of this balance, creating a company culture where creativity and growth are nurtured at each stage.
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...James Anderson
Effective Application Security in Software Delivery lifecycle using Deployment Firewall and DBOM
The modern software delivery process (or the CI/CD process) includes many tools, distributed teams, open-source code, and cloud platforms. Constant focus on speed to release software to market, along with the traditional slow and manual security checks has caused gaps in continuous security as an important piece in the software supply chain. Today organizations feel more susceptible to external and internal cyber threats due to the vast attack surface in their applications supply chain and the lack of end-to-end governance and risk management.
The software team must secure its software delivery process to avoid vulnerability and security breaches. This needs to be achieved with existing tool chains and without extensive rework of the delivery processes. This talk will present strategies and techniques for providing visibility into the true risk of the existing vulnerabilities, preventing the introduction of security issues in the software, resolving vulnerabilities in production environments quickly, and capturing the deployment bill of materials (DBOM).
Speakers:
Bob Boule
Robert Boule is a technology enthusiast with PASSION for technology and making things work along with a knack for helping others understand how things work. He comes with around 20 years of solution engineering experience in application security, software continuous delivery, and SaaS platforms. He is known for his dynamic presentations in CI/CD and application security integrated in software delivery lifecycle.
Gopinath Rebala
Gopinath Rebala is the CTO of OpsMx, where he has overall responsibility for the machine learning and data processing architectures for Secure Software Delivery. Gopi also has a strong connection with our customers, leading design and architecture for strategic implementations. Gopi is a frequent speaker and well-known leader in continuous delivery and integrating security into software delivery.
"Impact of front-end architecture on development cost", Viktor TurskyiFwdays
I have heard many times that architecture is not important for the front-end. Also, many times I have seen how developers implement features on the front-end just following the standard rules for a framework and think that this is enough to successfully launch the project, and then the project fails. How to prevent this and what approach to choose? I have launched dozens of complex projects and during the talk we will analyze which approaches have worked for me and which have not.
State of ICS and IoT Cyber Threat Landscape Report 2024 previewPrayukth K V
The IoT and OT threat landscape report has been prepared by the Threat Research Team at Sectrio using data from Sectrio, cyber threat intelligence farming facilities spread across over 85 cities around the world. In addition, Sectrio also runs AI-based advanced threat and payload engagement facilities that serve as sinks to attract and engage sophisticated threat actors, and newer malware including new variants and latent threats that are at an earlier stage of development.
The latest edition of the OT/ICS and IoT security Threat Landscape Report 2024 also covers:
State of global ICS asset and network exposure
Sectoral targets and attacks as well as the cost of ransom
Global APT activity, AI usage, actor and tactic profiles, and implications
Rise in volumes of AI-powered cyberattacks
Major cyber events in 2024
Malware and malicious payload trends
Cyberattack types and targets
Vulnerability exploit attempts on CVEs
Attacks on counties – USA
Expansion of bot farms – how, where, and why
In-depth analysis of the cyber threat landscape across North America, South America, Europe, APAC, and the Middle East
Why are attacks on smart factories rising?
Cyber risk predictions
Axis of attacks – Europe
Systemic attacks in the Middle East
Download the full report from here:
https://sectrio.com/resources/ot-threat-landscape-reports/sectrio-releases-ot-ics-and-iot-security-threat-landscape-report-2024/
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...DanBrown980551
Do you want to learn how to model and simulate an electrical network from scratch in under an hour?
Then welcome to this PowSyBl workshop, hosted by Rte, the French Transmission System Operator (TSO)!
During the webinar, you will discover the PowSyBl ecosystem as well as handle and study an electrical network through an interactive Python notebook.
PowSyBl is an open source project hosted by LF Energy, which offers a comprehensive set of features for electrical grid modelling and simulation. Among other advanced features, PowSyBl provides:
- A fully editable and extendable library for grid component modelling;
- Visualization tools to display your network;
- Grid simulation tools, such as power flows, security analyses (with or without remedial actions) and sensitivity analyses;
The framework is mostly written in Java, with a Python binding so that Python developers can access PowSyBl functionalities as well.
What you will learn during the webinar:
- For beginners: discover PowSyBl's functionalities through a quick general presentation and the notebook, without needing any expert coding skills;
- For advanced developers: master the skills to efficiently apply PowSyBl functionalities to your real-world scenarios.
Transcript: Selling digital books in 2024: Insights from industry leaders - T...BookNet Canada
The publishing industry has been selling digital audiobooks and ebooks for over a decade and has found its groove. What’s changed? What has stayed the same? Where do we go from here? Join a group of leading sales peers from across the industry for a conversation about the lessons learned since the popularization of digital books, best practices, digital book supply chain management, and more.
Link to video recording: https://bnctechforum.ca/sessions/selling-digital-books-in-2024-insights-from-industry-leaders/
Presented by BookNet Canada on May 28, 2024, with support from the Department of Canadian Heritage.
Accelerate your Kubernetes clusters with Varnish CachingThijs Feryn
A presentation about the usage and availability of Varnish on Kubernetes. This talk explores the capabilities of Varnish caching and shows how to use the Varnish Helm chart to deploy it to Kubernetes.
This presentation was delivered at K8SUG Singapore. See https://feryn.eu/presentations/accelerate-your-kubernetes-clusters-with-varnish-caching-k8sug-singapore-28-2024 for more details.
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered QualityInflectra
In this insightful webinar, Inflectra explores how artificial intelligence (AI) is transforming software development and testing. Discover how AI-powered tools are revolutionizing every stage of the software development lifecycle (SDLC), from design and prototyping to testing, deployment, and monitoring.
Learn about:
• The Future of Testing: How AI is shifting testing towards verification, analysis, and higher-level skills, while reducing repetitive tasks.
• Test Automation: How AI-powered test case generation, optimization, and self-healing tests are making testing more efficient and effective.
• Visual Testing: Explore the emerging capabilities of AI in visual testing and how it's set to revolutionize UI verification.
• Inflectra's AI Solutions: See demonstrations of Inflectra's cutting-edge AI tools like the ChatGPT plugin and Azure Open AI platform, designed to streamline your testing process.
Whether you're a developer, tester, or QA professional, this webinar will give you valuable insights into how AI is shaping the future of software delivery.
4. 1977,Larry Ellison founded Software Development Laboratories (SDL)
Changed name in 1979 to Relational Software Inc. (RSI),
1979 created the first commercial SQL-based relational database.
Changed name in 1983 to Oracle Corporation.
1983,Oracle 3 the first relational database to run on mainframes,
minicomputers, and PCs
1988, PL/SQL, the first built-in procedural language with very high
influence from C andAda.
1992,Oracle7, released in 1992, introduced PL/SQL stored procedures
and triggers.
1995, the first to 64-bit database.
1999, the database with XML support
2001,Oracle Real ApplicationClusters (Oracle RAC)
2003, enterprise grid computing environment.
In late 2005, released its first full-featured, 100 percent free database
server, Oracle Database XE.
2007,Oracle 11g, improved Manageability, diagnosability, and availability
See Also: http://www.oracle.com/technetwork/issue-archive/2007/07-jul/ o4730-
090772.html for an article summarizing the evolution of Oracle Database
5. Express Edition
Includes all feature available in Enterprise Edition
Limited to single CPU
Limited to 1 GB or RAM
Limited to 4 GB (10g) or 11 GB (11g) of data
Very simple installation
Personal Edition
Includes all feature available in Enterprise Edition
Limited to 1 user
6. Standard Edition One
Limited to 2 CPU
Minus Oracle RAC
Standard Edition
Limited to 4 CPU
Support Oracle RAC
Enterprise Edition
No CPU Limitation
Advanced High Availability (FlashbackTable,
Flashback Database, Data Guard, etc.)
7. TimesTen, in memory database
Berkeley DB, embedded database
MySQL, leading free open source database
Application Server, web server which
integrate seamlessly with oracle database
E-Business Suite
PeopleSoft
JD Edwards
.... and many more
8. Oracle Extension,This extension was designed for Oracle 7 and
should be avoided since it uses a deprecated version of the Oracle
API that will not be available in future releases.
ODBC within Windows, while ODBC provides some connection
pooling and other built-in features, it lacks access to many of
Oracle’s capabilities such as the ability to store large objects
(LOBs).
OCI8 Extension, this extension supports most of Oracle’s Oracle
Call Interface (OCI).
PDO Extension.This portable databaseAPI makes it easy to
change your database without changing a lot of your code.
Database Abstraction Libraries
ADOdb
PEAR DB
PEAR MDB2
11. Starting and Stopping Oracle Database
Database and Instance
Oracle Storage Structure
Oracle Memory Structure
Schemas and Users
12. Listener
The database listener is an Oracle Net program that
listens for and responds to requests to the database.
Database
The database is another process that runs in
memory, and needs to be started beforeOracle Net
can handle connection requests to it.
Requirements, user must included in
dba group on Linux, or
ORA_DBA on Windows
13. On Linux
Starting
▪ From Gnome: Select Applications > Oracle Database 10g
Express Edition > Start Database.
▪ From KDE: Select K Menu > Oracle Database 10g Express
Edition > Start Database.
▪ From linux shell: # /etc/init.d/oracle-xe restart
Stopping
▪ From Gnome: Select Applications > Oracle Database 10g
Express Edition > Stop Database.
▪ From KDE: Select K Menu > Oracle Database 10g Express
Edition > Stop Database.
▪ From linux shell: # /etc/init.d/oracle-xe stop
14. OnWindows
Starting
▪ From Menu: Start > Oracle Database 10g Express Edition > Start Database.
▪ From Control Panel: Start > Settings > Control Panel > Administrative Tools >
Services, and select the OracleXETNSListener service. Right click on the Listener
service, and select Start.
▪ From Control Panel: Start > Settings > Control Panel > Administrative Tools >
Services, and select the OracleServiceXE service. Right click on the Listener
service, and select Start.
Stopping
▪ From Menu: Start > Oracle Database 10g Express Edition > Stop Database.
▪ From Control Panel: Start > Settings > Control Panel > Administrative Tools >
Services, and select the OracleXETNSListener service. Right click on the Listener
service, and select Stop.
▪ From Control Panel: Start > Settings > Control Panel > Administrative Tools >
Services, and select the OracleServiceXE service. Right click on the Listener
service, and select Stop.
15. An Oracle database server
consists of a database and at
least one database instance
Database
A database is a set of files,
located on disk, that store
data.These files can exist
independently of a database
instance.
Database instance
An instance is a set of
memory structures that
manage database files.The
instance consists of a shared
memory area, called the
system global area (SGA),
and a set of background
processes.An instance can
exist independently of
database files.
16.
17.
18. Physical Storage Structures
Data files
▪ Every Oracle database has one or more physical data
files, which contain all the database data.
Control files
▪ Every Oracle database has a control file. Metadata
specifying the physical structure of the database.
Online redo log files
▪ Every Oracle Database has an online redo log. An online
redo log is made up of redo entries (also called redo
records), which record all changes made to data.
19. Logical Storage Structures
Data blocks
▪ At the finest level of granularity,Oracle Database data is stored in
data blocks. One data block corresponds to a specific number of
bytes on disk.
Extents
▪ An extent is a specific number of logically contiguous data
blocks, obtained in a single allocation, used to store a specific type
of information.
Segments
▪ A segment is a set of extents allocated for a user object (for
example, a table or index), undo data, or temporary data.
Tablespaces
▪ A database is divided into logical storage units called tablespaces.
A tablespace is the logical container for a segment. Each tablespace
contains at least one data file.
20.
21. Client Processes
to run the software code of an application program or
an Oracle tool. Most environments have separate
computers for client processes.
Server Processes
These processes communicate with client processes
and interact with Oracle Database to fulfill requests.
Background Process
Background processes asynchronously perform I/O
and monitor other Oracle Database processes to
provide increased parallelism for better performance
and reliability.
22. SystemGlobal Area (SGA)
The SGA is a group of shared memory structures that
contain data and control information for one
database instance. Examples of SGA components
include cached data blocks and shared SQL areas.
Program Global Areas (PGA)
A PGA is a memory region that contain data and
control information for a server or background
process.Access to the PGA is exclusive to the process.
Each server process and background process has its
own PGA.
23. A database schema is a collection of logical
data structures, or schema objects.
A database schema is owned by a database
user and has the same name as the user
name.
Schema objects are user-created structures
that directly refer to the data in the database.
The database supports many types of schema
objects, the most important of which are
tables and indexes.
25. Connecting to Oracle Database
Executing SQL Statements
Using PL/SQL, Stored Procedure andTriggers
Using Oracle LOB
DatabaseTransactions
26. Use single SQL statement whenever possible
If not possible, use PL/SQL or stored
procedure
If not possible, use Java or other
programming language
If still not possible, rethink why you want to
do it
27. Oracle ConnectionTypes
Standard Connections
▪ For basic connection to Oracle use PHP’s oci_connect() call:
▪ $c = oci_connect($username, $password, $dbname);
▪ You can call oci_connect() more than once in a script. If you do this and use the
same username and database name, then you get a pointer to the original
connection.
Multiple Unique Connections
▪ To get a totally independent connection use oci_new_connect():
▪ $c = oci_new_connect($username, $password, $dbname);
▪ Each connection is separate from any other.This lets you have more than one
database session open at the same time.This can be useful when you want to
do database operations independently from each other.
Persistent Connections
▪ Persistent connections can be made with oci_pconnect():
▪ $c = oci_pconnect($username, $password, $dbname);
▪ Persistent connections are not automatically closed at the end of a PHP script
this makes oci_pconnect() fast for frequently used web applications.
Reconnection does not require re-authentication to the database.
28.
29. Oracle Database Name Connection Identifiers
The $dbname connection identifier is the name of
the local or remote database that you want to attach
to.
Connection Identifiers can be one of:
An Easy Connect string
A Connect Descriptor string
A Connect Name
30. An Easy Connect string
The Easy Connect string is JDBC-like.The Oracle 10g
syntax is:
▪ [//]host_name[:port][/service_name]
Using Oracle 11g libraries, the enhanced 11g syntax
can be used:
▪ [//]host_name[:port][/service_name][:server_type][/instance_name]
$c = oci_connect('hr', 'welcome', 'localhost/XE');
$c = oci_connect(scott', ‘tiger', '127.0.0.1:1521/XE');
31. A Connect Descriptor string
The full Oracle Net connect descriptor string gives total
flexibility over the connection.
The syntax can be more complex than this example,
depending on the database and Oracle Net features used. For
example, by using the full syntax, you can enable features like
load balancing and tweak packet sizes.
The Easy Connect syntax does not allow this flexibility.
32. A Connect Name
A stored Connect Descriptor string
In PHP you would use the connect name MYA to connect to the
database:
▪ $c = oci_connect($username, $password, 'MYA');
PHP needs to be able to find the tnsnames.ora file to resolve
the MYA name.The directory paths that Oracle searches for
tnsnames.ora depend on your operating system
33. oci_close()
The oci_close() function works by reference
counting. Only when all PHP references to the
database connection are finished will it actually be
closed and database resources freed.
Demo on Close.php
34. The possible steps are:
Parse: Prepares a statement for execution.
Bind: Optionally lets you bind data values, for
example, in theWHERE clause, for better
performance and security.
Define: Optional step allowing you to specify which
PHP variables will hold the results.This is not
commonly used.
Execute: The database processes the statement and
buffers any results.
Fetch: Gets any query results back from the database.