Search Results hz_cust_accounts_u2




Overview

AR.HZ_CUST_ACCOUNTS is the master customer account table within the Oracle E-Business Suite Trading Community Architecture (TCA) model. It stores the business relationships the deploying company establishes with a party of type Organization or Person, and it defines how transactions are conducted within that relationship. Because a single party may maintain multiple customer accounts — for example, an individual holding a personal, family, and professional account — the table can hold several records per PARTY_ID. The table resides in the APPS_TS_TX_DATA tablespace with a PCT Free of 10 and is owned by the AR schema.

Within a Data Vault modeling heuristic, HZ_CUST_ACCOUNTS functions as a hub. Its primary key, CUST_ACCOUNT_ID, is a surrogate identifier that anchors a stable business concept (the customer account), while descriptive and relationship attributes are distributed across satellite and link structures elsewhere in the model. This classification reflects the table's position as the central reference point from which transactions, sites, profiles, and contacts emanate.

Key Information Stored

The table comprises 139 documented columns. The surrogate primary key is CUST_ACCOUNT_ID (NUMBER(15)), enforced through the HZ_CUST_ACCOUNTS_PK constraint and mirrored by the unique index HZ_CUST_ACCOUNTS_U1. Two additional unique indexes represent business-key candidates: HZ_CUST_ACCOUNTS_U2 on ACCOUNT_NUMBER, which is the user-facing account identifier, and HZ_CUST_ACCOUNTS_U3 on ORIG_SYSTEM_REFERENCE, which preserves the source-system identifier for imported or legacy accounts. The latter index is directly relevant to searches such as "hz_cust_accounts_u2," which resolve to the ACCOUNT_NUMBER uniqueness constraint.

Among the most significant columns are:

Common Use Cases and Queries

HZ_CUST_ACCOUNTS is queried in virtually every receivables, order management, collections, and credit workflow. Typical patterns include resolving an account number to its identifier, retrieving the party behind an account, and listing all accounts for a given party.

  • Lookup by account number: SELECT cust_account_id, party_id, account_name FROM hz_cust_accounts WHERE account_number = :acct;
  • Enumerate a party's accounts: SELECT cust_account_id, account_number, status FROM hz_cust_accounts WHERE party_id = :party;
  • Case-insensitive name search leveraging the function-based index: SELECT cust_account_id FROM hz_cust_accounts WHERE UPPER(account_name) LIKE UPPER(:name || '%');
  • Credit and balance reporting: aggregating CURRENT_BALANCE by ORG_ID, CUSTOMER_CLASS_CODE, or credit classification.
  • Migration and reconciliation: matching imported records through ORIG_SYSTEM_REFERENCE, the column behind HZ_CUST_ACCOUNTS_U3.

Related Objects

The table is a hub with an exceptionally broad dependency footprint. The most significant related objects include: