Category Oracle performance and tuning

1. IAM Test

Identity and Access Management and is a Global Service.  Root account is created by default and shouldn’t be used or shared. Instead we create Users. Users are people within the organization and can be grouped like developers, operations etc. These groups only contain users, not other groups. A user can belong to multiple groups. For example a user ‘A’ part of developers group can also be part of audit group. Similarly a user ‘B’ part of operations group can also be part of audit group. JSON (Java Script Object Notation) documents called Policies will be assigned to Users or Groups. The Policies define the permissions of the users and apply least privilege principle. Means dont give more permissions to a user than he needs. IAM allows to manage users and their level of access to the AWS console. IAM allows to set up users, groups, policies (permissions) and roles. Also allows to grant access to different parts of AWS platform. AWS Root Account Security Best Practices:  1) Use a strong password to help protect account-level access to the AWS Management Console. 2) Never share your AWS account root user password or access keys with anyone. 3) If you do have an access key for your AWS account root user, delete it. If you must keep it, rotate (change) the access key regularly. You should not encrypt the access keys and save them on Amazon S3. 4) If you don’t already have an access key for your AWS account root user, don’t create one unless you absolutely need to. 5) Enable AWS multi-factor authentication (MFA) on your AWS account root user account. Key features:  i) Centralized control of AWS account  ii) Shared access to AWS account  iii) Granular permissions — restricting access only to few services  iv) Identity Federation — Including Active Directory, FB or Linkedin etc. Users can log into AWS console using the same username and password that they used to log into windows PCs.  v) Multifactor authentication  vi) Provides temporary access for user/ devices and services where necessary.  vii) Allows to set up own password rotation policy.  viii) Integrates with many different AWS services.  ix) Supports PCI DSS compliance. Key Terminology:  i) Users: End users such as people, employees in an organization etc.  ii) Groups: A collection of users. Each user in the group will inherit the permissions of the group.  iii) Policies: Policies are made up of documents called Policy documents. These documents will be in JSON (Java Script Object Notation) format and they give permissions as to what a user/ group/ role is able to do  iv) Roles: Create roles and then assign them to AWS resources. US East (N. Virginia) is the region where all the new products and services will be launched first. In console: Security, Identity & Compliance >> IAM Access Key ID can be considered as a user name that we are going to use programmatically access. Secret Access Key is the password to access programmatically. Tips:  i) IAM is global/ universal and does not apply to regions. So creation of user, group or role are universal.  ii) The ‘root account’ is simply the account created when we first setup our AWS account. It has complete admin access. It uses an email address to create an account.  iii) New users have no permissions/ policies when first created.  iv) New users are assigned Access Key ID & Secret Access Key when first created. These are not same as a password. We cannot use the Access Key ID & Secret Access Key to login into the console. We can use this to access AWS programmatically via APIs and the Command line. Save the Access Key ID & Secret Access Key in secure location as we get only once and if we lose, we have to regenerate them.  v) We can access AWS in two ways. Console Access & Programmatic Access.  vi) Always set up MFA (Multi Factor Authentication) on your root account.  vii) We can create and customize own password rotation policies. Question 1:  What is an Availability Zone?  A. data center  B. multiple VPCs  C. multiple regions  D. single region  E. multiple EC2 server instances  Answer (A) Question 2:…

Python

Index 1. Python Installation 2. Variables and Data types 3. Working with strings 4. String Methods 5. String Concatenation 6. Formatting Strings 7. Indexing 8. Working with numbers 9. Boolean 10. Operators 11. Getting input from users 12. Lists 13.…

