Skip to content

Commit db4cb80

Browse files
Merge branch 'main' into dependabot/pip/cloud-infrastructure/ai-infra-gpu/ai-infrastructure/rag-langchain-vllm-mistral/files/langchain-community-0.2.5
2 parents d3e6ad8 + 29417c9 commit db4cb80

File tree

42 files changed

+812
-2
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+812
-2
lines changed

ai-and-app-modernisation/app-integration-and-automation/shared-assets/README.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,24 @@ This section contains various examples related to Application Integration: demo
1919

2020
## Demos
2121

22+
- [Setting Up OAuth and Calling Oracle Integration APIs: A Step-by-Step Guide](https://youtu.be/UrptzZbycm4?si=opv0_wc5F7SV86nx)
23+
24+
- In this demo video, we provide a step-by-step guide to setting up OAuth and calling Oracle Integration APIs. We'll walk you through registering your application, obtaining client credentials, and generating OAuth tokens.
25+
26+
Using Postman, we'll demonstrate how to make authenticated API calls to Oracle Integration, ensuring secure data retrieval and manipulation.
27+
28+
Parameters referred in video:
29+
30+
Grant Type : Client Credentials/Authorization Code
31+
Access Token URL : https://[idcs url]/oauth2/v1/token
32+
Client ID: xxxxx
33+
Client Secret: xxxxxx
34+
Scope: https://xxxxx:opc:resource:consumer::all
35+
Auth URL* : https://[idcs url]/oauth2/v1/authorize
36+
Redirect URL* : https://[oic url]/icsapis/agent/oauth/callback
37+
38+
"*" parameters are required for Authorization Code flow only.
39+
2240
- [Oracle Process Automation - File Manager Component](https://youtu.be/ZnGPteYE_tA?si=KAFsgffX1ZsRkfer)
2341

2442
- The File Manager component allows end users to upload one or more documents using a process form to an external system.This video demonstrate the use of the File Manager

cloud-infrastructure/multicloud/google-interconnect/README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,19 @@ The new Oracle Interconnect for Google Cloud now enables flexible and simplified
66

77
Enterprises can seamlessly connect Google Cloud services, such as analytics and AI, to Oracle Cloud services, such as Exadata and Autonomous Database. For organizations seeking to optimize and elevate their cloud infrastructure capabilities and commercial calculus, such a native multicloud model offers the best-of-both-clouds customer experience that encompasses a unified and interoperable technical and commercial stack.
88

9-
Reviewed: 13.06.2024
9+
Reviewed: 02.07.2024
1010

1111
# Useful Links
1212

1313
## General
1414

1515
- [Oracle and Google Cloud Announce a Groundbreaking Multicloud Partnership](https://www.oracle.com/news/announcement/oracle-and-google-cloud-announce-groundbreaking-multicloud-partnership-2024-06-11/)
1616
- [Step-by-Step Guide: Interconnecting Oracle Cloud Infrastructure and Google Cloud ](https://blogs.oracle.com/cloud-infrastructure/post/interconnecting-oci-google-cloud)
17+
- [Access to Google Cloud Platform](https://docs.oracle.com/en-us/iaas/Content/Network/Concepts/access-to-google-cloud-platform.htm)
18+
- [Oracle Interconnect for Google Cloud](https://www.oracle.com/cloud/google/interconnect/)
19+
- [Oracle and Google Cloud Partnership FAQ ](https://www.oracle.com/cloud/google/interconnect/faq/)
20+
- [Announcing the Oracle Interconnect for Google Cloud](https://blogs.oracle.com/cloud-infrastructure/post/announcing-oracle-interconnect-google-cloud)
21+
1722

1823

1924
# License
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
# Database Replay (DB Replay)
2+
3+
Database Replay can be used to capture a real workload on the production system and replay it on a test system with the exact timing, concurrency, and transaction characteristics of the original workload. This enables you to test the effects of a system change without affecting the production system. Database Replay supports workload capture on a system running Oracle Database 10g Release 2 and newer releases. Because the database workload capture is stored in a platform-independent format, you can capture a workload on one OS platform, e.g. Windows, and replay on a different one, e.g. Linux. Keep in mind it should be used only within the Oracle Database. Other external components like application server, middleware, or client software cannot be considered when testing with Real Application Testing. Either the graphical interface via Enterprise Manager Cloud Control or the command-line API can be used.
4+
5+
6+
Reviewed: 02.07.2024
7+
8+
# When to use this asset?
9+
10+
To learn about Database Replay using the command line API.
11+
12+
# How to use this asset?
13+
14+
See the README in the files folder.
15+
16+
Please note: Database Replay for Autonomous Database (ADB) works differently. It can be used e.g. to replay a recorded (captured) workload from On-Premises or cloud installations in an Autonomous Database.
17+
For more details on the usage in ADB refer to the [documentation](https://docs.oracle.com/en/cloud/paas/autonomous-database/serverless/adbsb/autonomous-real-application-testing.html#GUID-EB8F065E-5FBB-480D-BAF6-5A0446740073) or the posting [Autonomous Database Replay](https://blogs.oracle.com/coretec/post/adb-database-replay).
18+
19+
# Useful Links
20+
21+
## Documentation
22+
23+
- [Testing Guide](https://docs.oracle.com/en/database/oracle/oracle-database/19/ratug/database-replay.html#GUID-C5CAF3E6-0F1C-4BD6-BC03-F71744AD600E)
24+
- [PL/SQL Packages and Types Reference - DBMS_WORKLOAD_CAPTURE](https://docs.oracle.com/en/database/oracle/oracle-database/19/arpls/DBMS_WORKLOAD_CAPTURE.html#GUID-77C6507C-3DE6-4FB4-B180-530BEB840BE8)
25+
- [PL/SQL Packages and Types Reference - DBMS_WORKLOAD_REPLAY](https://docs.oracle.com/en/database/oracle/oracle-database/19/arpls/DBMS_WORKLOAD_REPLAY.html#GUID-FE03A123-2257-41FF-BA90-AD0114DC1A4F)
26+
- [Test Workloads with Oracle Real Application Testing - Autonomous Database](https://docs.oracle.com/en/cloud/paas/autonomous-database/serverless/adbsb/autonomous-real-application-testing.html#GUID-EB8F065E-5FBB-480D-BAF6-5A0446740073)
27+
- [PL/SQL Packages and Types Reference for Autonomous Database - DBMS_CLOUD_ADMIN](https://docs.oracle.com/en/cloud/paas/autonomous-database/serverless/adbsb/dbms-cloud-admin.html#GUID-D76B229E-781E-45C0-9F14-CAF30F9E6E3B)
28+
29+
30+
## LiveLabs
31+
32+
- [Real Application Testing: SQL Performance Analyzer and Database Replay](https://apexapps.oracle.com/pls/apex/r/dbpm/livelabs/view-workshop?wid=858&clear=RR,180&session=112790027738609)
33+
34+
35+
# Team Publication
36+
37+
- [Testing with Oracle Database Replay](https://blogs.oracle.com/coretec/post/testing-with-oracle-database-replay)
38+
- [Real Application Testing Database Replay Demo](https://blogs.oracle.com/coretec/post/rat-demo)
39+
- [Autonomous Database Replay](https://blogs.oracle.com/coretec/post/adb-database-replay)
40+
41+
42+
# License
43+
44+
Copyright (c) 2024 Oracle and/or its affiliates.
45+
46+
Licensed under the Universal Permissive License (UPL), Version 1.0.
47+
48+
See [LICENSE](https://github.com/oracle-devrel/technology-engineering/blob/main/LICENSE) for more details.
Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
## Database Replay Scripts
2+
3+
This folder provides SQL scripts for the usage of Database Replay (DB Replay). Please adapt and change the scripts to your conditions.
4+
5+
## Scripts
6+
7+
You can find an example workflow, the executed scripts, and a detailed description in the posting [Testing with Oracle Database Replay](https://blogs.oracle.com/coretec/post/testing-with-oracle-database-replay).
8+
9+
Keep in mind that appropriate permissions are required to
10+
- Create directory objects
11+
- Use DBMS_WORKLOAD_CAPTURE and DBMS_WORKLOAD_REPLAY packages
12+
- Act as a replay client user (e.g. wrc someuser/YOUR_PASSWORD or wrc USER=someuser PASSWORD=YOUR_PASSWORD) //PLEASE CHANGE YOUR_PASSWORD TO A REAL PASSWORD!
13+
14+
In the documentation [DBMS_WORKLOAD_CAPTURE Security Model]( https://docs.oracle.com/en/database/oracle/oracle-database/19/arpls/DBMS_WORKLOAD_CAPTURE.html#GUID-77C6507C-3DE6-4FB4-B180-530BEB840BE8) you will get the detailed information about it.
15+
16+
Before starting a workload capture, you should have a strategy in place to restore the database on the test system. Before a workload can be replayed, the logical state of the application data on the replay system should be similar to that of the capture system when replay begins.
17+
18+
In general, please follow the suggested script order.
19+
20+
### 1) Capture the Database Workload in the production environment
21+
22+
Before starting, check the [Workload Capture restrictions](https://docs.oracle.com/en/database/oracle/oracle-database/19/ratug/capturing-a-database-workload.html#GUID-4A1995F1-78F9-4080-8DFC-1E3EBCB3F4B8).
23+
24+
- Provide an empty database directory
25+
- (optional) Use filters: capturefilter.sql
26+
- Start capture: capturestart.sql
27+
- (optional) Stop capture: capturestop.sql
28+
- Check capture results: capturemon.sql
29+
- Export AWR: exportawr.sql
30+
- Capture report: capturereport.sql
31+
32+
(Note: it may be useful to generate an additional AWR spanning the capture period.)
33+
34+
### 2) Preprocess the (captured) Database Workload on the test environment
35+
36+
- Preprocess: processcapture.sql
37+
- (optional) Check duration: processmonitor.sql
38+
39+
### 3) Replay the Database Workload on the test environment
40+
41+
- (optional) Add filters: replayfilter.sql and replayfilterset.sql
42+
- Initialize the replay: replayinitialize.sql
43+
- (optional) Map connections: remapping.sql
44+
- (optional) Use filters: replayusefilterset.sql
45+
- Prepare the replay: replayprepare.sql
46+
47+
- Workload Replay clients: Number estimation and start
48+
49+
Estimate the number of Workload Replay Clients (WRCs) (e.g. $wrc mode=calibrate replaydir=../replay/..)
50+
51+
Start WRCs in the background on the replay machine or a separate machine (e.g. $wrc username/password mode=replay replaydir=../replay/...)
52+
53+
- Start the replay: replaystart.sql
54+
- Monitor the replay: replaymon.sql
55+
56+
### 4) Generate Reports
57+
58+
- (optional) Divergence reports: divergences.sql, divergence_detail.sql
59+
- Replay report: replayreport.sql
60+
- Import capture AWRs: importAWR.sql
61+
- ComparePeriod report: comparereplayreport.sql
62+
63+
(Note: it may be useful to generate an additional AWR spanning the replay period.)
64+
65+
# License
66+
67+
Copyright (c) 2024 Oracle and/or its affiliates.
68+
69+
Licensed under the Universal Permissive License (UPL), Version 1.0.
70+
71+
See [LICENSE](https://github.com/oracle-devrel/technology-engineering/blob/main/LICENSE) for more details.
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
-- This procedure adds a filter to capture a subset of the workload.
2+
3+
/* possible filter types: INSTANCE_NUMBER, USER, MODULE, ACTION, PROGRAM, SERVICE, PDB_NAME
4+
5+
examples:
6+
7+
exec dbms_workload_capture.add_filter('ORACLE MANAGEMENT SERVICE (DEFAULT)', 'Program', 'OMS');
8+
exec dbms_workload_capture.add_filter('ORACLE MANAGEMENT AGENT (DEFAULT)', 'Program', 'emagent%');
9+
exec dbms_workload_capture.add_filter('U_DBSNMP', 'User', 'DBSNMP');
10+
*/
11+
12+
-- example
13+
execute dbms_workload_capture.add_filter(fname=>'&FILTERNAME', fattribute=>'&filtertype', fvalue=>'&filtervalue');
14+
15+
-- Monitor filters
16+
set linesize window
17+
select * from dba_workload_filters;
18+
19+
/* if you need to delete the filters
20+
execute DBMS_WORKLOAD_CAPTURE.DELETE_FILTER(fname=>'&Filtername');
21+
*/
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
-- DBA_WORKLOAD_CAPTURES displays all the workload captures that have been performed in the current database.
2+
3+
set linesize window
4+
select id, name, status, errors, awr_exported, duration_secs, filters_used, dbtime_total, dbtime, dbtime_total,
5+
user_calls_total, user_calls, user_calls_unreplayable, transactions, transactions_total, capture_size/1024/1024
6+
from dba_workload_captures where name like '&name%';
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
-- This function generates a report on the workload capture.
2+
3+
4+
-- Find report_id
5+
select id, name, status, start_time, end_time, awr_exported, connects, user_calls, dir_path
6+
from dba_workload_captures where id = (select max(id) from dba_workload_captures);
7+
8+
-- Generate capture report
9+
spool capturereport.txt
10+
11+
set pagesize 0 long 30000000 longchunksize 1000
12+
select dbms_workload_capture.report(&report_id, 'TEXT') from dual;
13+
14+
spool off
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
-- This procedure initiates workload capture on all instances.
2+
/*
3+
If you used filters, please review the usage of EXCLUDE and INCLUDE in the start_capture procedure.
4+
Definition:
5+
If EXCLUDE, no user request to the database is captured, except for the part of the workload defined by the filters.
6+
In this case, all the filters specified using the ADD_FILTER procedures are treated as INCLUSION filters, determining
7+
the workload that is captured.
8+
Default is INCLUDE.
9+
10+
-- example with user defined filter criteria
11+
-- execute dbms_workload_capture.start_capture (name=>'&capturename', dir=>'&dir', default_action=>'EXCLUDE');
12+
13+
other options:
14+
15+
-- with STS (not available for RAC)
16+
-- execute dbms_workload_capture.start_capture (name=>'&capturename', dir=>'&dir', capture_sts=>TRUE);
17+
18+
-- with duration
19+
-- execute dbms_workload_capture.start_capture (name=>'&capturename', dir=>'&dir', duration=>&secs);
20+
21+
The optional plsql_mode parameter determines how PL/SQL is handled by DB Replay during capture and replays.
22+
These two values can be set for the plsql_mode parameter:
23+
top_level: Only top-level PL/SQL calls are captured and replayed, which is how DB Replay handled PL/SQL prior
24+
to Oracle Database 12c Release 2 (12.2.0.1). This is the default value.
25+
26+
Extended: Both top-level PL/SQL calls and SQL called from PL/SQL are captured. When the workload is replayed,
27+
the replay can be done at either top-level or extended level.
28+
*/
29+
30+
31+
-- Example EXCLUDE and PL/SQL mode extended
32+
-- execute dbms_workload_capture.start_capture (name=>'&capturename', dir=>'&dir', plsql_mode => 'extended', default_action=>'EXCLUDE');
33+
34+
35+
-- Example INCLUDE (default) and the PL/SQL mode extended
36+
execute dbms_workload_capture.start_capture (name=>'&capturename', dir=>'&dir', plsql_mode => 'extended');
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
-- This procedure signals all connected sessions to stop the workload capture and stops future requests to the database from being captured.
2+
3+
execute dbms_workload_capture.finish_capture();
4+
5+
/*
6+
By default, FINISH_CAPTURE waits for 30 seconds to receive a successful acknowledgement from all sessions in the database cluster before timing out.
7+
All sessions that either were in the middle of executing a user request or received a new user request, while FINISH_CAPTURE
8+
was waiting for acknowledgements, flush their buffers and send back their acknowledgement to FINISH_CAPTURE.
9+
If a database session remains idle (waiting for the next user request) throughout the duration of FINISH_CAPTURE, the session might have unflushed capture buffers and does not send it's acknowledgement to FINISH_CAPTURE. To avoid this, do not have sessions that remain idle (waiting for the next user request) while invoking FINISH_CAPTURE. Either close the database session(s) before running FINISH_CAPTURE or send new database requests to those sessions during FINISH_CAPTURE.
10+
*/
11+
~
12+
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
-- This procedure generates a report comparing a replay to its capture or to another replay of the same capture.
2+
3+
-- find replay_id
4+
select id, awr_begin_snap, awr_end_snap
5+
from dba_workload_replays where name like '&replayname%';
6+
7+
8+
-- replay_id2 of the workload replay whose report is requested
9+
-- If this is NULL, then the comparison is done with the capture
10+
11+
variable result clob
12+
13+
begin
14+
dbms_workload_replay.compare_period_report(replay_id1=>&replayid,replay_id2=>null,format=>'HTML',result=>:result);
15+
end;
16+
/
17+
18+
set heading off
19+
set long 1000000
20+
set pagesize 0
21+
spool comparereport.html rep
22+
print result
23+
spool off

0 commit comments

Comments
 (0)