search

版本:Tested on R12.0.6/R12.1.1,注意:请根据具体环境调整GUEST用户密码,默认情况都是ORACLE。 GUEST用户的密码可以在$CONTEX

版本:Tested on R12.0.6/R12.1.1

注意:请根据具体环境调整GUEST用户密码,,默认情况都是Oracle。 GUEST用户的密码可以在$CONTEXT_FILE文件中找到:

view $CONTEXT_FILE

    51         
    52            GUEST
    53            ORACLE
    54         

用法:编译package,调用函数即可。

CREATE OR REPLACE PACKAGE apps.xxdba_fnd_security 
  AUTHID CURRENT_USER 
AS 
  -- guest login can be retrieved from profile GUEST_USER_PWD(Guest User Password) or $CONTEXT_FILE 
  FUNCTION get_user_pass (p_fnd_user        IN VARCHAR2 
                          ,p_guest_login    IN VARCHAR2 DEFAULT 'GUEST/ORACLE') 
      RETURN VARCHAR2; 
  FUNCTION get_apps_pass (p_guest_login IN VARCHAR2 DEFAULT 'GUEST/ORACLE') 
      RETURN VARCHAR2; 
  FUNCTION encrypt (key            IN VARCHAR2 
                    ,VALUE          IN VARCHAR2) 
      RETURN VARCHAR2; 
  FUNCTION decrypt (key            IN VARCHAR2 
                    ,VALUE          IN VARCHAR2) 
      RETURN VARCHAR2; 
END xxdba_fnd_security; 

 
CREATE OR REPLACE PACKAGE BODY apps.xxdba_fnd_security 
AS 
  FUNCTION encrypt ( 
      key            IN VARCHAR2 
    ,VALUE          IN VARCHAR2) 
      RETURN VARCHAR2 
  AS 
      LANGUAGE JAVA 
      NAME 'oracle.apps.fnd.security.WebSessionManagerProc.encrypt(java.lang.String,java.lang.String) return java.lang.String'; 
  FUNCTION decrypt ( 
      key            IN VARCHAR2 
    ,VALUE          IN VARCHAR2) 
      RETURN VARCHAR2 
  AS 
      LANGUAGE JAVA 
      NAME 'oracle.apps.fnd.security.WebSessionManagerProc.decrypt(java.lang.String,java.lang.String) return java.lang.String'; 
 
  FUNCTION get_apps_pass (p_guest_login IN VARCHAR2 DEFAULT 'GUEST/ORACLE') 
      RETURN VARCHAR2 
  IS 
      l_apps_encrypted_pass VARCHAR2 (200); 
      l_apps_decrypted_pass VARCHAR2 (200); 
  BEGIN 
      -- get apps encrypted pass 
      SELECT encrypted_foundation_password 
      INTO  l_apps_encrypted_pass 
      FROM  apps.fnd_user 
      WHERE  user_name = 'GUEST'; 
 
      --decrypt apps pass 
      SELECT decrypt (p_guest_login 
                    ,l_apps_encrypted_pass) 
      INTO  l_apps_decrypted_pass 
      FROM  DUAL; 
       
      RETURN l_apps_decrypted_pass; 
  END get_apps_pass; 
 
  FUNCTION get_user_pass (p_fnd_user      IN VARCHAR2 
                          ,p_guest_login  IN VARCHAR2 DEFAULT 'GUEST/ORACLE') 
      RETURN VARCHAR2 
  IS 
      l_user_encrypted_pass VARCHAR2 (200); 
      l_user_decrypted_pass VARCHAR2 (200); 
  BEGIN 
      -- get fnd user encrypted pass 
      BEGIN 
        SELECT encrypted_user_password 
        INTO  l_user_encrypted_pass 
        FROM  fnd_user 
        WHERE  user_name = p_fnd_user; 
      EXCEPTION 
        WHEN NO_DATA_FOUND 
        THEN 
            RETURN 'User ' || p_fnd_user || ' is not exist in FND_USER table'; 
      END; 
       
      --decrypt user pass 
      SELECT decrypt (get_apps_pass (p_guest_login) 
                    ,l_user_encrypted_pass) 
      INTO  l_user_decrypted_pass 
      FROM  DUAL; 
 
      RETURN l_user_decrypted_pass; 
  END get_user_pass; 
 