Fusion Reporting

 Cloud Reporting 1. Reports in Fusion 2. Basic steps involved in FBDI  3. Supplier Conversion  4. ESS Job Error  5. AP Invoice Conversion  6. BI Reports  7. OTBI Reports  8. Customer Conversion  i) FBDI  ii) ‘Upload Customers from Spreadsheet’  9. AR Invoice Conversion  10. Journal creation  i) ADFdi  ii) FBDI  1. Reports in FusionADFDI (Application Development Framework Data Integrator) Rapid Implementation FBDI(File Based Data Import) Web ADI in EBS Configuration/ Setup Data conversions Daily transactions    Supplier conversion, Invoice conversion You can use the ADFdi  workbook for entering a high volume of data. More than 100k records.   In general it is recommended to use File Based Import (FBDI) if data being entered is in thousands of rows (approximately over 30K rows) since this sheet does not have any validations.  2. Basic steps involved in FBDI  Step 1: Download the template from OER(Oracle Enterprise Repository) Step 2: Enter data into Template Step 3: Convert data template into ZIP file Step 4: Upload ZIP file into UCM(Universal Content Management). This is optional step as we can directly upload in step 5. Step 5: Populate data into interface tables by executing Job – ‘Load Interface File for Import’ is the job and parameters are ‘Import Process’ (get this value from OER page itself) and ‘Data File’ (Upload zip file) Step 6: Import data into base tables by executing Job (The same job which you used in Import Process in the above step)   3. Supplier Conversion  We have different templates for Supplier profile (header), Supplier address, Supplier sites, Supplier site assignments and so on… Step 1: Download the template from OER(Oracle Enterprise Repository) Search for ‘oracle oer’ in google () >> Procurement tab >> Click on Release 13 (update 17b) >> Use >> Get started with file-based data import >> Open link in new tab for Suppliers, Supplier Addresses, Supplier Sites, Supplier Site Assignments >> For XLSM template, right click and use “Save link as” and save four files >> In the links we can see different jobs and UCM path which needs to be executed for conversion process. Step 2: Enter data into SupplierImportTemplate Open SupplierImportTemplate >> Delete all sample records except first record and on first record enter below values. Click on Show Additional Attributes and delete other values in first record, except below values:  Import Action: CREATE  Supplier Name: Tata FBDI Supplier  Tax Organization Type: Corporation  Supplier Type: Supplier  Business Relationship: SPEND_AUTHORIZED  Payment Method: CHECK Step 3: Convert data template into ZIP file Instructions and CSV Generation >> Click on ‘Generate CSV File’ >> PozSuppliersInt (CSV and ZIP file have been created) Step 4: Upload ZIP file into UCM(Universal Content Management). This is optional step as we can directly upload in step 5. Navigator >> Tools >> File Import and Export >> Upload >> Upload the ZIP file and Account: prc/supplier/import >> Save and Close Step 5: Populate data into interface tables by executing Job ESS Job Page: Navigator >> Tools >> Scheduled Processes >> Schedule New Process >> Job Name: Load Interface File for Import >> Ok >> Import Process: Import Suppliers and Data File: PozSuppliersInt.zip >> Submit. The import process  parameter value and interface table is POZ_SUPPLIERS_INT (We can get this info from Suppliers tab in step i)  Step 6: Import data into base tables by executing Job Reload ESS Job Page again: Navigator >> Tools >> Scheduled Processes >> Schedule New Process >> Job Name: Import Suppliers  >> Ok (no need to change parameters) >> Submit. Now verify the Supplier in application 🙂  Repeat step 2 for other three templates as well… **Enter data into SupplierAddressImportTemplate Import Action: CREATE Supplier Name: Tata FBDI Supplier Address Name: Tata FBDI Supplier Address Country: GB Address Line 1: Tata FBDI Supplier Address 1 City: Coventry County: West Midlands Postal code: CV1 1DT RFQ Or Bidding: Y Ordering: Y Pay: Y  **Enter data into SupplierSiteImportTemplate Import Action: CREATE Supplier Name: Tata FBDI Supplier Procurement BU: Tata Business Unit Address Name: Tata FBDI Supplier Address Supplier Site: TATA FBDI Site (**Make sure the maximum length < 15) Sourcing only: N Purchasing: Y Pay: Y Primary Pay: Y **Enter data into SupplierSiteAssignmentImportTemplate  Import Action: CREATE  Supplier Name: Tata FBDI Supplier  Supplier Site: TATA FBDI Site  Procurement BU: Tata Business Unit  Client BU: Tata Business Unit  Bill-to BU: Tata Business Unit 🙂  4. ESS Job Error  If the job completes in Error then click on Error hyperlink >> Come to bottom of page and see  “Log and Output  Attachment   ESS_L_1490126 (1 more…) “  Here click on (1 more…) and open pdf to know the error  5. AP Invoice ConversionStep 1: Download the template from OER(Oracle Enterprise Repository) Search for ‘oracle oer’ in google () >> Financials tab >> Click on Release 13 (update 17b) >> Use >> Import file-based data >> Payables Standard Invoice Import >> For XLSM template, right click and use “Save link as”>> In the link we can see, Scheduled process name and UCM account as well. Step 2: Enter data into PayablesStandardInvoiceImportTemplate Open PayablesStandardInvoiceImportTemplate >> Delete all sample records except first record and on first record enter below values. Click on Show Additional Attributes and delete other values in first record, except below values:  AP_INVOICES_INTERFACE values  *Invoice ID: 100  *Business Unit: Tata Business Unit  *Source: External  *Invoice Number: TATA_FBDI_STD_INV_1  *Invoice Amount: 1000.00  *Invoice Date: 2018/12/03  **Supplier Name: Tata Supplier  *Supplier Site: Tata Supp Site  Invoice Currency: GBP  Payment Currency: GBP  Description: TATA_FBDI_STD_INV_1  *Invoice Type: STANDARD  Legal Entity: Tata Legal Entity  *Payment Terms: Immediate  Terms Date: 2018/12/03  Accounting Date:2018/12/03  Payment Method: CHECK  Pay Group: Standard  Liability Combination: C01.D01.L03 AP_INVOICE_LINES_INTERFACE values  *Invoice ID: 100  Line Number: 1  *Line Type: ITEM  *Amount: 1000.00  Distribution Combination: C01.D01.E03  Accounting Date: 2018/12/03 Step 3: Convert data template into ZIP file Instructions and CSV Generation >> Click on ‘Generate CSV File’ >> apinvoiceimport(CSV and ZIP file have been created) Step 4: Upload ZIP file into UCM(Universal Content Management). This is optional step as we can directly upload in step 5. Navigator >> Tools >> File Import and Export >> Upload >> Upload the ZIP file and Account: prc/supplier/import >> Save and Close Step 5: Populate data into interface tables by executing Job ESS Job Page: Navigator >> Tools >> Scheduled Processes >> Schedule New Process >> Job Name: Load Interface File for Import >> Ok >> Import Process: Import Payables Invoices and Data File: apinvoiceimport.zip >> Submit. The import process  parameter value and interface table info we can get this info from Payables Standard Invoice Import page) Step 6: Import data into base tables by executing Job Reload ESS Job Page again: Navigator >> Tools >> Scheduled Processes >> Schedule New Process >> Job Name: Import Payables Invoices >> Parameters —  Business Unit: Tata Business Unit; Ledger: Tata Ledger; Source: External >> Submit. Now verify the Invoice in application 🙂 Import Errors:  In case we come across any invoice import errors then click on ‘Correct Import Errors’ on invoice tasks panel >> Open excel >> Here we get detailed list of error reasons >> We can correct in the same excel >> Select that particular line >> Correct Import Errors >> Save and Submit Invoice Import >> Parameter Source is External. For deletion of record from sheet, double click on Delete column with respect to row and click on Save.  6. BI Reports  In google search for ‘oracle oer’ >> Financials >> Tables and Views >> Release 13 (update 17b) >> Books >> Tables and Views for Oracle Financials Cloud >> HTML >> Tables >> Here we get list of all tables. Let us execute query: SELECT INVOICE_NUM, INVOICE_AMOUNT, INVOICE_DATE FROM AP_INVOICES_ALL; Navigate to BI catalog page. Navigator >> Tools >> Reports and Analytics >> Browse Catalog >> New >> Data Model >> New Data Set >> SQL Query    Ok >> Data tab >> Rows: 50; Click on View >> Save As Sample Data >> Ok >> Save >> Select My Folder & Name: Tata Invoices >> Ok >> Look for Saved message >> Create Report >> Next >> Next >> Drag three columns and Drop at mentioned location & I have excluded grand totals row >> Next >> Finish >> Name: Tata Invoices1 >> Ok >> Click on View Report >> Excel >> Report gets downloaded in Excel 🙂  7. OTBI Reports  In BI report we have to write the query in OTBI we do not have option to write query. Its just drag and drop of columns. Navigator >> Tools>> Reports and Analytics >> Create >> Analysis >> (The subject area which ends with ‘Real Time’ only to be used in OTBI) >> Select ‘Payables Invoices – Transactions Real Time’ >> Continue >> Expand >> We call folders as dimensions (Subject area >> dimensions >> columns) >> Business Unit >> Select Business Unit Name and click on add >> Supplier >> Select Supplier and click on add >> Supplier Site >> Select Business Unit Name and click on add Site >> Invoice Details >> General Information >> Select Invoice Number and click on add >> Invoice Details >> Invoice Amounts >> Select Invoice Amount and click on add >> Next >> Title: TCS Invoice Analysis; Table: Table; Click on preview >> Next >> In case we want to filter the data. Lets assume we want to filter data based on BU then expand ‘Additional Layout Options’ >> Select Business Unit Name from Columns section >> Move To >> Prompt For >> Next >> Next >> Next >> Select My Folders and Analysis Name: Tata Invoice OTBI Analysis >> Submit   Search the name >> Click on … >> View 🙂 Go to invoice workbench >> Reports and Analytics >> Here also we can see OTBI (OTBI = Analysis)  8. Customer Conversion  i) FBDI Download the template from OER(Oracle Enterprise Repository) or )  For XLSM template, right click and use “Save link as” and save file. Now go to cloud application and look for Customer Data Management >> Data Import.  Under Tasks >> Create Data Import Batch >> Batch Name: Tata Customer Data Import Batch; Source System: Comma separated values; Object: Customer and Consumer >> Save and Close >> Copy the batch ID (300000176289359). Next go to spreadsheet and delete all records except first record. HZ_IMP_PARTIES_T*Batch Identifier 300000176289359 Party Original System CSV Party Original System Reference TATA_CUST_01 Insert Update Indicator  I *Party Type ORGANIZATION Party Usage Code CUSTOMER Organization Name Tata Customer 01 DUNS Number 123456789 HZ_IMP_PARTYSITES_T*Batch Identifier 300000176289359 Party Original System CSV Party Original System Reference TATA_CUST_01 Party Site Original System CSV Party Site Original System Reference TATA_CUST_PS_01 Location Original System CSV…

Oracle SQL

Index 1. Installation of Oracle 11g and SQL Developer i) Create and Insert data into emp and dept tables2. SQL Statements3. Built-in Functionsi) Single Row Functionsii) Aggregate Functionsiii) Analytic Functionsiv) Object Reference Functionsv) Model Functions4. NVL25. INSTRING6. SUBSTRING7. MODULUS8. TRANSLATE9.…