Chart of Accounts Segment Descriptions in Oracle EBS R12
You can use the following query to get the description of COA of Oracle EBS by using apps.gl_flexfields_pkg.get_description_sql and avoid hideous number of joins back to FND_FLEX_VALUES_TL and generally hard-code in value set ids.
SELECT gcc.code_combination_id
,gcc.segment1
,gcc.segment2
,gcc.segment3
...