END xxdba_fnd_security; 

 
/* 
select xxdba_fnd_security.get_user_pass('SYSADMIN') from dual; 
 
select xxdba_fnd_security.get_apps_pass from dual; 
 
drop package apps.xxdba_fnd_security; 
*/ 

linux

Statement
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Reduce the use of MySQL memory in DockerReduce the use of MySQL memory in DockerMar 04, 2025 pm 03:52 PM

This article explores optimizing MySQL memory usage in Docker. It discusses monitoring techniques (Docker stats, Performance Schema, external tools) and configuration strategies. These include Docker memory limits, swapping, and cgroups, alongside

How to solve the problem of mysql cannot open shared libraryHow to solve the problem of mysql cannot open shared libraryMar 04, 2025 pm 04:01 PM

This article addresses MySQL's "unable to open shared library" error. The issue stems from MySQL's inability to locate necessary shared libraries (.so/.dll files). Solutions involve verifying library installation via the system's package m

How do you alter a table in MySQL using the ALTER TABLE statement?How do you alter a table in MySQL using the ALTER TABLE statement?Mar 19, 2025 pm 03:51 PM

The article discusses using MySQL's ALTER TABLE statement to modify tables, including adding/dropping columns, renaming tables/columns, and changing column data types.

Run MySQl in Linux (with/without podman container with phpmyadmin)Run MySQl in Linux (with/without podman container with phpmyadmin)Mar 04, 2025 pm 03:54 PM

This article compares installing MySQL on Linux directly versus using Podman containers, with/without phpMyAdmin. It details installation steps for each method, emphasizing Podman's advantages in isolation, portability, and reproducibility, but also

What is SQLite? Comprehensive overviewWhat is SQLite? Comprehensive overviewMar 04, 2025 pm 03:55 PM

This article provides a comprehensive overview of SQLite, a self-contained, serverless relational database. It details SQLite's advantages (simplicity, portability, ease of use) and disadvantages (concurrency limitations, scalability challenges). C

Running multiple MySQL versions on MacOS: A step-by-step guideRunning multiple MySQL versions on MacOS: A step-by-step guideMar 04, 2025 pm 03:49 PM

This guide demonstrates installing and managing multiple MySQL versions on macOS using Homebrew. It emphasizes using Homebrew to isolate installations, preventing conflicts. The article details installation, starting/stopping services, and best pra

How do I configure SSL/TLS encryption for MySQL connections?How do I configure SSL/TLS encryption for MySQL connections?Mar 18, 2025 pm 12:01 PM

Article discusses configuring SSL/TLS encryption for MySQL, including certificate generation and verification. Main issue is using self-signed certificates' security implications.[Character count: 159]

What are some popular MySQL GUI tools (e.g., MySQL Workbench, phpMyAdmin)?What are some popular MySQL GUI tools (e.g., MySQL Workbench, phpMyAdmin)?Mar 21, 2025 pm 06:28 PM

Article discusses popular MySQL GUI tools like MySQL Workbench and phpMyAdmin, comparing their features and suitability for beginners and advanced users.[159 characters]

See all articles

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
2 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
Repo: How To Revive Teammates
4 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
Hello Kitty Island Adventure: How To Get Giant Seeds
4 weeks agoBy尊渡假赌尊渡假赌尊渡假赌

Hot Tools

MinGW - Minimalist GNU for Windows

MinGW - Minimalist GNU for Windows

This project is in the process of being migrated to osdn.net/projects/mingw, you can continue to follow us there. MinGW: A native Windows port of the GNU Compiler Collection (GCC), freely distributable import libraries and header files for building native Windows applications; includes extensions to the MSVC runtime to support C99 functionality. All MinGW software can run on 64-bit Windows platforms.

DVWA

DVWA

Damn Vulnerable Web App (DVWA) is a PHP/MySQL web application that is very vulnerable. Its main goals are to be an aid for security professionals to test their skills and tools in a legal environment, to help web developers better understand the process of securing web applications, and to help teachers/students teach/learn in a classroom environment Web application security. The goal of DVWA is to practice some of the most common web vulnerabilities through a simple and straightforward interface, with varying degrees of difficulty. Please note that this software

Atom editor mac version download

Atom editor mac version download

The most popular open source editor

VSCode Windows 64-bit Download

VSCode Windows 64-bit Download

A free and powerful IDE editor launched by Microsoft

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools