This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html><a href="https://cloud.oracle.com/resourcemanager/stacks/create?zipUrl=https://github.com/shadabshaukat/OCI_DBMigrationTools_Image/ZDM-Migrate-v3-18Dec2020.zip" target="_blank"> | |
<img src="https://oci-resourcemanager-plugin.plugins.oci.oraclecloud.com/latest/deploy-to-oracle-cloud.svg" alt="Deploy to Oracle Cloud"/> | |
</a> | |
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
terraform { | |
required_version = ">= 0.12.0" | |
} | |
provider "oci" { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
variable "tenancy_ocid" {} | |
variable "region" {} | |
variable "compartment_ocid" {} | |
variable "subnet_ocid" {} | |
variable "ssh_public_key" {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sql /nolog | |
set cloudconfig /home/opc/client/oracle/19.3.0/wallet/Wallet_PAYGDEV.zip | |
show tns | |
connect admin/********@paygdev_high |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
create table big_table | |
as | |
select rownum id, | |
OWNER, OBJECT_NAME, SUBOBJECT_NAME, | |
OBJECT_ID, DATA_OBJECT_ID, | |
OBJECT_TYPE, CREATED, LAST_DDL_TIME, | |
TIMESTAMP, STATUS, TEMPORARY, | |
GENERATED, SECONDARY | |
from all_objects a | |
where 1=0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
declare | |
l_cnt number; | |
l_rows number := &1; | |
begin | |
insert /*+ append */ | |
into big_table | |
select rownum, | |
OWNER, OBJECT_NAME, SUBOBJECT_NAME, | |
OBJECT_ID, DATA_OBJECT_ID, | |
OBJECT_TYPE, CREATED, LAST_DDL_TIME, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Python2.7 ## | |
import sys | |
import json | |
import tweepy | |
import cx_Oracle | |
import datetime | |
from tweepy import Stream | |
from tweepy import OAuthHandler | |
from tweepy.streaming import StreamListener | |
from datetime import datetime |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE TABLE "ADMIN"."TWEET_LIVE_STREAM" | |
( "ID" NUMBER, | |
"USERNAME" VARCHAR2(500 BYTE), | |
"TIMEWHYUPUNISHME" TIMESTAMP (6) DEFAULT systimestamp, | |
"TWEET_JSON" CLOB, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- SQL Queries -- | |
select tweet from V_LIVE_TWITTER_FEED; | |
select count(*) from V_LIVE_TWITTER_FEED; | |
select * from TWEET_LIVE_STREAM; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import boto3 | |
s3 = boto3.resource( | |
's3', | |
region_name="ap-sydney-1", | |
aws_secret_access_key="**************", | |
aws_access_key_id="****************************************", | |
endpoint_url="https://ocicpm.compat.objectstorage.ap-sydney-1.oraclecloud.com" | |
) | |
OlderNewer